]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSTrackSegmentMaker.cxx
Removing centrality check from default:
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegmentMaker.cxx
index ac9ca683b9b782d9671fca96cb9450b7dea6dc45..3482f19e829e4d198ccf32f7e448c1cebcfaf8a5 100644 (file)
@@ -17,6 +17,9 @@
 /* History of cvs commits:
  *
  * $Log$
+ * Revision 1.29  2007/08/28 12:55:08  policheh
+ * Loaders removed from the reconstruction code (C.Cheshkov)
+ *
  * Revision 1.28  2007/08/07 14:12:03  kharlov
  * Quality assurance added (Yves Schutz)
  *
@@ -46,7 +49,7 @@
 
 // --- AliRoot header files ---
 #include "AliPHOSTrackSegmentMaker.h"
-#include "AliPHOSQualAssDataMaker.h" 
+#include "AliLog.h"
 
 ClassImp( AliPHOSTrackSegmentMaker) 
 
@@ -55,33 +58,32 @@ ClassImp( AliPHOSTrackSegmentMaker)
 AliPHOSTrackSegmentMaker:: AliPHOSTrackSegmentMaker() : 
   TObject(),
   fESD(0), 
-  fQADM(0x0),
   fGeom(0),
   fEMCRecPoints(0),
   fCPVRecPoints(0)
 {
  // ctor
+  fEMCRecPoints = new TObjArray(100) ;
+  fCPVRecPoints = new TObjArray(100) ;
 }
 
 //____________________________________________________________________________
 AliPHOSTrackSegmentMaker::AliPHOSTrackSegmentMaker(AliPHOSGeometry *geom):
   TObject(),
   fESD(0), 
-  fQADM(0x0),
   fGeom(geom),
   fEMCRecPoints(0),
   fCPVRecPoints(0)
 {
   // ctor
-  fQADM = new  AliPHOSQualAssDataMaker() ; //!Quality Assurance Data Maker
-  GetQualAssDataMaker()->Init(AliQualAss::kTRACKSEGMENTS) ; 
+  fEMCRecPoints = new TObjArray(100) ;
+  fCPVRecPoints = new TObjArray(100) ;
 }
 
 //____________________________________________________________________________
 AliPHOSTrackSegmentMaker::AliPHOSTrackSegmentMaker(const AliPHOSTrackSegmentMaker & tsmaker) :
   TObject(tsmaker),
   fESD(tsmaker.GetESD()), 
-  fQADM(tsmaker.fQADM),
   fGeom(tsmaker.fGeom),
   fEMCRecPoints(tsmaker.fEMCRecPoints),
   fCPVRecPoints(tsmaker.fCPVRecPoints)
@@ -92,10 +94,7 @@ AliPHOSTrackSegmentMaker::AliPHOSTrackSegmentMaker(const AliPHOSTrackSegmentMake
 //____________________________________________________________________________
 AliPHOSTrackSegmentMaker::~AliPHOSTrackSegmentMaker()
 {
- //Remove this from the parental task before destroying
-  //  if(AliPHOSGetter::Instance()->PhosLoader())
-  //    AliPHOSGetter::Instance()->PhosLoader()->CleanTracker();
-  delete fQADM ; 
+  //Remove this from the parental task before destroying
   if (fEMCRecPoints) {
     fEMCRecPoints->Delete();
     delete fEMCRecPoints;
@@ -109,18 +108,16 @@ AliPHOSTrackSegmentMaker::~AliPHOSTrackSegmentMaker()
 //____________________________________________________________________________
 void AliPHOSTrackSegmentMaker::SetInput(TTree *clustersTree)
 {
-  // Read the clusters tree and creates the
-  // arrays with the EMC and CPV
-  // clusters.
-  // and set the corresponding branch addresses
+  // Read the clusters tree and set addresses to the
+  // arrays with the EMC and CPV clusters
 
   TBranch *emcbranch = clustersTree->GetBranch("PHOSEmcRP");
   if (!emcbranch) { 
     AliError("can't get the branch with the PHOS EMC clusters !");
     return;
   }
-  fEMCRecPoints = new TObjArray(100) ;
   emcbranch->SetAddress(&fEMCRecPoints);
+  fEMCRecPoints->Delete();
   emcbranch->GetEntry(0);
 
   TBranch *cpvbranch = clustersTree->GetBranch("PHOSCpvRP");
@@ -128,7 +125,7 @@ void AliPHOSTrackSegmentMaker::SetInput(TTree *clustersTree)
     AliError("can't get the branch with the PHOS CPV clusters !");
     return;
   }
-  fCPVRecPoints = new TObjArray(100) ;
   cpvbranch->SetAddress(&fCPVRecPoints);
+  fCPVRecPoints->Delete();
   cpvbranch->GetEntry(0);
 }