29 LOG(fatal) <<
"Failed to load cells/digits tree from " << fileName;
32 if constexpr (std::is_same<InputType, Digit>::value) {
33 mInputTree->SetBranchAddress(
"EMCALDigit", &mInputArray);
35 LOG(fatal) <<
"Failed to find EMCALDigit branch in the " << mInputTree->GetName()
36 <<
" from file " << fileName;
38 mInputTree->SetBranchAddress(
"EMCALDigitTRGR", &mTriggerArray);
40 LOG(fatal) <<
"Failed to find TriggerRecords branch in the " << mInputTree->GetName()
41 <<
" from file " << fileName;
43 }
else if constexpr (std::is_same<InputType, Cell>::value) {
44 mInputTree->SetBranchAddress(
"EMCALCell", &mInputArray);
46 LOG(fatal) <<
"Failed to find EMCALCell branch in the " << mInputTree->GetName()
47 <<
" from file " << fileName;
49 mInputTree->SetBranchAddress(
"EMCALCellTRGR", &mTriggerArray);
51 LOG(fatal) <<
"Failed to find TriggerRecords branch in the " << mInputTree->GetName()
52 <<
" from file " << fileName;