49 |
|
if (!file) |
50 |
|
return; |
51 |
|
|
52 |
< |
// get HLT tree |
52 |
> |
// get all event header tree |
53 |
|
fAllHeadTree = dynamic_cast<TTree*>(file->Get(fAllHeadTreeName)); |
54 |
|
if (!fAllHeadTree) { |
55 |
|
SendError(kWarning, "BeginRun", |
57 |
|
fAllHeadTreeName.Data(),file->GetName()); |
58 |
|
return; |
59 |
|
} |
60 |
– |
} |
60 |
|
|
61 |
< |
// get HLT trigger name branch |
62 |
< |
if (fAllHeadTree->GetBranch(fAllHeadBrName)) { |
63 |
< |
fAllHeadTree->SetBranchAddress(fAllHeadBrName, &fAllEventHeader); |
64 |
< |
} else { |
65 |
< |
SendError(kWarning, "BeginRun", |
66 |
< |
"Cannot find branch '%s' in tree '%s'", |
67 |
< |
fAllHeadBrName.Data(), fAllHeadTreeName.Data()); |
68 |
< |
return; |
61 |
> |
// get all event header branch |
62 |
> |
if (fAllHeadTree->GetBranch(fAllHeadBrName)) { |
63 |
> |
fAllHeadTree->SetBranchAddress(fAllHeadBrName, &fAllEventHeader); |
64 |
> |
} else { |
65 |
> |
SendError(kWarning, "BeginRun", |
66 |
> |
"Cannot find branch '%s' in tree '%s'", |
67 |
> |
fAllHeadBrName.Data(), fAllHeadTreeName.Data()); |
68 |
> |
return; |
69 |
> |
} |
70 |
|
} |
71 |
|
} |
72 |
|
|