]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG3/hfe/AliHFEpidQAmanager.h
committing on behalf of Silvia... new macros for HFE analysis on the train (Markus
[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);
6555e2ad 50 void ProcessTrack(const AliHFEpidObject *track, AliHFEpid::EDETtype_t det, AliHFEdetPIDqa::EStep_t step);
3a72645a 51 AliHFEdetPIDqa *GetDetectorPIDqa(AliHFEpid::EDETtype_t detector) const { return fDetPIDqa[detector]; }
6555e2ad 52 AliHFEpidBase *GetDetectorPID(AliHFEpid::EDETtype_t detector) const { return fDetPID[detector]; }
3a72645a 53 TList *MakeList(const Char_t *name);
54
3a72645a 55 protected:
56 enum{
57 kIsOwner = BIT(14)
58 };
59 Bool_t IsOwner() const { return TestBit(kIsOwner); }
60 void SetOwner() { SetBit(kIsOwner, kTRUE); }
61 void ReleaseOwnerShip() { SetBit(kIsOwner, kFALSE); }
62 void CreateDetPIDqa(AliHFEpid::EDETtype_t detector);
63
64 private:
6555e2ad 65 AliHFEdetPIDqa *fDetPIDqa[AliHFEpid::kNdetectorPID]; //! Detector PID QA objects
66 AliHFEpidBase *fDetPID[AliHFEpid::kNdetectorPID]; // Detector PID objects
3a72645a 67
68 ClassDef(AliHFEpidQAmanager, 0)
69};
70#endif