AliPhysics  7dff9e1 (7dff9e1)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
AliClusterContainer.h
Go to the documentation of this file.
1 #ifndef AliClusterContainer_H
2 #define AliClusterContainer_H
3 
4 class TLorentzVector;
5 
6 class AliVEvent;
7 
8 #include <AliVCluster.h>
9 
10 #include "AliEmcalContainer.h"
11 
13  public:
14  typedef enum AliVCluster::VCluUserDefEnergy_t VCluUserDefEnergy_t;
15 
17  AliClusterContainer(const char *name);
18  virtual ~AliClusterContainer(){;}
19 
20  Bool_t AcceptCluster(AliVCluster* vp) ;
21  AliVCluster *GetAcceptCluster(Int_t i) ;
22  AliVCluster *GetAcceptClusterWithLabel(Int_t lab) ;
23  AliVCluster *GetCluster(Int_t i) const;
24  AliVCluster *GetClusterWithLabel(Int_t lab) const;
25  AliVCluster *GetLeadingCluster(const char* opt="") ;
26  Bool_t GetMomentum(TLorentzVector &mom, Int_t i);
27  Bool_t GetAcceptMomentum(TLorentzVector &mom, Int_t i);
28  Bool_t GetNextMomentum(TLorentzVector &mom, Int_t i=-1);
29  Bool_t GetNextAcceptMomentum(TLorentzVector &mom, Int_t i=-1);
30  AliVCluster *GetNextAcceptCluster(Int_t i=-1) ;
31  AliVCluster *GetNextCluster(Int_t i=-1) ;
32  Int_t GetNClusters() const { return GetNEntries(); }
33  Int_t GetNAcceptedClusters() ;
34  void SetClassName(const char* clname);
35  void SetClusECut(Double_t cut) { fClusECut = cut ; }
36  void SetClusPtCut(Double_t cut) { fClusPtCut = cut ; }
37  void SetClusTimeCut(Double_t min, Double_t max) { fClusTimeCutLow = min ; fClusTimeCutUp = max ; }
38  void SetClusterBitMap(UInt_t m) { fClusterBitMap = m ; }
39  void SetMCClusterBitMap(UInt_t m) { fMCClusterBitMap = m ; }
40  void SetMinMCLabel(Int_t s) { fMinMCLabel = s ; }
41  void SetExoticCut(Bool_t e) { fExoticCut = e ; }
42 
43  void SetClusUserDefEnergyCut(VCluUserDefEnergy_t t, Double_t cut) { fUserDefEnergyCut[t] = cut ; }
44  void SetClusNonLinCorrEnergyCut(Double_t cut) { SetClusUserDefEnergyCut(AliVCluster::kNonLinCorr, cut); }
45  void SetClusHadCorrEnergyCut(Double_t cut) { SetClusUserDefEnergyCut(AliVCluster::kHadCorr, cut) ; }
47 
49 
50  protected:
51 
52  Double_t fClusPtCut; // cut on cluster pt
53  Double_t fClusECut; // cut on cluster E
54 
55  Double_t fClusTimeCutLow; // low time cut for clusters
56  Double_t fClusTimeCutUp; // up time cut for clusters
57  UInt_t fClusterBitMap; // bit map of accepted clusters (non MC)
58  UInt_t fMCClusterBitMap; // bit map of accepted MC clusters
59  Int_t fMinMCLabel; // minimum MC label value for the tracks/clusters being considered MC particles
60 
61  Bool_t fExoticCut; // reject clusters marked as "exotic"
62  Double_t fUserDefEnergyCut[AliVCluster::kLastUserDefEnergy+1]; // cut on the energy of the cluster after higher level corrections (see AliVCluster.h)
63  Int_t fDefaultClusterEnergy; // default cluster energy: -1 for clus->E(); otherwise clus->GetUserDefEnergy(fDefaultClusterEnergy)
64 
65  private:
66  AliClusterContainer(const AliClusterContainer& obj); // copy constructor
67  AliClusterContainer& operator=(const AliClusterContainer& other); // assignment
68 
70 };
71 
72 #endif
73 
Bool_t AcceptCluster(AliVCluster *vp)
AliClusterContainer & operator=(const AliClusterContainer &other)
AliVCluster * GetAcceptClusterWithLabel(Int_t lab)
Double_t fUserDefEnergyCut[AliVCluster::kLastUserDefEnergy+1]
AliVCluster * GetNextAcceptCluster(Int_t i=-1)
AliVCluster * GetLeadingCluster(const char *opt="")
Int_t GetDefaultClusterEnergy() const
Bool_t GetNextAcceptMomentum(TLorentzVector &mom, Int_t i=-1)
enum AliVCluster::VCluUserDefEnergy_t VCluUserDefEnergy_t
AliVCluster * GetAcceptCluster(Int_t i)
Bool_t GetNextMomentum(TLorentzVector &mom, Int_t i=-1)
AliVCluster * GetNextCluster(Int_t i=-1)
void SetClusNonLinCorrEnergyCut(Double_t cut)
Int_t GetNClusters() const
ClassDef(AliClusterContainer, 4)
AliVCluster * GetCluster(Int_t i) const
void SetClassName(const char *clname)
Bool_t GetAcceptMomentum(TLorentzVector &mom, Int_t i)
void SetMinMCLabel(Int_t s)
AliVCluster * GetClusterWithLabel(Int_t lab) const
void SetMCClusterBitMap(UInt_t m)
void SetClusterBitMap(UInt_t m)
void SetClusPtCut(Double_t cut)
Int_t GetNEntries() const
void SetClusECut(Double_t cut)
void SetDefaultClusterEnergy(Int_t d)
void SetClusTimeCut(Double_t min, Double_t max)
void SetClusUserDefEnergyCut(VCluUserDefEnergy_t t, Double_t cut)
void SetExoticCut(Bool_t e)
Bool_t GetMomentum(TLorentzVector &mom, Int_t i)
void SetClusHadCorrEnergyCut(Double_t cut)