/*
$Log$
+Revision 1.50 2001/05/11 09:15:21 barbera
+Corrected to make fast point creation working with PPR geometry
+
Revision 1.49 2001/05/11 07:37:49 hristov
Legacy lines commented
Int_t i;
for(i=0;i<kNTYPES;i++) {
- (*fDetTypes)[i]=new AliITSDetType();
+ fDetTypes->AddAt(new AliITSDetType(),i);
fNdtype[i]=0;
fNctype[i]=0;
}
{
// sets the default segmentation, response, digit and raw cluster classes
- printf("SetDefaults\n");
+ if(fDebug) printf("%s: SetDefaults\n",ClassName());
AliITSDetType *iDetType;
}
//_____________________________________________________________________________
-void AliITS::MakeBranch(Option_t* option, char *file)
+void AliITS::MakeBranch(Option_t* option, const char *file)
{
//
// Creates Tree branches for the ITS.
if (kNTYPES==3) sprintf(branchname,"%sDigits%s",GetName(),det[i]);
else sprintf(branchname,"%sDigits%d",GetName(),i+1);
if (fDtype && gAlice->TreeD()) {
- gAlice->MakeBranchInTree(gAlice->TreeD(),
+ MakeBranchInTree(gAlice->TreeD(),
branchname, &((*fDtype)[i]), buffersize, file);
// cout << "Making Branch " << branchname;
// cout << " for digits of type "<< i+1 << endl;
if(!fRecPoints) fRecPoints=new TClonesArray("AliITSRecPoint",10000);
if (fRecPoints && gAlice->TreeR()) {
- gAlice->MakeBranchInTree(gAlice->TreeR(),
+ MakeBranchInTree(gAlice->TreeR(),
branchname, &fRecPoints, buffersize, file) ;
// cout << "Making Branch " << branchname;
// cout << " for reconstructed space points" << endl;
TStopwatch timer;
timer.Start();
- HitsToDigits(0,0,-1," ","All"," ");
+ HitsToDigits(gAlice->GetEvNumber(),0,-1," ","All"," ");
timer.Stop(); timer.Print();
delete sim0;