AliPhysics  f2694b8 (f2694b8)
 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  virtual Bool_t AcceptObject(Int_t i) { return AcceptCluster(i);}
21  virtual Bool_t AcceptObject(TObject* obj) { return AcceptCluster(dynamic_cast<AliVCluster*>(obj));}
22  virtual Bool_t AcceptCluster(Int_t i) { return AcceptCluster(GetCluster(i)); }
23  virtual Bool_t AcceptCluster(AliVCluster* vp) ;
24  AliVCluster *GetAcceptCluster(Int_t i) ;
25  AliVCluster *GetAcceptClusterWithLabel(Int_t lab) ;
26  AliVCluster *GetCluster(Int_t i) const;
27  AliVCluster *GetClusterWithLabel(Int_t lab) const;
28  AliVCluster *GetLeadingCluster(const char* opt="") ;
29  Bool_t GetMomentum(TLorentzVector &mom, Int_t i);
30  Bool_t GetAcceptMomentum(TLorentzVector &mom, Int_t i);
31  Bool_t GetNextMomentum(TLorentzVector &mom, Int_t i=-1);
32  Bool_t GetNextAcceptMomentum(TLorentzVector &mom, Int_t i=-1);
33  AliVCluster *GetNextAcceptCluster(Int_t i=-1) ;
34  AliVCluster *GetNextCluster(Int_t i=-1) ;
35  Int_t GetNClusters() const { return GetNEntries(); }
36  Int_t GetNAcceptedClusters() ;
37  void SetClassName(const char* clname);
38  void SetClusECut(Double_t cut) { fClusECut = cut ; }
39  void SetClusPtCut(Double_t cut) { fClusPtCut = cut ; }
40  void SetClusTimeCut(Double_t min, Double_t max) { fClusTimeCutLow = min ; fClusTimeCutUp = max ; }
41  void SetMinMCLabel(Int_t s) { fMinMCLabel = s ; }
42  void SetMaxMCLabel(Int_t s) { fMaxMCLabel = s ; }
43  void SetMCLabelRange(Int_t min, Int_t max) { SetMinMCLabel(min) ; SetMaxMCLabel(max) ; }
44  void SetExoticCut(Bool_t e) { fExoticCut = e ; }
45 
46  void SetClusUserDefEnergyCut(Int_t t, Double_t cut);
47  Double_t GetClusUserDefEnergyCut(Int_t t) const;
48 
49  void SetClusNonLinCorrEnergyCut(Double_t cut) { SetClusUserDefEnergyCut(AliVCluster::kNonLinCorr, cut); }
50  void SetClusHadCorrEnergyCut(Double_t cut) { SetClusUserDefEnergyCut(AliVCluster::kHadCorr, cut) ; }
52 
54  Double_t GetClusPtCut() const { return fClusPtCut ; }
55 
56  const char* GetTitle() const;
57 
58  protected:
59 
60  Double_t fClusPtCut; // cut on cluster pt
61  Double_t fClusECut; // cut on cluster E
62 
63  Double_t fClusTimeCutLow; // low time cut for clusters
64  Double_t fClusTimeCutUp; // up time cut for clusters
65  Int_t fMinMCLabel; // minimum MC label
66  Int_t fMaxMCLabel; // maximum MC label
67 
68  Bool_t fExoticCut; // reject clusters marked as "exotic"
69  Double_t fUserDefEnergyCut[AliVCluster::kLastUserDefEnergy+1]; // cut on the energy of the cluster after higher level corrections (see AliVCluster.h)
70  Int_t fDefaultClusterEnergy; // default cluster energy: -1 for clus->E(); otherwise clus->GetUserDefEnergy(fDefaultClusterEnergy)
71 
72  private:
73  AliClusterContainer(const AliClusterContainer& obj); // copy constructor
74  AliClusterContainer& operator=(const AliClusterContainer& other); // assignment
75 
77 };
78 
79 #endif
80 
const char * GetTitle() const
virtual Bool_t AcceptCluster(Int_t i)
AliClusterContainer & operator=(const AliClusterContainer &other)
AliVCluster * GetAcceptClusterWithLabel(Int_t lab)
Double_t fUserDefEnergyCut[AliVCluster::kLastUserDefEnergy+1]
AliVCluster * GetNextAcceptCluster(Int_t i=-1)
virtual Bool_t AcceptObject(Int_t i)
void SetClusUserDefEnergyCut(Int_t t, Double_t cut)
AliVCluster * GetLeadingCluster(const char *opt="")
Double_t GetClusUserDefEnergyCut(Int_t t) const
Int_t GetDefaultClusterEnergy() const
Bool_t GetNextAcceptMomentum(TLorentzVector &mom, Int_t i=-1)
enum AliVCluster::VCluUserDefEnergy_t VCluUserDefEnergy_t
Double_t GetClusPtCut() const
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)
virtual Bool_t AcceptObject(TObject *obj)
Bool_t GetAcceptMomentum(TLorentzVector &mom, Int_t i)
void SetMaxMCLabel(Int_t s)
void SetMinMCLabel(Int_t s)
AliVCluster * GetClusterWithLabel(Int_t lab) const
void SetMCLabelRange(Int_t min, Int_t max)
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 SetExoticCut(Bool_t e)
Bool_t GetMomentum(TLorentzVector &mom, Int_t i)
void SetClusHadCorrEnergyCut(Double_t cut)