OnFlyStatus added (B. Hyppolyte)
[u/mrichter/AliRoot.git] / STEER / AliAODv0.cxx
index 4163b3bd5ff38b7b47a7141b776c57546c1a6130..1449d1defdc30ab31e245487e955904e59aa5339 100644 (file)
@@ -30,7 +30,8 @@ ClassImp(AliAODv0)
 
   AliAODv0::AliAODv0() : 
     AliAODRecoDecay(),
-    fDcaV0ToPrimVertex(999)
+    fDcaV0ToPrimVertex(999),
+    fOnFlyStatus(kFALSE)
 {
   //--------------------------------------------------------------------
   // Default constructor
@@ -38,7 +39,7 @@ ClassImp(AliAODv0)
   fCharge  = 0;
   fNProngs = 2;
   fNDCA    = 1;
-  fNPID    = 2;
+  fNPID    = 0; // used to be 2!
 
   fDCA = new Double_t[fNDCA];
   fDCA[0] = 999;
@@ -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
@@ -93,7 +95,7 @@ AliAODv0::AliAODv0(AliAODVertex* rAODVertex, Double_t rDcaV0Daughters, Double_t
   fCharge  = 0;
   fNProngs = 2;
   fNDCA    = 1;
-  fNPID    = 2;
+  fNPID    = 0; // used to be 2!
 
   fDCA = new Double_t[fNDCA];
 
@@ -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;
 }