Fork me on GitHub

Changeset 72 in svn for trunk/interface


Ignore:
Timestamp:
Dec 3, 2008, 12:01:04 PM (16 years ago)
Author:
severine ovyn
Message:

final trigger

Location:
trunk/interface
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/interface/SmearUtil.h

    r71 r72  
    9898  int MISTAGGING_L;
    9999 
     100  //trigger flag
     101  int DOTRIGGER;
     102
    100103  double CONERADIUS;
    101104  int JETALGO;
  • trunk/interface/TriggerUtil.h

    r63 r72  
    1414#include <vector>
    1515#include "TLorentzVector.h"
     16#include "TClonesArray.h"
    1617
    1718#include "Utilities/ExRootAnalysis/interface/BlockClasses.h"
    1819#include "Utilities/ExRootAnalysis/interface/TSimpleArray.h"
     20#include "Utilities/ExRootAnalysis/interface/ExRootTreeBranch.h"
    1921
    2022using namespace std;
     
    3133  void PrintTrigCondition(string LogName,int i);
    3234
    33   bool GetResult() {
    34     if(!has_been_evaluated) Evaluate(event_i);
    35     return Result;
    36   };
     35  bool GetResult(TClonesArray *branchElecTrig, TClonesArray *branchMuonTrig,
     36      TClonesArray *branchJetTrig, TClonesArray *branchTauJetTrig,
     37      TClonesArray *branchPhotonTrig,  TClonesArray *branchETmisTrig);
    3738
    3839 private:
    39   bool Evaluate(int event_i); // <- à la fin, mettre has_been_evaluated=true;
    40 
     40 
    4141  vector<float> GetCuts(const vector<string> &Sequences);
    4242  vector<float> ElecValues;
     
    4747  vector<float> GammaValues;
    4848  bool Result;
    49   int event_i;
    50   bool has_been_evaluated;
    5149};
    5250
     
    6866  // appelle la méthode TriggerBit::PriniTrigCondition
    6967 
    70 
    71   bool GetGlobalResult() {
    72     if (! has_been_evaluated) Evaluate(event_i);
    73     return GlobalResult;
    74   }
     68  bool GetGlobalResult(TClonesArray *branchElecTrig, TClonesArray *branchMuonTrig,
     69      TClonesArray *branchJetTrig, TClonesArray *branchTauJetTrig,
     70      TClonesArray *branchPhotonTrig, TClonesArray *branchETmisTrig,ExRootTreeBranch *branchTrigger);
    7571
    7672  void WriteResult();
Note: See TracChangeset for help on using the changeset viewer.