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.5 by loizides, Mon Mar 2 13:26:45 2009 UTC vs.
Revision 1.6 by loizides, Sun Mar 8 12:11:49 2009 UTC

# Line 51 | Line 51 | void HLTMod::AddTrigObjs(UInt_t tid)
51   {
52    // Add trigger objects corresponding to trigger id.
53  
54 <  const BitMask256 &ba = fTrigBitsAnd.Ref(tid);
55 <  const BitMask256 &bm = fTrigBitsCmp.Ref(tid);
54 >  const BitMask256 &ba = fTrigBitsAnd.at(tid);
55 >  const BitMask256 &bm = fTrigBitsCmp.at(tid);
56    for (UInt_t i=0; i<bm.Size(); ++i) {
57      if (ba.TestBit(i)==0)
58        continue; // not an active trigger bit
# Line 72 | Line 72 | void HLTMod::BeginRun()
72   {
73    // Get HLT tree and set branches. Compute bitmasks to be used when comparing to the HLT bits.
74  
75 <  fTrigBitsAnd.Reset();
76 <  fTrigBitsCmp.Reset();
75 >  fTrigBitsAnd.clear();
76 >  fTrigBitsCmp.clear();
77  
78    if (fPrintTable)
79      fTriggers->Print();
# Line 106 | Line 106 | void HLTMod::BeginRun()
106        }
107        delete arr;
108      }
109 <    fTrigBitsAnd.AddCopy(amask);
110 <    fTrigBitsCmp.AddCopy(tmask);
109 >    fTrigBitsAnd.push_back(amask);
110 >    fTrigBitsCmp.push_back(tmask);
111    }
112   }
113  
# Line 126 | Line 126 | void HLTMod::Process()
126    fMyTrgObjs->SetOwner(kFALSE); // the objects are owned by the object table
127    fBitsDone.Clear();
128    Bool_t accept = kFALSE;
129 <  for (UInt_t i = 0; i<fTrigBitsAnd.Entries(); ++i) {
130 <    BitMask256 bitmask(*fBits);
131 <    bitmask &= fTrigBitsAnd.Ref(i);
132 <    if (bitmask==fTrigBitsCmp.Ref(i)) {
129 >  for (UInt_t i = 0; i<fTrigBitsAnd.size(); ++i) {
130 >    BitMask256 bitmask(fBits->Get());
131 >    bitmask &= fTrigBitsAnd.at(i);
132 >    if (bitmask==fTrigBitsCmp.at(i)) {
133        accept = kTRUE;
134        AddTrigObjs(i);
135      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines