OnFlyStatus added (B. Hyppolyte)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 10 Jun 2008 14:15:41 +0000 (14:15 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 10 Jun 2008 14:15:41 +0000 (14:15 +0000)
STEER/AliAODv0.cxx
STEER/AliAODv0.h

index 9b5eb68..1449d1d 100644 (file)
@@ -30,7 +30,8 @@ ClassImp(AliAODv0)
 
   AliAODv0::AliAODv0() : 
     AliAODRecoDecay(),
-    fDcaV0ToPrimVertex(999)
+    fDcaV0ToPrimVertex(999),
+    fOnFlyStatus(kFALSE)
 {
   //--------------------------------------------------------------------
   // Default constructor
@@ -85,7 +86,8 @@ ClassImp(AliAODv0)
 AliAODv0::AliAODv0(AliAODVertex* rAODVertex, Double_t rDcaV0Daughters, Double_t rDcaV0ToPrimVertex,
           Double_t *rMomPos, Double_t *rMomNeg, Double_t *rDcaDaughterToPrimVertex) :
   AliAODRecoDecay(rAODVertex,2,0,rDcaDaughterToPrimVertex),
-  fDcaV0ToPrimVertex(rDcaV0ToPrimVertex)
+  fDcaV0ToPrimVertex(rDcaV0ToPrimVertex),
+  fOnFlyStatus(kFALSE)
 {
   //--------------------------------------------------------------------
   // Constructor via setting each data member
@@ -115,7 +117,8 @@ AliAODv0::AliAODv0(AliAODVertex* rAODVertex, Double_t rDcaV0Daughters, Double_t
 
 AliAODv0::AliAODv0(const AliAODv0& rAliAODv0) :
   AliAODRecoDecay(rAliAODv0),
-  fDcaV0ToPrimVertex(rAliAODv0.fDcaV0ToPrimVertex)
+  fDcaV0ToPrimVertex(rAliAODv0.fDcaV0ToPrimVertex),
+  fOnFlyStatus(rAliAODv0.fOnFlyStatus)
  {
   //--------------------------------------------------------------------
   // Copy constructor
@@ -127,6 +130,7 @@ AliAODv0& AliAODv0::operator=(const AliAODv0& rAliAODv0){
   // Assignment overload
   //--------------------------------------------------------------------
   this->fDcaV0ToPrimVertex  = rAliAODv0.fDcaV0ToPrimVertex ;
+  this->fOnFlyStatus        = rAliAODv0.fOnFlyStatus;
   return *this;
 }
 
index db3ec75..5d62784 100644 (file)
@@ -33,6 +33,9 @@ public:
   void     ResetV0();
   void     Print(Option_t* option = "") const;
 
+  void     SetOnFlyStatus(Bool_t status){fOnFlyStatus=status;}
+  Bool_t   GetOnFlyStatus() const {return fOnFlyStatus;}
+
   Double_t DecayVertexV0X() const;
   Double_t DecayVertexV0Y() const;
   Double_t DecayVertexV0Z() const;
@@ -88,7 +91,9 @@ public:
 
 protected:
   Double32_t fDcaV0ToPrimVertex;    // dca of V0 to primary vertex 
-  ClassDef(AliAODv0,1)
+  Bool_t     fOnFlyStatus;          // if kTRUE, then this V0 is recontructed
+                                    // "on fly" during the tracking
+  ClassDef(AliAODv0,2)
 };
 
 inline Double_t AliAODv0::DecayVertexV0X() const {return this->GetSecVtxX();}