ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/Selection/src/applySelection.cc
(Generate patch)

Comparing UserCode/MitHzz4l/Selection/src/applySelection.cc (file contents):
Revision 1.19 by khahn, Thu May 10 22:36:12 2012 UTC vs.
Revision 1.20 by khahn, Thu May 10 23:28:31 2012 UTC

# Line 343 | Line 343 | int main(int argc, char** argv)
343          evtinfo.npu;
344          weights.npuw = getPUWeight(evtinfo.npu);
345          //      cout << "weight: " << weights.w << endl;
346 +        //
347 +        // trigger
348 +        //
349 +        if( string(chain->GetFile()->GetEndpointUrl()->GetFile()) != currentFile ) {
350 +          currentFile = string(chain->GetFile()->GetEndpointUrl()->GetFile());
351 +          hltchain->SetBranchAddress(fTriggerTableName, &hltTableStrings);
352 +          hltchain->GetEntry(0);
353 +          hltTable->Clear();
354 +          fillTriggerBits(hltTable, hltTableStrings );
355 +        }
356 +        if( ctrl.debug ) cout << "file is : " << currentFile  << endl;
357 +        fillTriggerBits( hltTable, trigMask, triggerBits );
358 +        if( !passHLT(triggerBits, info->RunNum(), info->EvtNum() ) ) {
359 +          if( ctrl.debug ) cout << "\tfails trigger ... " << endl;
360 +          continue;
361 +        }
362        } else {
363          //
364          // JSON

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines