]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
more cells and v0and
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 9 Sep 2011 07:55:37 +0000 (07:55 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 9 Sep 2011 07:55:37 +0000 (07:55 +0000)
PWG4/UserTasks/EmcalTasks/AliAnalysisTaskEMCALPi0PbPb.cxx
PWG4/UserTasks/EmcalTasks/AliAnalysisTaskEMCALPi0PbPb.h

index 5474f341642b1defcd940f3bd8cbb6ce37e661c7..87b6feccd739fcb6599989099a30d0ed8f178886 100644 (file)
@@ -41,6 +41,7 @@
 #include "AliMultiplicity.h"
 #include "AliStack.h"
 #include "AliTrackerBase.h"
+#include "AliTriggerAnalysis.h"
 
 ClassImp(AliAnalysisTaskEMCALPi0PbPb)
 
@@ -240,7 +241,7 @@ AliAnalysisTaskEMCALPi0PbPb::AliAnalysisTaskEMCALPi0PbPb(const char *name)
   // Constructor.
 
   DefineOutput(1, TList::Class());
-  fBranchNames="ESD:AliESDRun.,AliESDHeader.,PrimaryVertex.,SPDVertex.,TPCVertex.,EMCALCells.,Tracks  EMCALTrigger."
+  fBranchNames="ESD:AliESDRun.,AliESDHeader.,PrimaryVertex.,SPDVertex.,TPCVertex.,EMCALCells.,Tracks,EMCALTrigger. "
                "AOD:header,vertices,emcalCells,tracks";
 }
 
@@ -1685,6 +1686,10 @@ void AliAnalysisTaskEMCALPi0PbPb::FillNtuple()
     if (mult) 
       fHeader->fCl1 = mult->GetNumberOfITSClusters(1);
     fHeader->fTr = AliESDtrackCuts::GetReferenceMultiplicity(fEsdEv,1);
+    AliTriggerAnalysis trAn; /// Trigger Analysis
+    Bool_t v0B = trAn.IsOfflineTriggerFired(fEsdEv, AliTriggerAnalysis::kV0C);
+    Bool_t v0A = trAn.IsOfflineTriggerFired(fEsdEv, AliTriggerAnalysis::kV0A);
+    fHeader->fV0And = v0A && v0B;
   }
   AliCentrality *cent = InputEvent()->GetCentrality();
   fHeader->fV0Cent    = cent->GetCentralityPercentileUnchecked("V0M");
@@ -1726,6 +1731,9 @@ void AliAnalysisTaskEMCALPi0PbPb::FillNtuple()
   }
 
   fHeader->fNCells   = 0;
+  fHeader->fNCells0  = 0;
+  fHeader->fNCells01 = 0;
+  fHeader->fNCells03 = 0;
   fHeader->fNCells1  = 0;
   fHeader->fNCells2  = 0;
   fHeader->fNCells5  = 0;
@@ -1739,6 +1747,12 @@ void AliAnalysisTaskEMCALPi0PbPb::FillNtuple()
     Int_t ncells = cells->GetNumberOfCells();
     for(Int_t j=0; j<ncells; ++j) {
       Double_t cellen = cells->GetAmplitude(j);
+      if (cellen>0.045)
+        ++fHeader->fNCells0;
+      if (cellen>0.1)
+        ++fHeader->fNCells01;
+      if (cellen>0.3)
+        ++fHeader->fNCells03;
       if (cellen>1)
         ++fHeader->fNCells1;
       if (cellen>2)
index e3a65ebae0989939f4a1ec67a1fe9800a93af70c..ec2398790c0713c2af8015ad0a05cf820cd10c61 100644 (file)
@@ -217,11 +217,12 @@ class AliStaHeader
  public:
   AliStaHeader() : fRun(0), fOrbit(0), fPeriod(0), fBx(0), fL0(0), fL1(0), fL2(0),
                    fTrClassMask(0), fTrCluster(0), fOffTriggers(0), fFiredTriggers(),
-                   fTcls(0), fV0Cent(0), fV0(0), fCl1Cent(0), fCl1(0), fTrCent(0), fTr(0),
+                   fTcls(0), fV0And(0), fV0Cent(0), fV0(0), fCl1Cent(0), fCl1(0), fTrCent(0), fTr(0),
                    fCqual(-1), fPsi(0), fPsiRes(0), fNSelTr(0), fNSelPrimTr(0), fNSelPrimTr1(0),
-                   fNSelPrimTr2(0), fNCells(0), fNCells1(0), fNCells2(0), fNCells5(0), 
-                   fNClus(0), fNClus1(0), fNClus2(0), fNClus5(0), 
+                   fNSelPrimTr2(0), fNCells(0), fNCells0(0), fNCells01(0), fNCells03(0), 
+                   fNCells1(0), fNCells2(0), fNCells5(0), fNClus(0), fNClus1(0), fNClus2(0), fNClus5(0), 
                    fMaxCellE(0), fMaxClusE(0) {;}
+
   ULong64_t     GetEventId() const {
                   return (((ULong64_t)fPeriod << 36) |
                           ((ULong64_t)fOrbit  << 12) |
@@ -242,6 +243,7 @@ class AliStaHeader
   UInt_t        fOffTriggers;    //         fired offline triggers for this event
   TString       fFiredTriggers;  //         string with fired triggers
   UInt_t        fTcls;           //         custom trigger definition
+  Bool_t        fV0And;          //         V0AND (from AliTriggerAnalysis)
   Double32_t    fV0Cent;         //[0,0,16] v0 cent
   Double32_t    fV0;             //[0,0,16] v0 result used for cent 
   Double32_t    fCl1Cent;        //[0,0,16] cl1 cent
@@ -256,9 +258,12 @@ class AliStaHeader
   UShort_t      fNSelPrimTr1;    //         # selected tracks (primary) pt > 1 GeV/c
   UShort_t      fNSelPrimTr2;    //         # selected tracks (primary) pt > 2 GeV/c
   UShort_t      fNCells;         //         # cells
-  UShort_t      fNCells1;        //         # cells > 1 GeV
-  UShort_t      fNCells2;        //         # cells > 2 GeV
-  UShort_t      fNCells5;        //         # cells > 5 GeV
+  UShort_t      fNCells0;        //         # cells > 0.45 GeV
+  UShort_t      fNCells01;       //         # cells > 0.1  GeV
+  UShort_t      fNCells03;       //         # cells > 0.3  GeV
+  UShort_t      fNCells1;        //         # cells > 1    GeV
+  UShort_t      fNCells2;        //         # cells > 2    GeV
+  UShort_t      fNCells5;        //         # cells > 5    GeV
   UShort_t      fNClus;          //         # clus
   UShort_t      fNClus1;         //         # clus > 1 GeV
   UShort_t      fNClus2;         //         # clus > 2 GeV
@@ -266,7 +271,7 @@ class AliStaHeader
   Double32_t    fMaxCellE;       //[0,0,16] maximum cell energy
   Double32_t    fMaxClusE;       //[0,0,16] maximum clus energy
 
-  ClassDef(AliStaHeader,3) // Header class
+  ClassDef(AliStaHeader,4) // Header class
 };
 
 class AliStaVertex