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 e69001cda95a95be40acedf96db1985772172f87..65ed50e30a6f52106e0969c05c5e08aaa86b49f4 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 22c9c69ee4ddb4cc36f7586aa074bc7bfc425e72..bbafd3339dcf2bcecd20c3f71f0329926f1f558f 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 aa418317af5bf80e3f9e9a0e2865b89c9b3d76c6..e7034e552cbcfae95718806a352277c797ba7659 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 71adb77a38a8e41c8e945fcb54e301b677b00cfc..7e64a43dc12f6827cba7d860e70fb82f0b37d01f 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 f06e47a9dd8016c087ae74af4d96f3ffc390167f..a94db103196249338cc0921f3e22d1f15f8aed31 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;