void AliFMD::SetTreeAddress ()
{
// Set branch address for the Hits and Digits Tree.
- char branchname[30];
if (fLoader->TreeH() && (fHits == 0x0))
fHits = new TClonesArray ("AliFMDhit", 1000);
if (treeD)
{
if (fDigits == 0x0) fDigits = new TClonesArray ("AliFMDdigit", 1000);
- branch = treeD->GetBranch (branchname);
+ branch = treeD->GetBranch ("FMD");
if (branch)
branch->SetAddress (&fDigits);
}
void AliTOF::SetTreeAddress ()
{
// Set branch address for the Hits and Digits Tree.
- char branchname[30];
if (fLoader->TreeH())
{
if (treeD)
{
- branch = treeD->GetBranch (branchname);
+ branch = treeD->GetBranch ("TOF");
if (branch)
{
if (fDigits == 0x0) fDigits = new TClonesArray("AliTOFdigit", 1000);