Added the ctor with opt argument following Peter's suggestion
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Dec 2001 14:19:24 +0000 (14:19 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Dec 2001 14:19:24 +0000 (14:19 +0000)
PHOS/AliPHOSClusterizerv1.cxx
PHOS/AliPHOSCpvRecPoint.cxx
PHOS/AliPHOSCpvRecPoint.h
PHOS/AliPHOSEmcRecPoint.cxx
PHOS/AliPHOSEmcRecPoint.h
PHOS/AliPHOSRecPoint.cxx
PHOS/AliPHOSRecPoint.h

index 75a4420..4e96b56 100644 (file)
@@ -594,7 +594,7 @@ void AliPHOSClusterizerv1::MakeClusters()
        if(fNumberOfEmcClusters >= emcRecPoints->GetSize()) 
          emcRecPoints->Expand(2*fNumberOfEmcClusters+1) ;
        
-       emcRecPoints->AddAt(new  AliPHOSEmcRecPoint(), fNumberOfEmcClusters) ;
+       emcRecPoints->AddAt(new  AliPHOSEmcRecPoint(""), fNumberOfEmcClusters) ;
        clu = (AliPHOSEmcRecPoint *) emcRecPoints->At(fNumberOfEmcClusters) ; 
        fNumberOfEmcClusters++ ; 
        clu->AddDigit(*digit, Calibrate(digit->GetAmp(),digit->GetId())) ; 
@@ -608,7 +608,7 @@ void AliPHOSClusterizerv1::MakeClusters()
        if(fNumberOfCpvClusters >= cpvRecPoints->GetSize()) 
          cpvRecPoints->Expand(2*fNumberOfCpvClusters+1);
 
-       cpvRecPoints->AddAt(new AliPHOSCpvRecPoint(), fNumberOfCpvClusters) ;
+       cpvRecPoints->AddAt(new AliPHOSCpvRecPoint(""), fNumberOfCpvClusters) ;
 
        clu =  (AliPHOSCpvRecPoint *) cpvRecPoints->At(fNumberOfCpvClusters)  ;  
        fNumberOfCpvClusters++ ; 
@@ -845,7 +845,7 @@ void  AliPHOSClusterizerv1::UnfoldCluster(AliPHOSEmcRecPoint * iniEmc,
       if(fNumberOfEmcClusters >= emcRecPoints->GetSize())
        emcRecPoints->Expand(2*fNumberOfEmcClusters) ;
       
-      (*emcRecPoints)[fNumberOfEmcClusters] = new AliPHOSEmcRecPoint() ;
+      (*emcRecPoints)[fNumberOfEmcClusters] = new AliPHOSEmcRecPoint("") ;
       emcRP = (AliPHOSEmcRecPoint *) emcRecPoints->At(fNumberOfEmcClusters);
       fNumberOfEmcClusters++ ;
     }
@@ -853,7 +853,7 @@ void  AliPHOSClusterizerv1::UnfoldCluster(AliPHOSEmcRecPoint * iniEmc,
       if(fNumberOfCpvClusters >= cpvRecPoints->GetSize())
        cpvRecPoints->Expand(2*fNumberOfCpvClusters) ;
       
-      (*cpvRecPoints)[fNumberOfCpvClusters] = new AliPHOSCpvRecPoint() ;
+      (*cpvRecPoints)[fNumberOfCpvClusters] = new AliPHOSCpvRecPoint("") ;
       emcRP = (AliPHOSEmcRecPoint *) cpvRecPoints->At(fNumberOfCpvClusters);
       fNumberOfCpvClusters++ ;
     }
index a985e94..f93f91b 100644 (file)
@@ -49,12 +49,20 @@ AliPHOSCpvRecPoint::AliPHOSCpvRecPoint() : AliPHOSEmcRecPoint()
 }
 
 //____________________________________________________________________________
+AliPHOSCpvRecPoint::AliPHOSCpvRecPoint(const char * opt) : AliPHOSEmcRecPoint(opt)
+{
+   // ctor
+   fLengX = -1;
+   fLengZ = -1;
+ }
+
+//____________________________________________________________________________
 AliPHOSCpvRecPoint::~AliPHOSCpvRecPoint()
 {
   // dtor
 }
 
-
 //____________________________________________________________________________
 Bool_t AliPHOSCpvRecPoint::AreNeighbours(AliPHOSDigit * digit1, AliPHOSDigit * digit2 ) const
 {
index 0e14b3b..2b14c91 100644 (file)
@@ -29,6 +29,7 @@ class AliPHOSCpvRecPoint : public AliPHOSEmcRecPoint  {
 public:
 
   AliPHOSCpvRecPoint() ;
+  AliPHOSCpvRecPoint(const char * opt) ;
   AliPHOSCpvRecPoint(const AliPHOSCpvRecPoint & rp) {
     // cpy ctor requested by Coding Convention 
     // but not yet needed
index f62f019..b3fc5b2 100644 (file)
@@ -57,6 +57,20 @@ AliPHOSEmcRecPoint::AliPHOSEmcRecPoint() : AliPHOSRecPoint()
 }
 
 //____________________________________________________________________________
+AliPHOSEmcRecPoint::AliPHOSEmcRecPoint(const char * opt) : AliPHOSRecPoint(opt)
+{
+  // ctor
+  
+  fMulDigit   = 0 ;  
+  fAmp   = 0. ;   
+  fCoreEnergy = 0 ; 
+  fEnergyList = 0 ;
+  fTime = -1. ;
+  fLocPos.SetX(1000000.)  ;      //Local position should be evaluated
+  
+}
+
+//____________________________________________________________________________
 AliPHOSEmcRecPoint::~AliPHOSEmcRecPoint()
 {
   // dtor
index 32b9dc8..c681d7a 100644 (file)
@@ -28,6 +28,7 @@ class AliPHOSEmcRecPoint : public AliPHOSRecPoint  {
 public:
 
   AliPHOSEmcRecPoint() ;
+  AliPHOSEmcRecPoint(const char * opt) ;
   AliPHOSEmcRecPoint(const AliPHOSEmcRecPoint & rp) {
     // cpy ctor requested by Coding Convention 
     // but not yet needed
index be3435e..7d870c6 100644 (file)
@@ -50,6 +50,16 @@ AliPHOSRecPoint::AliPHOSRecPoint()
 }
 
 //____________________________________________________________________________
+AliPHOSRecPoint::AliPHOSRecPoint(const char * opt) : AliRecPoint(opt)
+{
+  // ctor
+  
+  fMaxTrack = 200 ;
+  fPHOSMod = 0;
+  
+}
+
+//____________________________________________________________________________
 Int_t AliPHOSRecPoint::DistancetoPrimitive(Int_t px, Int_t py)
 {
   // Compute distance from point px,py to  a AliPHOSRecPoint considered as a Tmarker
index 7287e0b..d8fb01f 100644 (file)
@@ -29,6 +29,7 @@ class AliPHOSRecPoint : public AliRecPoint {
   typedef TObjArray RecPointsList ; 
 
   AliPHOSRecPoint() ;                   // ctor         
+  AliPHOSRecPoint(const char * opt) ;   // ctor 
   AliPHOSRecPoint(const AliPHOSRecPoint & rp) {
     // cpy ctor requested by Coding Convention 
     // but not yet needed