fInit(kFALSE),
fEnt(0),
fEnt0(0),
- //fITS(0x0),
+ fDetTypeRec(0x0),
fDfArp(kFALSE),
+ fITSgeom(0x0),
fLoader(0x0),
fRunLoader(0x0)
{
fInit(kFALSE),
fEnt(0),
fEnt0(0),
- //fITS(0x0),
+ fDetTypeRec(0x0),
fDfArp(kFALSE),
+ fITSgeom(0x0),
fLoader(0x0),
fRunLoader(rl)
{
fInit(kFALSE),
fEnt(0),
fEnt0(0),
- //fITS(0x0),
+ fDetTypeRec(0x0),
fDfArp(kFALSE),
+ fITSgeom(0x0),
fLoader(0x0),
fRunLoader(0x0)
{
Error("AliITSreconstruction","Can not load the session",filename);
return;
}
- fRunLoader->LoadgAlice();
- gAlice = fRunLoader->GetAliRun();
-
- if(!gAlice) {
- Error("AliITSreconstruction","gAlice not found on file. Aborting.");
- fInit = kFALSE;
- return;
- } // end if !gAlice
}
+
//______________________________________________________________________
-AliITSreconstruction::AliITSreconstruction(const AliITSreconstruction &/*rec*/):TTask(/*rec*/){
+AliITSreconstruction::AliITSreconstruction(const AliITSreconstruction &rec):TTask(rec),
+fInit(rec.fInit),
+fEnt(rec.fEnt),
+fEnt0(rec.fEnt0),
+fDetTypeRec(rec.fDetTypeRec),
+fDfArp(rec.fDfArp),
+fITSgeom(rec.fITSgeom),
+fLoader(rec.fLoader),
+fRunLoader(rec.fRunLoader)
+{
// Copy constructor.
- Error("Copy constructor","Copy constructor not allowed");
}
+
//______________________________________________________________________
-AliITSreconstruction& AliITSreconstruction::operator=(const AliITSreconstruction& /*source*/){
- // Assignment operator. This is a function which is not allowed to be
- // done.
- Error("operator=","Assignment operator not allowed\n");
- return *this;
+AliITSreconstruction& AliITSreconstruction::operator=(const AliITSreconstruction& source){
+ // Assignment operator.
+ this->~AliITSreconstruction();
+ new(this) AliITSreconstruction(source);
+ return *this;
+
}
//______________________________________________________________________
Error("Init","Run Loader is NULL");
return kFALSE;
}
- fRunLoader->LoadgAlice();
- fRunLoader->LoadHeader();
+ // fRunLoader->LoadgAlice();
+ // fRunLoader->LoadHeader();
fLoader = (AliITSLoader*) fRunLoader->GetLoader("ITSLoader");
if(!fLoader) {
// Now ready to init.
- fRunLoader->CdGAFile();
- fITSgeom = (AliITSgeom*)gDirectory->Get("AliITSgeom");
+ //fRunLoader->CdGAFile();
+ fITSgeom = fLoader->GetITSgeom();
fDetTypeRec = new AliITSDetTypeRec();
fDetTypeRec->SetITSgeom(fITSgeom);
fEnt0 = 0;
//fEnt = gAlice->GetEventsPerRun();
- fEnt = Int_t(fRunLoader->TreeE()->GetEntries());
+ fEnt = Int_t(fRunLoader->GetNumberOfEvents());
fLoader->LoadDigits("read");
fLoader->LoadRecPoints("recreate");
- fLoader->LoadRawClusters("recreate");
if (fLoader->TreeR() == 0x0) fLoader->MakeTree("R");
- if (fLoader->TreeC() == 0x0) fLoader->MakeTree("C");
- fDetTypeRec->SetLoader(fLoader);
- fDetTypeRec->MakeBranchR(0);
- fDetTypeRec->MakeBranchC();
- fDetTypeRec->SetTreeAddress();
+ fDetTypeRec->SetTreeAddressD(fLoader->TreeD());
+ fDetTypeRec->MakeBranchR(fLoader->TreeR());
fDetTypeRec->SetTreeAddressR(fLoader->TreeR());
fInit = InitRec();
Info("Exec","");
fRunLoader->GetEvent(evnt);
- fDetTypeRec->SetITSgeom(fITSgeom);
- fDetTypeRec->SetLoader(fLoader);
if (fLoader->TreeR() == 0x0) fLoader->MakeTree("R");
fDetTypeRec->MakeBranchR(0);
- if (fLoader->TreeC() == 0x0){
- fDetTypeRec->MakeTreeC();
- fDetTypeRec->MakeBranchC();
- }
fDetTypeRec->SetTreeAddressR(fLoader->TreeR());
fDetTypeRec->SetTreeAddressD(fLoader->TreeD());
- fDetTypeRec->DigitsToRecPoints(evnt,0,lopt);
+ fDetTypeRec->DigitsToRecPoints(fLoader->TreeD(),fLoader->TreeR(),0,lopt);
} // end for evnt
}
//______________________________________________________________________