Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76209
b: "refs/heads/CMSSW_7_1_X"
c: e32d659
h: "refs/heads/CMSSW_7_1_X"
i:
  76207: dfd27db
v: v3
  • Loading branch information
Patricia Lobelle Pardo committed Oct 23, 2009
1 parent cfc10d3 commit 1ad87f0
Show file tree
Hide file tree
Showing 6 changed files with 1,318 additions and 471 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
refs/heads/gh-pages: 09c786f70121f131b3715aaf3464996502bbeb7e
"refs/heads/CMSSW_7_1_X": d7dd2c47b0697b0e0490dee35e07a2b2cc3d9ec5
"refs/heads/CMSSW_7_1_X": e32d659571811abd333a29993e140ef17a0c569c
29 changes: 18 additions & 11 deletions trunk/HLTriggerOffline/Higgs/BuildFile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@
<use name=FWCore/Framework>
<use name=FWCore/PluginManager>
<use name=FWCore/ParameterSet>
<use name=DQMServices/Core>

<use name=CondFormats/DataRecord>
#<use name=Geometry/CaloGeometry>
#<use name=Geometry/CaloEventSetup>
<use name=Geometry/Records>
#<use name=DataFormats/JetReco>
#<use name=DataFormats/METReco>
#<use name=DataFormats/MuonReco>
<use name=DataFormats/MuonReco>
#<use name=DataFormats/EgammaCandidates>
<use name=DataFormats/HepMCCandidate>
<use name=DataFormats/EgammaCandidates>
<use name=DataFormats/EgammaReco>
#<use name=DataFormats/HepMCCandidate> //old
#<use name=DataFormats/CaloTowers>
#<use name=DataFormats/HcalRecHit>
#<use name=DataFormats/HcalDigi>
Expand All @@ -20,10 +24,10 @@
#<use name=DataFormats/EcalDetId>
#<use name=DataFormats/FEDRawData>
#<use name=TBDataFormats/HcalTBObjects>
<use name=SimDataFormats/HepMCProduct>
<use name=DataFormats/L1Trigger>
<use name=DataFormats/L1GlobalTrigger>
<use name=CondFormats/L1TObjects>
#<use name=SimDataFormats/HepMCProduct> //old
##<use name=DataFormats/L1Trigger>
##<use name=DataFormats/L1GlobalTrigger>
##<use name=CondFormats/L1TObjects>
<use name=hepmc>
<flags EDM_PLUGIN=1>
<export>
Expand All @@ -38,7 +42,10 @@
# <use name=Geometry/CaloEventSetup>
# <use name=DataFormats/JetReco>
# <use name=DataFormats/METReco>
# <use name=DataFormats/MuonReco>
<use name=DataFormats/MuonReco>
<use name=DataFormats/EgammaCandidates>
<use name=DataFormats/EgammaReco>

# <use name=DataFormats/EgammaCandidates>
<use name=DataFormats/HepMCCandidate>
# <use name=DataFormats/HcalRecHit>
Expand All @@ -49,8 +56,8 @@
# <use name=DataFormats/EcalDetId>
# <use name=DataFormats/FEDRawData>
# <use name=TBDataFormats/HcalTBObjects>
<use name=SimDataFormats/HepMCProduct>
<use name=DataFormats/L1Trigger>
<use name=DataFormats/L1GlobalTrigger>
<use name=CondFormats/L1TObjects>
# <use name=SimDataFormats/HepMCProduct> //old
## <use name=DataFormats/L1Trigger>
## <use name=DataFormats/L1GlobalTrigger>
## <use name=CondFormats/L1TObjects>
</export>
215 changes: 191 additions & 24 deletions trunk/HLTriggerOffline/Higgs/interface/HLTHiggsBits.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* This class is an EDAnalyzer implementing TrigReport (statistics
* printed to log file) for HL triggers
*
* $Date: 2007/06/19 11:47:50 $
* $Revision: 1.2 $
* $Date: 2008/03/10 15:37:14 $
* $Revision: 1.1 $
*
* \author Martin Grunewald
*
Expand Down Expand Up @@ -37,6 +37,19 @@
#include "FWCore/Framework/interface/TriggerNames.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/Common/interface/TriggerResults.h"


#include "FWCore/ServiceRegistry/interface/Service.h"
#include "PhysicsTools/UtilAlgos/interface/TFileService.h"


//Include DQM core
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/MonitorElement.h"




#include<vector>
#include<string>

Expand All @@ -52,40 +65,170 @@ class HLTHiggsBits : public edm::EDAnalyzer {
explicit HLTHiggsBits(const edm::ParameterSet&);
~HLTHiggsBits();
virtual void endJob();
virtual void getL1Names(const edm::Event& iEvent, const edm::EventSetup& iSetup);
virtual void analyze(const edm::Event&, const edm::EventSetup&);







edm::ParameterSet parameters;

DQMStore* dbe;


TTree *HltTree;
TH1D *hlt_mult_hist;
TH1D *hlt_mult_hist_mc;
TH1D *hlt_mult_hist_l1;
TH1D *hlt_bit_hist;
TH1D *hlt_bit_hist_mc;
TH1D *hlt_bit_hist_l1;
TH1D *hlt_bit_cumul;
TH1D *hlt_bit_cumul_mc;
TH1D *hlt_bit_cumul_l1;
TH1D *hlt_redundancy[10];
TH1D *hlt_redundancy_mc[10];
TH1D *hlt_redundancy_l1[10];
TH1D *trg_eff_gen;
TH1D *trg_eff_gen_mc;
/* MonitorElement *hlt_mult_hist;
MonitorElement *hlt_mult_hist_mc;
MonitorElement *hlt_mult_hist_l1;
MonitorElement *hlt_bit_hist;
MonitorElement *hlt_bit_hist_reco;
MonitorElement *hlt_bit_hist_mc;
MonitorElement *hlt_bit_hist_l1;
MonitorElement *hlt_bit_cumul;
MonitorElement *hlt_bit_cumul_mc;
MonitorElement *hlt_bit_cumul_l1;
MonitorElement *hlt_redundancy[10];
MonitorElement *hlt_redundancy_mc[10];
MonitorElement *hlt_redundancy_l1[10];
MonitorElement *trg_eff_gen;
MonitorElement *trg_eff_gen_mc;
MonitorElement *trg_eff_gen_mc_mu;
MonitorElement *trg_eff_gen_mc_elec;
MonitorElement *trg_eff_gen_mc_emu;
MonitorElement *hlt_bitmu_hist;
MonitorElement *hlt_bitel_hist;
MonitorElement *hlt_bitemu_hist;
MonitorElement *hlt_bitph_hist;
MonitorElement *hlt_bittau_hist;
MonitorElement *hlt_bitmu_hist_reco;
MonitorElement *hlt_bitel_hist_reco;
MonitorElement *hlt_bitemu_hist_reco;
MonitorElement *hlt_bitph_hist_reco;
MonitorElement *hlt_bittau_hist_reco;
MonitorElement *ev_clasif;
MonitorElement *h_mu;
MonitorElement *h_el;
MonitorElement *h_ph;
MonitorElement *h_tau;
MonitorElement *h_emu;
MonitorElement *h_tot;
MonitorElement *h_mc;
MonitorElement *h_mc_reco;
MonitorElement *h_mu_reco;
MonitorElement *h_el_reco;
MonitorElement *h_ph_reco;
MonitorElement *h_tau_reco;
MonitorElement *h_emu_reco;
MonitorElement *h_l3pt;
MonitorElement *h_l3eta;*/

MonitorElement *h_ptmu1;
MonitorElement *h_ptmu2;
MonitorElement *h_ptmu1_trig[20];
MonitorElement *h_ptmu2_trig[20];

MonitorElement *h_ptel1;
MonitorElement *h_ptel2;
MonitorElement *h_ptel1_trig[20];
MonitorElement *h_ptel2_trig[20];

MonitorElement *h_ptmu1_emu;
MonitorElement *h_etamu1_emu;
MonitorElement *h_ptel1_emu;
MonitorElement *h_etael1_emu;
MonitorElement *h_ptmu1_emu_trig[20];
MonitorElement *h_etamu1_emu_trig[20];
MonitorElement *h_ptel1_emu_trig[20];
MonitorElement *h_etael1_emu_trig[20];


MonitorElement *h_ptph1;
MonitorElement *h_ptph2;
MonitorElement *h_ptph1_trig[20];
MonitorElement *h_ptph2_trig[20];

/* MonitorElement *h_ptmu1_match[20];
MonitorElement *h_ptmu2_match[20];
MonitorElement *h_etamu1_match[20];
MonitorElement *h_etamu2_match[20];
MonitorElement *h_ptel1_match[20];
MonitorElement *h_ptel2_match[20];
MonitorElement *h_ptph1_match[20];
MonitorElement *h_ptph2_match[20];*/

MonitorElement *h_pttau1;
// MonitorElement *h_pttau2;
MonitorElement *h_pttau1_trig[20];
// MonitorElement *h_pttau2_trig[20];

MonitorElement *h_etamu1;
MonitorElement *h_etamu2;
MonitorElement *h_etamu1_trig[20];
MonitorElement *h_etamu2_trig[20];

MonitorElement *h_etael1;
MonitorElement *h_etael2;
MonitorElement *h_etael1_trig[20];
MonitorElement *h_etael2_trig[20];

MonitorElement *h_etaph1;
MonitorElement *h_etaph2;
MonitorElement *h_etaph1_trig[20];
MonitorElement *h_etaph2_trig[20];

MonitorElement *h_etatau1;
// MonitorElement *h_etatau2;
MonitorElement *h_etatau1_trig[20];
// MonitorElement *h_etatau2_trig[20];


/* MonitorElement *h_gen;
MonitorElement *h_reco;
MonitorElement *h_ptph1_l3;
MonitorElement *h_etaph1_l3;
MonitorElement *h_ptph2_l3;
MonitorElement *h_etaph2_l3;*/


private:

edm::InputTag hlTriggerResults_; // Input tag for TriggerResults
edm::InputTag l1ParticleMapTag_; // Input tag for L1-Particles maps
/* edm::InputTag l1ParticleMapTag_; // Input tag for L1-Particles maps
edm::InputTag l1GTReadoutRecTag_; // Input tag for Tag for L1 Trigger Results
edm::InputTag l1GTObjectMapTag_;
edm::InputTag mctruth_; // Input tag for Tag for L1 Trigger Results
int n_channel_, n_hlt_bits;
edm::InputTag l1GTObjectMapTag_;*/
edm::InputTag mctruth_;

int n_channel_;
int n_hlt_bits, n_hlt_bits_eg, n_hlt_bits_mu, n_hlt_bits_ph, n_hlt_bits_tau;

edm::TriggerNames triggerNames_; // TriggerNames class

std::map<int, std::string> algoBitToName;
// std::map<int, std::string> algoBitToName;

HLTHiggsTruth mct_analysis_;

edm::Handle<edm::TriggerResults> HLTR;

/*
unsigned int n_true_; // total selected (taken by HLT, passing MC preselection)
unsigned int n_fake_; // total fakes (taken by HLT, not passing MC preselection)
Expand All @@ -94,24 +237,48 @@ class HLTHiggsBits : public edm::EDAnalyzer {
unsigned int n_L1acc_; // total of L1 accepts
unsigned int n_L1acc_mc_; // L1 accepts of events, passing MC preselection
unsigned int n_hlt_of_L1_; // HLT accepts of all L1 accepted

unsigned int n_mm_;
unsigned int n_mm_acc;
unsigned int n_ee_;
unsigned int n_ee_acc;
unsigned int n_em_;*/

unsigned int nEvents_; // number of events processed
std::vector<std::string> hlNames_; // name of each HLT algorithm
bool init_; // vectors initialised or not

bool l1_decision;

int hlt_whichbit[3][20][21];


TFile* m_file; // pointer to Histogram file
int *hlt_nbits;
int neventcount;

string histName;
std::vector<string> hlt_bitnames;
std::vector<string> hlt_bitnamesMu;
std::vector<string> hlt_bitnamesEg;

std::vector<string> hlt_bitnamesPh;
std::vector<string> hlt_bitnamesTau;

/* std::vector<string> hlt_labels;
std::vector<string> hlt_labelsMu;
std::vector<string> hlt_labelsEg;*/


ofstream outfile;

/* typedef math::XYZTLorentzVector LorentzVector;*/



std::string triggerTag_;
std::string outFile_, outputFileName;
bool outputMEsInRootFile;


};

Expand Down
Loading

0 comments on commit 1ad87f0

Please sign in to comment.