ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/TreeMod/src/HLTMod.cc
(Generate patch)

Comparing UserCode/MitAna/TreeMod/src/HLTMod.cc (file contents):
Revision 1.14 by loizides, Tue Sep 15 14:48:36 2009 UTC vs.
Revision 1.15 by loizides, Thu Sep 17 14:18:35 2009 UTC

# Line 68 | Line 68 | void HLTMod::AddTrigObjs(UInt_t tid)
68        continue; // excluded trigger bit (ie a !trgname)
69  
70      const TList *list = fTrigObjs->GetList(i);
71 <
72 <    TIter iter(list->MakeIterator());
73 <    const TriggerObject *to = dynamic_cast<const TriggerObject*>(iter.Next());
74 <    while (to) {
75 <      if ( (fObjMode == kAll) ||
76 <           ((fObjMode==kHlt) && (to->IsHLT())) ||
77 <           ((fObjMode==kL1) && (to->IsL1())) )
78 <        fMyTrgObjs->Add(to);    
79 <      to = dynamic_cast<const TriggerObject*>(iter.Next());
71 >    if (list) {
72 >      TIter iter(list->MakeIterator());
73 >      const TriggerObject *to = dynamic_cast<const TriggerObject*>(iter.Next());
74 >      while (to) {
75 >        if ( (fObjMode == kAll) ||
76 >             ((fObjMode==kHlt) && (to->IsHLT())) ||
77 >             ((fObjMode==kL1) && (to->IsL1())) )
78 >          fMyTrgObjs->Add(to);    
79 >        to = dynamic_cast<const TriggerObject*>(iter.Next());
80 >      }
81      }
82      fBitsDone.SetBit(i);
83    }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines