]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG3/hfe/AliHFEpidQAmanager.h
Major update of the HFE package (comments inside the code
[u/mrichter/AliRoot.git] / PWG3 / hfe / AliHFEpidQAmanager.h
CommitLineData
3a72645a 1/**************************************************************************
2* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3* *
4* Author: The ALICE Off-line Project. *
5* Contributors are mentioned in the code where appropriate. *
6* *
7* Permission to use, copy, modify and distribute this software and its *
8* documentation strictly for non-commercial purposes is hereby granted *
9* without fee, provided that the above copyright notice appears in all *
10* copies and that both the copyright notice and this permission notice *
11* appear in the supporting documentation. The authors make no claims *
12* about the suitability of this software for any purpose. It is *
13* provided "as is" without express or implied warranty. *
14**************************************************************************/
15//
16// Class AliHFEpidQAmanager
17// Steering PID QA
18// More information can be found inside the implementation file
19//
20#ifndef ALIHFEPIDQAMANAGER_H
21#define ALIHFEPIDQAMANAGER_H
22
23#ifndef ROOT_TObject
24#include <TObject.h>
25#endif
26
27#ifndef ALIHFEPID_H
28#include "AliHFEpid.h"
29#endif
30
31#ifndef ALIHFEDETPIDQA_H
32#include "AliHFEdetPIDqa.h"
33#endif
34
35class TList;
36class AliVParticle;
37class AliESDpid;
38class AliAODpidUtil;
39class AliHFEpidObject;
40
41class AliHFEpidQAmanager : public TObject{
42 public:
43 AliHFEpidQAmanager();
44 AliHFEpidQAmanager(const AliHFEpidQAmanager &ref);
45 AliHFEpidQAmanager &operator=(const AliHFEpidQAmanager &ref);
46 void Copy(TObject &o) const;
47 ~AliHFEpidQAmanager();
48
49 void Initialize(AliHFEpid *pid);
50 void ProcessTrack(AliHFEpidObject *track, AliHFEpid::EDETtype_t det, AliHFEdetPIDqa::EStep_t step);
51 AliHFEdetPIDqa *GetDetectorPIDqa(AliHFEpid::EDETtype_t detector) const { return fDetPIDqa[detector]; }
52 TList *MakeList(const Char_t *name);
53
54 void SetESDpid(AliESDpid *esdpid);
55 void SetAODpid(AliAODpidUtil *aodpid);
56
57 protected:
58 enum{
59 kIsOwner = BIT(14)
60 };
61 Bool_t IsOwner() const { return TestBit(kIsOwner); }
62 void SetOwner() { SetBit(kIsOwner, kTRUE); }
63 void ReleaseOwnerShip() { SetBit(kIsOwner, kFALSE); }
64 void CreateDetPIDqa(AliHFEpid::EDETtype_t detector);
65
66 private:
67 AliHFEdetPIDqa *fDetPIDqa[AliHFEpid::kNdetectorPID]; //!
68
69 ClassDef(AliHFEpidQAmanager, 0)
70};
71#endif