]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adapting for real data and central event selection
authorhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Dec 2009 16:49:06 +0000 (16:49 +0000)
committerhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Dec 2009 16:49:06 +0000 (16:49 +0000)
PWG2/FORWARD/analysis/AliFMDAnaParameters.cxx
PWG2/FORWARD/analysis/AliFMDAnaParameters.h

index bd013b27f2aef4ebb24db0ce05fca2b0a35dec41..f348869f34a0028d9a6be5e80b7182e5122730df 100644 (file)
@@ -78,7 +78,8 @@ AliFMDAnaParameters::AliFMDAnaParameters() :
   fTrigger(kMB1),
   fEnergy(k10000),
   fMagField(k5G),
-  fSpecies(kPP)
+  fSpecies(kPP),
+  fCentralSelection(kFALSE)
 {
   // Do not use this - it is only for IO 
   fgInstance = this;
@@ -568,6 +569,8 @@ Bool_t AliFMDAnaParameters::GetVertex(AliESDEvent* esd, Double_t* vertexXYZ)
 //____________________________________________________________________
 Bool_t AliFMDAnaParameters::IsEventTriggered(AliESDEvent *esd) const {
   // check if the event was triggered
+  
+  if (fCentralSelection) return kTRUE;
   ULong64_t triggerMask = esd->GetTriggerMask();
   
   // definitions from p-p.cfg
index a6fa545ccf7b420d31fc18fa2c4816ca63e86678..9a76e23c232be62edb0af4fcedc074087c19d973 100644 (file)
@@ -121,7 +121,7 @@ public:
   void     PrintStatus() const;
   void     Print(Option_t* /* option */) const { PrintStatus(); }
   char*    GetDndetaAnalysisName() {return "PWG2forwardDnDeta";}
-  
+  void     SetCentralTriggerSelection(Bool_t selection) {fCentralSelection = selection;}
 protected:
   
   AliFMDAnaParameters(const AliFMDAnaParameters& o) 
@@ -142,7 +142,8 @@ protected:
       fTrigger(o.fTrigger),
       fEnergy(o.fEnergy),
       fMagField(o.fMagField),
-      fSpecies(o.fSpecies)
+      fSpecies(o.fSpecies),
+      fCentralSelection(o.fCentralSelection)
   {}
   AliFMDAnaParameters& operator=(const AliFMDAnaParameters&) { return *this; }
   virtual ~AliFMDAnaParameters() {}
@@ -187,6 +188,7 @@ protected:
   Energy   fEnergy;                   // CM energy
   MagField fMagField;                 //Magnetic field
   Species  fSpecies;                  //PbPb or pp ?
+  Bool_t   fCentralSelection          //if event selection is done centrally
   
   ClassDef(AliFMDAnaParameters,1) // Manager of parameters
 };