Adding a short-cut method for the pile-up tagging as a function of multiplicity ...
authorbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 19 Oct 2010 10:30:41 +0000 (10:30 +0000)
committerbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 19 Oct 2010 10:30:41 +0000 (10:30 +0000)
STEER/AliAODEvent.cxx
STEER/AliAODEvent.h
STEER/AliESDEvent.cxx
STEER/AliESDEvent.h
STEER/AliVEvent.h

index e69001c..65ed50e 100644 (file)
@@ -758,3 +758,11 @@ void AliAODEvent::AssignIDtoCollection(TCollection* col)
     while ((obj = next()))
        TProcessID::AssignID(obj);
 }
+
+Bool_t AliAODEvent::IsPileupFromSPDInMultBins() const {
+    Int_t nTracklets=GetTracklets()->GetNumberOfTracklets();
+    if(nTracklets<20) return IsPileupFromSPD(3,0.8);
+    else if(nTracklets<50) return IsPileupFromSPD(4,0.8);
+    else return IsPileupFromSPD(5,0.8);
+}
+
index 22c9c69..bbafd33 100644 (file)
@@ -136,7 +136,7 @@ class AliAODEvent : public AliVEvent {
   virtual AliAODVertex *GetPileupVertexSPD(Int_t iV=0) const;
   virtual AliAODVertex *GetPileupVertexTracks(Int_t iV=0) const;
   virtual Bool_t  IsPileupFromSPD(Int_t minContributors=3, Double_t minZdist=0.8, Double_t nSigmaZdist=3., Double_t nSigmaDiamXY=2., Double_t nSigmaDiamZ=5.) const;
-
+  virtual Bool_t IsPileupFromSPDInMultBins() const;
 
 
   // V0
index aa41831..e7034e5 100644 (file)
@@ -1697,3 +1697,11 @@ void AliESDEvent::EstimateMultiplicity(Int_t &tracklets, Int_t &trITSTPC, Int_t
   }
   //
 }
+
+Bool_t AliESDEvent::IsPileupFromSPDInMultBins() const {
+    Int_t nTracklets=GetMultiplicity()->GetNumberOfTracklets();
+    if(nTracklets<20) return IsPileupFromSPD(3,0.8);
+    else if(nTracklets<50) return IsPileupFromSPD(4,0.8);
+    else return IsPileupFromSPD(5,0.8);
+}
+
index 71adb77..7e64a43 100644 (file)
@@ -270,6 +270,8 @@ public:
                                  Double_t nSigmaDiamXY=2., 
                                  Double_t nSigmaDiamZ=5.) const;
   
+  virtual Bool_t IsPileupFromSPDInMultBins() const;
+
   AliESDtrack *GetTrack(Int_t i) const {
     return (AliESDtrack *)(fTracks?fTracks->UncheckedAt(i):0x0);
   }
index f06e47a..a94db10 100644 (file)
@@ -122,7 +122,11 @@ public:
                                 const{
     return kFALSE;
   }
-  
+
+  virtual Bool_t IsPileupFromSPDInMultBins() const {
+    return kFALSE;    
+  }
+
   virtual Int_t        EventIndex(Int_t itrack) const = 0;
   virtual Int_t        EventIndexForCaloCluster(Int_t iclu) const= 0;
   virtual Int_t        EventIndexForPHOSCell(Int_t icell) const= 0;