#include "AliPHOS.h"
#include "AliPHOSDigitizer.h"
#include "AliPHOSSDigitizer.h"
-#include "AliPHOSClusterizer.h"
-#include "AliPHOSClusterizer.h"
-#include "AliPHOSTrackSegmentMaker.h"
-#include "AliPHOSTrackSegmentMaker.h"
+#include "AliPHOSClusterizerv1.h"
+#include "AliPHOSTrackSegmentMakerv1.h"
#include "AliPHOSTrackSegment.h"
-#include "AliPHOSPID.h"
-#include "AliPHOSPID.h"
+#include "AliPHOSPIDv1.h"
#include "AliPHOSGeometry.h"
ClassImp(AliPHOSGetter)
TTask * task ;
TTask * clu = 0 ;
TString cluname(name) ;
- cluname+=":clu-" ;
+ cluname+=":clusterizer" ;
while((task = static_cast<TTask *>(it.Next()) )){
TString taskname(task->GetName()) ;
if(taskname.BeginsWith(cluname)){
if(clu)
return l->GetObjectRef(clu) ;
- else
- return 0 ;
+ else{
+ cerr << "ERROR: AliPHOSGetter::Post RerRef -> Task //" << fTasksFolder << "/Reconstructioner/clusterizer name not found!" << endl;
+ abort() ;
+ }
}
//____________________________________________________________________________
tasks->Add(phos) ;
}
- AliPHOSClusterizer * phoscl = new AliPHOSClusterizer() ;
+ AliPHOSClusterizerv1 * phoscl = new AliPHOSClusterizerv1() ;
TString clun(name) ;
- clun+=":clusterizer" ;
+ clun+=":clusterizerv1" ;
phoscl->SetName(clun) ;
phos->Add(phoscl) ;
return kTRUE;
tasks->Add(phos) ;
}
- AliPHOSTrackSegmentMaker * phosts =
- dynamic_cast<AliPHOSTrackSegmentMaker*>(phos->GetListOfTasks()->FindObject(name)) ;
+ AliPHOSTrackSegmentMakerv1 * phosts =
+ dynamic_cast<AliPHOSTrackSegmentMakerv1*>(phos->GetListOfTasks()->FindObject(name)) ;
if (!phosts) {
- phosts = new AliPHOSTrackSegmentMaker() ;
+ phosts = new AliPHOSTrackSegmentMakerv1() ;
TString tsn(name);
- tsn+=":tracksegmentmaker" ;
+ tsn+=":tracksegmentmakerv1" ;
phosts->SetName(tsn) ;
phos->Add(phosts) ;
}
TTask * task ;
TTask * tsm = 0 ;
TString tsmname(name) ;
- tsmname+=":tsm-" ;
+ tsmname+=":tracksegmentmaker" ;
while((task = static_cast<TTask *>(it.Next()) )){
TString taskname(task->GetName()) ;
if(taskname.BeginsWith(tsmname)){
if(tsm)
return l->GetObjectRef(tsm) ;
else
- return 0 ;
+ {
+ cerr << "ERROR: AliPHOSGetter::Post TerRef -> Task //" << fTasksFolder << "/Reconstructioner/TrackSegmentMarker name not found!" << endl;
+ abort() ;
+ }
}
TList * l = phos->GetListOfTasks() ;
TIter it(l) ;
TString pidname(name) ;
- pidname+=":pid" ;
+ pidname+=":pidv1" ;
TTask * task ;
while((task = static_cast<TTask *>(it.Next()) )){
TString taskname(task->GetName()) ;
return kTRUE ;
}
- AliPHOSPID * phospid = new AliPHOSPID() ;
+ AliPHOSPIDv1 * phospid = new AliPHOSPIDv1() ;
phospid->SetName(pidname) ;
phos->Add(phospid) ;
TTask * phos = dynamic_cast<TTask*>(tasks->GetListOfTasks()->FindObject("PHOS")) ;
if ( !phos ) {
- cerr <<"WARNING: AliPHOSGetter::Post PerRef -> //" << fTasksFolder << "/ReconstructionerPHOS not found!" << endl;
+ cerr <<"WARNING: AliPHOSGetter::Post PerRef -> //" << fTasksFolder << "/Reconstructioner/PHOS not found!" << endl;
return 0 ;
}
TTask * task ;
TTask * pid = 0 ;
TString pidname(name) ;
- pidname+=":pid-" ;
+ pidname+=":pid" ;
while((task = static_cast<TTask *>(it.Next()) )){
TString taskname(task->GetName()) ;
if(taskname.BeginsWith(pidname)){
if(pid)
return l->GetObjectRef(pid) ;
- else
- return 0 ;
+ else{
+ cerr << "ERROR: AliPHOSGetter::Post PerRef -> Task //" << fTasksFolder << "/Reconstructioner/PID name not found!" << endl;
+ abort() ;
+ }
}
if(index < 0)
return 0 ;
TParticle * p = gAlice->Particle(index) ;
- if (p->GetFirstMother() != -1 ) {
- cout << "AliPHOSGetter::Primary : Not a primary " << endl ;
- }
+// if (p->GetFirstMother() != -1 ) {
+// cout << "AliPHOSGetter::Primary : Not a primary " << endl ;
+// }
return p ;
// This is a feature needed by PID to be able to reconstruct several times particles (each time a ther title is given)
// from a given set of TrackSegments (with a given name)
// This is why any is NOT used to read the branch of RecParticles
- // See AliPHOSPIDv2
+ // See AliPHOSPIDv1
if(gAlice->TreeR()== 0){
cerr << "WARNING: AliPHOSGetter::ReadTreeR: can not read TreeR " << endl ;
return 1;
}
-
// RecPoints
TObjArray * lob = static_cast<TObjArray*>(gAlice->TreeR()->GetListOfBranches()) ;
TIter next(lob) ;
} else if (what.CompareTo("Clusterizer") == 0){
if ( name.IsNull() )
name = fRecPointsTitle ;
- name.Append(":clu") ;
+ name.Append(":clusterizer") ;
}
else if (what.CompareTo("TrackSegmentMaker") == 0){
if ( name.IsNull() )
name = fTrackSegmentsTitle ;
- name.Append(":tsm") ;
+ name.Append(":tracksegmentmaker") ;
}
else if (what.CompareTo("PID") == 0){
if ( name.IsNull() )