- Adding track distance cuts (x and z) with setters and getters
authorodjuvsla <odjuvsla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Apr 2011 18:08:29 +0000 (18:08 +0000)
committerodjuvsla <odjuvsla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Apr 2011 18:08:29 +0000 (18:08 +0000)
- Adding cut for detector
- Making tree for global event variables by default since it
doesn't take any real amount of memory anyway

PWG4/totEt/AliAnalysisEtCuts.cxx
PWG4/totEt/AliAnalysisEtCuts.h

index f72769c..853b851 100644 (file)
@@ -20,11 +20,17 @@ ClassImp(AliAnalysisEtCuts);
 AliAnalysisEtCuts::AliAnalysisEtCuts() : 
   TNamed()
                                    //
-  ,fCommonEtaCut(0.8)
-  ,fCommonClusterEnergyCut(0.0)
+  ,fCommonEtaCut(0.5)
+  ,fCommonClusterEnergyCut(0.1)
   ,fCommonTrackPtCut(0.0)
   ,fCommonSingleCell(1)
-                                   //
+  ,fEmcalTrackDistanceCut(15.0)
+  ,fEmcalTrackDxCut(5.0)
+  ,fEmcalTrackDzCut(5.0)
+  ,fPhosTrackDistanceCut(10.0)  
+  ,fPhosTrackDxCut(8.0)
+  ,fPhosTrackDzCut(3.0)
+  
   ,fGeometryPhosEtaAccCut(0.12)
   ,fGeometryPhosPhiAccMinCut(260.0)
   ,fGeometryPhosPhiAccMaxCut(320.0)
@@ -45,32 +51,39 @@ AliAnalysisEtCuts::AliAnalysisEtCuts() :
   ,fReconstructedPidCut(0.0)
                                    //
   ,fReconstructedPhosClusterType(-1)
-  ,fReconstructedPhosClusterEnergyCut(0.0)
+  ,fReconstructedPhosClusterEnergyCut(0.1)
   ,fReconstructedPhosSingleCellEnergyCut(0.5)
-  ,fReconstructedPhosTrackDistanceCut(15.0)
+  ,fReconstructedPhosTrackDistanceTightCut(3.0)
+  ,fReconstructedPhosTrackDistanceMediumCut(5.0)
+  ,fReconstructedPhosTrackDistanceLooseCut(15.0)
                                    //
   ,fReconstructedEmcalClusterType(1)
   ,fReconstructedEmcalClusterEnergyCut(0.1) // GeV
   ,fReconstructedEmcalSingleCellEnergyCut(0.5)
-  ,fReconstructedEmcalTrackDistanceCut(15.0)
+  ,fReconstructedEmcalTrackDistanceTightCut(5.0)
+  ,fReconstructedEmcalTrackDistanceMediumCut(10.0)
+  ,fReconstructedEmcalTrackDistanceLooseCut(15.0)
   
   ,fMonteCarloSingleChargedParticle(3)
   ,fMonteCarloNeutralParticle(0)
 
-  ,fHistMakeTree(kFALSE)
-  ,fHistMakeTreeDeposit(kTRUE)
-  ,fHistNbinsMult(200)
+  ,fHistMakeTree(kTRUE)
+  ,fHistMakeTreeDeposit(kFALSE)
+  ,fHistNbinsMult(2000)
   ,fHistMinMult(-0.5)
-  ,fHistMaxMult(199.5)
-  ,fHistNbinsTotEt(1000)
-  ,fHistMinTotEt(0.0001)
-  ,fHistMaxTotEt(100)
-  ,fHistNbinsParticleEt(1000)
+  ,fHistMaxMult(1999.5)
+  ,fHistNbinsTotEt(10000)
+  ,fHistMinTotEt(0.000)
+  ,fHistMaxTotEt(1000)
+  ,fHistNbinsParticleEt(5000)
   ,fHistMinParticleEt(0)
-  ,fHistMaxParticleEt(10)
+  ,fHistMaxParticleEt(500)
   ,fHistNbinsParticlePt(200) 
   ,fHistMinParticlePt(0)
   ,fHistMaxParticlePt(20)
+  
+  ,fDetectorPhos(-1)
+  ,fDetectorEmcal(1)
 { // ctor
 }
 
index a6bd847..32efac8 100644 (file)
@@ -49,12 +49,17 @@ class AliAnalysisEtCuts : public TNamed
   Char_t GetReconstructedPhosClusterType() const { return fReconstructedPhosClusterType; }
   Double_t GetReconstructedPhosClusterEnergyCut() const { return fReconstructedPhosClusterEnergyCut; }
   Double_t GetReconstructedPhosSingleCellEnergyCut() const { return fReconstructedPhosSingleCellEnergyCut; }
-  Double_t GetReconstructedPhosTrackDistanceCut() const { return fReconstructedPhosTrackDistanceCut; }
+  Double_t GetPhosTrackDistanceCut() const { return fPhosTrackDistanceCut; }
+  Double_t GetPhosTrackDxCut() const { return fPhosTrackDxCut; }
+  Double_t GetPhosTrackDzCut() const { return fPhosTrackDzCut; }
   // ReconstructedEmcal
   Char_t GetReconstructedEmcalClusterType() const { return fReconstructedEmcalClusterType; }
   Double_t GetReconstructedEmcalClusterEnergyCut() const { return fReconstructedEmcalClusterEnergyCut; }
   Double_t GetReconstructedEmcalSingleCellEnergyCut() const { return fReconstructedEmcalSingleCellEnergyCut; }
-  Double_t GetReconstructedEmcalTrackDistanceCut() const { return fReconstructedEmcalTrackDistanceCut; }
+  Double_t GetEmcalTrackDistanceCut() const { return fEmcalTrackDistanceCut; }
+  Double_t GetEmcalTrackDxCut() const { return fEmcalTrackDxCut; }
+  Double_t GetEmcalTrackDzCut() const { return fEmcalTrackDzCut; }
+  
   // MonteCarlo
   Double_t GetMonteCarloSingleChargedParticle() const { return fMonteCarloSingleChargedParticle; }
   Double_t GetMonteCarloNeutralParticle() const { return fMonteCarloNeutralParticle; }
@@ -77,6 +82,9 @@ class AliAnalysisEtCuts : public TNamed
   Int_t GetHistNbinsParticlePt() const { return fHistNbinsParticlePt; }
   Double_t GetHistMinParticlePt() const { return fHistMinParticlePt; }
   Double_t GetHistMaxParticlePt() const { return fHistMaxParticlePt; }
+  
+  Short_t GetDetectorPhos() const { return fDetectorPhos; }
+  Short_t GetDetectorEmcal() const { return fDetectorEmcal; }
 
   // Setters
   // Common
@@ -107,12 +115,15 @@ class AliAnalysisEtCuts : public TNamed
   void SetReconstructedPhosClusterType(const Char_t val) { fReconstructedPhosClusterType = val; }
   void SetReconstructedPhosClusterEnergyCut(const Double_t val) { fReconstructedPhosClusterEnergyCut = val; }
   void SetReconstructedPhosSingleCellEnergyCut(const Double_t val) { fReconstructedPhosSingleCellEnergyCut = val; }
-  void SetReconstructedPhosTrackDistanceCut(const Double_t val) { fReconstructedPhosTrackDistanceCut = val; }
+  void SetPhosTrackDistanceCut(const Double_t val) { fPhosTrackDistanceCut = val; }
+  void SetPhosTrackDxCut(const Double_t val) { fPhosTrackDxCut = val; }
+  void SetPhosTrackDzCut(const Double_t val) { fPhosTrackDzCut = val; }
+  
   // ReconstructedEmcal
   void SetReconstructedEmcalClusterType(const Char_t val) { fReconstructedEmcalClusterType = val; }
   void SetReconstructedEmcalClusterEnergyCut(const Double_t val) { fReconstructedEmcalClusterEnergyCut = val; }
   void SetReconstructedEmcalSingleCellEnergyCut(const Double_t val) { fReconstructedEmcalSingleCellEnergyCut = val; }
-  void SetReconstructedEmcalTrackDistanceCut(const Double_t val) { fReconstructedEmcalTrackDistanceCut = val; }
+  void SetEmcalTrackDistanceCut(const Double_t val) { fEmcalTrackDistanceCut = val; }
   // MonteCarlo
   void SetMonteCarloSingleChargedParticle(const Double_t val) { fMonteCarloSingleChargedParticle = val; }
   void SetMonteCarloNeutralParticle(const Double_t val) { fMonteCarloNeutralParticle = val; }
@@ -144,6 +155,13 @@ class AliAnalysisEtCuts : public TNamed
   Double_t fCommonClusterEnergyCut; // Cluster Energy cut
   Double_t fCommonTrackPtCut; // Track Pt
   Int_t fCommonSingleCell; // Single Cell (1)
+  Double_t fEmcalTrackDistanceCut; // EMCal track distance
+  Double_t fEmcalTrackDxCut; // EMCal track distance in x 
+  Double_t fEmcalTrackDzCut; // EMCal track distance in z
+  
+  Double_t fPhosTrackDistanceCut; // PHOS track distance  
+  Double_t fPhosTrackDxCut; // PHOS track distance in x
+  Double_t fPhosTrackDzCut; // PHOS track distance  in z
   
   // GeometryPhos
   Double_t fGeometryPhosEtaAccCut; // PHOS Eta Acc cut
@@ -171,13 +189,17 @@ class AliAnalysisEtCuts : public TNamed
   Char_t fReconstructedPhosClusterType; // PHOS cluster type
   Double_t fReconstructedPhosClusterEnergyCut; // PHOS cluster energy
   Double_t fReconstructedPhosSingleCellEnergyCut; // PHOS single cell energy
-  Double_t fReconstructedPhosTrackDistanceCut; // PHOS track distance
+  Double_t fReconstructedPhosTrackDistanceTightCut; // PHOS track distance
+  Double_t fReconstructedPhosTrackDistanceMediumCut; // PHOS track distance
+  Double_t fReconstructedPhosTrackDistanceLooseCut; // PHOS track distance
 
   // ReconstructedEmcal
   Char_t fReconstructedEmcalClusterType; // EMCal cluster type
   Double_t fReconstructedEmcalClusterEnergyCut; // EMCal cluster energy
   Double_t fReconstructedEmcalSingleCellEnergyCut; // EMCal single cell energy
-  Double_t fReconstructedEmcalTrackDistanceCut; // EMCal track distance
+  Double_t fReconstructedEmcalTrackDistanceTightCut; // EMCAL track distance
+  Double_t fReconstructedEmcalTrackDistanceMediumCut; // EMCAL track distance
+  Double_t fReconstructedEmcalTrackDistanceLooseCut; // EMCAL track distance
 
   // MonteCarlo
   Double_t fMonteCarloSingleChargedParticle; // MC charged
@@ -203,6 +225,10 @@ class AliAnalysisEtCuts : public TNamed
   Double_t fHistMinParticlePt; // minimum value in particle Pt histograms
   Double_t fHistMaxParticlePt; // maximum value in particle Pt histograms
 
+// Detector definition
+  const Short_t fDetectorPhos; // PHOS 
+  const Short_t fDetectorEmcal; // PHOS 
+
 private:
   //Declare private to avoid compilation warning
   AliAnalysisEtCuts & operator = (const AliAnalysisEtCuts & g) ;//copy assignment