]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
added reference mult
authorsnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 14 Jun 2010 12:21:15 +0000 (12:21 +0000)
committersnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 14 Jun 2010 12:21:15 +0000 (12:21 +0000)
PWG2/FLOW/AliFlowCommon/AliFlowEventSimple.cxx
PWG2/FLOW/AliFlowCommon/AliFlowEventSimple.h

index f747a7be87113be1f53b58e9160f32d1238c45b8..05cdfea8b42dc91e2c69662d870f189c866004d1 100644 (file)
@@ -47,6 +47,7 @@ ClassImp(AliFlowEventSimple)
 //-----------------------------------------------------------------------
 AliFlowEventSimple::AliFlowEventSimple():
   fTrackCollection(NULL),
+  fRefMultiplicity(0),
   fNumberOfTracks(0),
   fNumberOfRPs(0),
   fMCReactionPlaneAngle(0.),
@@ -62,6 +63,7 @@ AliFlowEventSimple::AliFlowEventSimple():
 //-----------------------------------------------------------------------
 AliFlowEventSimple::AliFlowEventSimple(Int_t aLength):
   fTrackCollection(new TObjArray(aLength)),
+  fRefMultiplicity(0),
   fNumberOfTracks(0),
   fNumberOfRPs(0),
   fMCReactionPlaneAngle(0.),
@@ -82,6 +84,7 @@ AliFlowEventSimple::AliFlowEventSimple( Int_t nParticles,
                                         Double_t etaMin,
                                         Double_t etaMax):
   fTrackCollection(new TObjArray(nParticles)),
+  fRefMultiplicity(nParticles),
   fNumberOfTracks(0),
   fNumberOfRPs(0),
   fMCReactionPlaneAngle(0.),
@@ -100,6 +103,7 @@ AliFlowEventSimple::AliFlowEventSimple( Int_t nParticles,
 AliFlowEventSimple::AliFlowEventSimple(const AliFlowEventSimple& anEvent):
   TObject(anEvent),
   fTrackCollection((TObjArray*)(anEvent.fTrackCollection)->Clone()),
+  fRefMultiplicity(anEvent.fRefMultiplicity),
   fNumberOfTracks(anEvent.fNumberOfTracks),
   fNumberOfRPs(anEvent.fNumberOfRPs),
   fMCReactionPlaneAngle(anEvent.fMCReactionPlaneAngle),
@@ -118,6 +122,7 @@ AliFlowEventSimple& AliFlowEventSimple::operator=(const AliFlowEventSimple& anEv
   //assignment operator
   delete fTrackCollection;
   fTrackCollection = (TObjArray*)(anEvent.fTrackCollection)->Clone(); //deep copy
+  fRefMultiplicity = anEvent.fRefMultiplicity;
   fNumberOfTracks = anEvent.fNumberOfTracks;
   fNumberOfRPs = anEvent.fNumberOfRPs;
   fMCReactionPlaneAngle = anEvent.fMCReactionPlaneAngle;
@@ -448,6 +453,7 @@ AliFlowEventSimple::AliFlowEventSimple( TTree* inputTree,
                                         const AliFlowTrackSimpleCuts* rpCuts,
                                         const AliFlowTrackSimpleCuts* poiCuts):
   fTrackCollection(NULL),
+  fRefMultiplicity(0),
   fNumberOfTracks(0),
   fNumberOfRPs(0),
   fMCReactionPlaneAngle(0.),
index 059dc08d0e0c36138b2c5cfbd2bbd6adf11417df..9d970f56295827b8533cb3e4ad90b3f70b4fa896 100644 (file)
@@ -52,6 +52,8 @@ class AliFlowEventSimple: public TObject {
   void    Print(Option_t* option = "") const;      //method to print stats
   
   Int_t    NumberOfTracks() const                   { return fNumberOfTracks; }
+  Int_t    GetRefMultiplicity() const               { return fRefMultiplicity; }
+  void     SetRefMultiplicity( Int_t m )            { fRefMultiplicity = m; }
   Int_t    GetEventNSelTracksRP() const             { return fNumberOfRPs; } 
   void     SetEventNSelTracksRP(Int_t nr)           { fNumberOfRPs = nr; }  
   Double_t GetMCReactionPlaneAngle() const          { return fMCReactionPlaneAngle; }
@@ -80,6 +82,7 @@ class AliFlowEventSimple: public TObject {
 
  protected:
   TObjArray*              fTrackCollection;           //-> collection of tracks
+  Int_t                   fRefMultiplicity;           // reference multiplicity
   Int_t                   fNumberOfTracks;            // number of tracks
   Int_t                   fNumberOfRPs;               // number of tracks that have passed the RP selection
   Double_t                fMCReactionPlaneAngle;      // the angle of the reaction plane from the MC truth