digitsBranch->SetAddress(&fDigits) ;
digitizerBranch->SetAddress(&fDigitizer) ;
-
- treeD->GetEvent(0) ;
+
+ digitsBranch->GetEntry(0) ;
+ digitizerBranch->GetEntry(0) ;
fPedestal = fDigitizer->GetPedestal() ;
fSlope = fDigitizer->GetSlope() ;
for(index = 0; index < fEmcRecPoints->GetEntries(); index++)
((AliPHOSEmcRecPoint *)fEmcRecPoints->At(index))->SetIndexInList(index) ;
+ fEmcRecPoints->Expand(fEmcRecPoints->GetEntriesFast()) ;
+
//Now the same for CPV
for(index = 0; index < fCpvRecPoints->GetEntries(); index++)
((AliPHOSRecPoint *)fCpvRecPoints->At(index))->EvalAll(fW0CPV,fDigits) ;
for(index = 0; index < fCpvRecPoints->GetEntries(); index++)
((AliPHOSRecPoint *)fCpvRecPoints->At(index))->SetIndexInList(index) ;
+ fCpvRecPoints->Expand(fCpvRecPoints->GetEntriesFast()) ;
+
if(gAlice->TreeR()==0)
gAlice->MakeTree("R") ;
if (filename) {
emcBranch->SetFile(filename);
TIter next( emcBranch->GetListOfBranches());
- while ((emcBranch=(TBranch*)next())) {
- emcBranch->SetFile(filename);
+ TBranch * sb ;
+ while ((sb=(TBranch*)next())) {
+ sb->SetFile(filename);
}
cwd->cd();
}
if (filename) {
cpvBranch->SetFile(filename);
TIter next( cpvBranch->GetListOfBranches());
- while ((cpvBranch=(TBranch*)next())) {
- cpvBranch->SetFile(filename);
+ TBranch * sb;
+ while ((sb=(TBranch*)next())) {
+ sb->SetFile(filename);
}
cwd->cd();
}
if (filename) {
clusterizerBranch->SetFile(filename);
TIter next( clusterizerBranch->GetListOfBranches());
- while ((clusterizerBranch=(TBranch*)next())) {
- clusterizerBranch->SetFile(filename);
+ TBranch * sb ;
+ while ((sb=(TBranch*)next())) {
+ sb->SetFile(filename);
}
cwd->cd();
}
- gAlice->TreeR()->Fill() ;
+ emcBranch->Fill() ;
+ cpvBranch->Fill() ;
+ clusterizerBranch->Fill() ;
gAlice->TreeR()->Write(0,kOverwrite) ;
}
gAlice->SetEvent(fIevent->At(0)) ; // for all-to-all will produce a lot of branches in TreeD
if(gAlice->TreeD()==0)
- gAlice->MakeTree("D") ;
+ gAlice->MakeTree("D") ;
-
//Check, if this branch already exits?
TBranch * digitsBranch = 0;
TBranch * digitizerBranch = 0;
if (file) {
digitsBranch->SetFile(file);
TIter next( digitsBranch->GetListOfBranches());
- while ((digitsBranch=(TBranch*)next())) {
- digitsBranch->SetFile(file);
+ TBranch * sbr ;
+ while ((sbr=(TBranch*)next())) {
+ sbr->SetFile(file);
}
cwd->cd();
}
if (file) {
digitizerBranch->SetFile(file);
TIter next( digitizerBranch->GetListOfBranches());
- while ((digitizerBranch=(TBranch*)next())) {
- digitizerBranch->SetFile(file);
+ TBranch * sbr;
+ while ((sbr=(TBranch*)next())) {
+ sbr->SetFile(file);
}
cwd->cd();
}
- gAlice->TreeD()->Fill() ;
+ digitsBranch->Fill() ;
+ digitizerBranch->Fill() ;
gAlice->TreeD()->Write(0,kOverwrite) ;
AliPHOSSDigitizer *sDigitizer = new AliPHOSSDigitizer();
sdigitizerBranch->SetAddress(&sDigitizer) ;
- treeS->GetEvent(0) ;
+
+ sdigitsBranch->GetEntry(0) ;
+ sdigitizerBranch->GetEntry(0) ;
if(fSDigitizer == 0)
fSDigitizer = sDigitizer ;
tsMakerBranch->SetAddress(&fTSMaker) ;
tsBranch->SetAddress(&fTrackSegments) ;
- treeR->GetEvent(0) ;
+ tsMakerBranch->GetEntry(0) ;
+ tsBranch->GetEntry(0) ;
fRecPointsTitle = fTSMaker->GetRecPointsBranch() ;
cpvBranch->SetAddress(&fCpvRecPoints) ;
cluBranch->SetAddress(&fClusterizer) ;
- treeR->GetEvent(0) ;
+ emcBranch->GetEntry(0) ;
+ cpvBranch->GetEntry(0) ;
+ cluBranch->GetEntry(0) ;
+
return kTRUE ;
if (filename) {
rpBranch->SetFile(filename);
TIter next( rpBranch->GetListOfBranches());
- while ((rpBranch=(TBranch*)next())) {
- rpBranch->SetFile(filename);
+ TBranch * sb ;
+ while ((sb=(TBranch*)next())) {
+ sb->SetFile(filename);
}
cwd->cd();
}
if (filename) {
pidBranch->SetFile(filename);
TIter next( pidBranch->GetListOfBranches());
- while ((pidBranch=(TBranch*)next())) {
- pidBranch->SetFile(filename);
+ TBranch * sb ;
+ while ((sb=(TBranch*)next())) {
+ sb->SetFile(filename);
}
cwd->cd();
}
- gAlice->TreeR()->Fill() ;
+ rpBranch->Fill() ;
+ pidBranch->Fill() ;
gAlice->TreeR()->Write(0,kOverwrite) ;
}
if (file) {
sdigitsBranch->SetFile(file);
TIter next( sdigitsBranch->GetListOfBranches());
- while ((sdigitsBranch=(TBranch*)next())) {
- sdigitsBranch->SetFile(file);
+ TBranch * subbr;
+ while ((subbr=(TBranch*)next())) {
+ subbr->SetFile(file);
}
cwd->cd();
}
if (file) {
sdigitizerBranch->SetFile(file);
TIter next( sdigitizerBranch->GetListOfBranches());
- while ((sdigitizerBranch=(TBranch*)next())) {
- sdigitizerBranch->SetFile(file);
+ TBranch * subbr ;
+ while ((subbr=(TBranch*)next())) {
+ subbr->SetFile(file);
}
cwd->cd();
delete file;
}
- gAlice->TreeS()->Fill() ;
+ sdigitsBranch->Fill() ;
+ sdigitizerBranch->Fill() ;
gAlice->TreeS()->Write(0,TObject::kOverwrite) ;
if(strstr(option,"deb"))
emcBranch->SetAddress(&fEmcRecPoints) ;
cpvBranch->SetAddress(&fCpvRecPoints) ;
clusterizerBranch->SetAddress(&fClusterizer) ;
-
- gAlice->TreeR()->GetEvent(0) ;
+
+ emcBranch->GetEntry(0) ;
+ cpvBranch->GetEntry(0) ;
+ clusterizerBranch->GetEntry(0) ;
return kTRUE ;
if (filename) {
tsBranch->SetFile(filename);
TIter next( tsBranch->GetListOfBranches());
- while ((tsBranch=(TBranch*)next())) {
- tsBranch->SetFile(filename);
+ TBranch * sb ;
+ while ((sb=(TBranch*)next())) {
+ sb->SetFile(filename);
}
cwd->cd();
}
if (filename) {
tsMakerBranch->SetFile(filename);
TIter next( tsMakerBranch->GetListOfBranches());
- while ((tsMakerBranch=(TBranch*)next())) {
- tsMakerBranch->SetFile(filename);
+ TBranch * sb;
+ while ((sb=(TBranch*)next())) {
+ sb->SetFile(filename);
}
cwd->cd();
}
- gAlice->TreeR()->Fill() ;
+ tsBranch->Fill() ;
+ tsMakerBranch->Fill() ;
gAlice->TreeR()->Write(0,kOverwrite) ;
}