const char *cH = strstr(option,"H");
const char *cD = strstr(option,"D");
const char *cR = strstr(option,"R");
+ const char *cS = strstr(option,"S");
if (cH && fLoader->TreeH())
{
MakeBranchInTree(fLoader->TreeR(), branchname,
&fRecPoints, 405, 0);
}
+ if (cS && fLoader->TreeS())
+ {
+ if (fDigits == 0x0) fDigits = new AliT0digit();
+ // MakeBranchInTree(fLoader->TreeD(), branchname,
+ // &fDigits, 405, 0);
+ fLoader->TreeS()->Branch(branchname,"AliT0digit",&fDigits,405,1);
+ // fLoader->TreeD()->Print();
+ }
}
TBranch* branch = treeR->GetBranch ("T0");
if (branch) branch->SetAddress(&fRecPoints);
}
+ // SDigitizer for Federico
+ TTree *treeS = fLoader->TreeS();
+ if (treeS) {
+ if (fDigits == 0x0) fDigits = new AliT0digit();
+ TBranch* branch = treeS->GetBranch ("T0");
+ if (branch) branch->SetAddress(&fDigits);
+ }
}