Changeset 1108 for trunk/MagicSoft/Mars/mbase/MReadTree.cc
- Timestamp:
- 12/11/01 15:22:10 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MReadTree.cc
r1085 r1108 149 149 Bool_t MReadTree::Notify() 150 150 { 151 fNotify->ForEach(TObject, Notify)(); 151 // 152 // FIXME: This is correct! 153 // 154 // fNotify->ForEach(TObject, Notify)(); 155 156 fTaskList->ReInit(); 157 152 158 return kTRUE; 153 159 } … … 209 215 // -------------------------------------------------------------------------- 210 216 // 217 // Set branch status of branch name 218 // 219 void MReadTree::SetBranchStatus(const char *name, Bool_t status) 220 { 221 fChain->SetBranchStatus(name, status); 222 223 *fLog << inf << (status ? "Enabled" : "Disabled"); 224 *fLog << " subbranch '" << name << "'." << endl; 225 } 226 227 // -------------------------------------------------------------------------- 228 // 211 229 // Checks whether a branch with the given name exists in the chain 212 230 // and sets the branch status of this branch corresponding to status. … … 222 240 // Check whether this branch really exists 223 241 // 224 if (!fChain->GetBranch(name)) 242 if (fChain->GetBranch(name)) 243 SetBranchStatus(name, status); 244 245 // 246 // Remove trailing '.' if one and try to enable the subbranch without 247 // the master barnch name. This is to be compatible with older mars 248 // and camera files. 249 // 250 const char *dot = strrchr(name, '.'); 251 if (!dot) 225 252 return; 226 253 227 // 228 // Set the branch status 229 // 230 fChain->SetBranchStatus(name, status); 231 *fLog << inf << (status ? "Enabled" : "Disabled"); 232 *fLog << " subbranch '" << name << "'." << endl; 254 if (fChain->GetBranch(dot+1)) 255 SetBranchStatus(dot+1, kTRUE); 233 256 } 234 257 … … 265 288 // check whether branch choosing must be switched on 266 289 // 267 EnableBranchChoosing();290 //EnableBranchChoosing(); 268 291 269 292 // … … 324 347 Bool_t MReadTree::PreProcess(MParList *pList) 325 348 { 349 fTaskList = (MTaskList*)pList->FindObject("MTaskList"); 350 326 351 // 327 352 // get number of events in this tree
Note:
See TracChangeset
for help on using the changeset viewer.