CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTJets.h
Go to the documentation of this file.
1 #ifndef HLTJETS_H
2 #define HLTJETS_H
3 
4 #include "TH1.h"
5 #include "TH2.h"
6 #include "TFile.h"
7 #include "TNamed.h"
8 #include <vector>
9 #include <map>
10 #include "TROOT.h"
11 #include "TChain.h"
12 
14 
18 
21 
24 
28 
32 
36 
39 
41 
43 
44 typedef std::vector<std::string> MyStrings;
45 
53 class GetPtGreater {
54 public:
55  template <typename T> bool operator () (const T& i, const T& j) {
56  return (i.getPt() > j.getPt());
57  }
58 };
59 
61 public:
62  template <typename T> bool operator () (const T& i, const T& j) {
63  return (i.pt() > j.pt());
64  }
65 };
66 
67 class HLTJets {
68 public:
69  HLTJets();
70 
71  void setup(const edm::ParameterSet& pSet, TTree* tree);
72 
74  void analyze(edm::Event const& iEvent,
76  const edm::Handle<reco::CaloJetCollection> & ohcorjets,
77  const edm::Handle<reco::CaloJetCollection> & ohcorL1L2L3jets,
78  const edm::Handle<double> & rho,
79  const edm::Handle<reco::CaloJetCollection> & recojets,
80  const edm::Handle<reco::CaloJetCollection> & recocorjets,
85  const edm::Handle<reco::CaloJetCollection> & myHLTL2Tau,
86  const edm::Handle<reco::HLTTauCollection> & myHLTTau,
87  const edm::Handle<reco::PFTauCollection> & myHLTPFTau,
88  const edm::Handle<reco::PFTauCollection> & myHLTPFTauTightCone,
89  const edm::Handle<reco::PFJetCollection> & myHLTPFJets,
90  const edm::Handle<reco::PFTauCollection> & myRecoPFTau,
91  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrByTanCOnePercent,
92  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrByTanCHalfPercent,
93  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrByTanCQuarterPercent,
94  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrByTanCTenthPercent,
95  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrByIsolation,
96  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrAgainstElec,
97  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrAgainstMuon,
100  const edm::Handle<CaloTowerCollection> & caloTowersCleanerUpperR45,
101  const edm::Handle<CaloTowerCollection> & caloTowersCleanerLowerR45,
102  const edm::Handle<CaloTowerCollection> & caloTowersCleanerNoR45,
103  const edm::Handle<reco::PFMETCollection> & pfmets,
104  double thresholdForSavingTowers,
105  double minPtCH,
106  double minPtGamma,
107  TTree * tree);
108 
109 private:
110 
111  // Tree variables
115  double jrho;
116 
119 
120  float *jgenpt, *jgenphi, *jgeneta, *jgene;
121  float *towet, *toweta, *towphi, *towen, *towem, *towhd, *towoe;
126 
128 
132 
133  // Taus
137  float *tauEta, *tauPt, *tauPhi;
138  //PFTau
139  int nohPFTau;
143  //PFTau with tight cone
148  //PFJets
149  float pfHT;
150  float pfMHT;
151  int nohPFJet;
153  //Reco PFTau
158  //Reco PF jets
161  int nrpj;
162 
163 
164  // isolation/signal cands for recoPFTau and HLTPFtau
169 
174 
179 
184 
186 
187 
188  // input variables
191 
193 
194  static float etaBarrel() { return 1.4; }
195 
196  //create maps linking histogram pointers to HCAL Channel hits and digis
198 
199 };
200 
201 #endif
float * jhcalpt
Definition: HLTJets.h:112
float * l2tauPhi
Definition: HLTJets.h:134
float * tauPhi
Definition: HLTJets.h:137
int i
Definition: DBlmapReader.cc:9
float * ohpfTauJetPt
Definition: HLTJets.h:141
int noRecoPFTausSignal
Definition: HLTJets.h:165
float _CalJetMin
Definition: HLTJets.h:190
float * recopfTauDiscrAgainstElec
Definition: HLTJets.h:157
float * jrcorcalemf
Definition: HLTJets.h:118
float * jrcorcaleta
Definition: HLTJets.h:118
float * pfJetPhi
Definition: HLTJets.h:152
TString calopfx
Definition: HLTJets.h:197
int * hltpftauIsoTrToPFTauMatch
Definition: HLTJets.h:181
float * HLTPFTauIsoTrPt
Definition: HLTJets.h:183
float * towem
Definition: HLTJets.h:121
float * l2tauEta
Definition: HLTJets.h:134
float * jrcorcaln90hits
Definition: HLTJets.h:118
bool _Debug
Definition: HLTJets.h:189
float * jhcorL1L2L3cale
Definition: HLTJets.h:114
float * jrcaln90
Definition: HLTJets.h:117
float * ohpfTauEta
Definition: HLTJets.h:141
float * ohpfTauTightConeLeadTrackPt
Definition: HLTJets.h:146
TString rjetpfx
Definition: HLTJets.h:197
float * HLTPFTauSignalTrDz
Definition: HLTJets.h:177
float * ohpfTauTightConeTrkIso
Definition: HLTJets.h:147
float * ohpfTauTightConePt
Definition: HLTJets.h:146
int * jpfrecochargedMultiplicity
Definition: HLTJets.h:160
float * ohpfTauLeadTrackPt
Definition: HLTJets.h:141
Definition: DDAxes.h:10
float htcalet
Definition: HLTJets.h:124
bool _Monte
Definition: HLTJets.h:189
float * recopfTauDiscrByTancQuarterPercent
Definition: HLTJets.h:157
float * pfJetchargedHadronFraction
Definition: HLTJets.h:152
int * recopfTauGammaIso
Definition: HLTJets.h:156
float * recopfTauEta
Definition: HLTJets.h:155
float * jpfrecochargedHadronFraction
Definition: HLTJets.h:159
float * ohpfTauPhi
Definition: HLTJets.h:141
float mgensum
Definition: HLTJets.h:125
float mgenphi
Definition: HLTJets.h:125
int noHLTPFTausIso
Definition: HLTJets.h:180
float * recopfTauDiscrByIso
Definition: HLTJets.h:157
float pfmetphi
Definition: HLTJets.h:127
float * recopfTauLeadTrackPt
Definition: HLTJets.h:155
float * jhcalemf
Definition: HLTJets.h:112
float * recopfTauDiscrByTancHalfPercent
Definition: HLTJets.h:157
int noHLTPFTausSignal
Definition: HLTJets.h:175
int * towR45upper
Definition: HLTJets.h:122
float mgenmet
Definition: HLTJets.h:125
float * jpfrecoe
Definition: HLTJets.h:159
float htcalphi
Definition: HLTJets.h:124
float * recoPFTauSignalTrPt
Definition: HLTJets.h:168
int nhjetcal
Definition: HLTJets.h:130
float * jhcorcalpt
Definition: HLTJets.h:113
float * jhcorcaleta
Definition: HLTJets.h:113
int nrjetcal
Definition: HLTJets.h:131
float * jhcorL1L2L3caleta
Definition: HLTJets.h:114
float * jhcale
Definition: HLTJets.h:112
int * hltpftauSignalTrToPFTauMatch
Definition: HLTJets.h:176
float * jrcaln90hits
Definition: HLTJets.h:117
float * ohpfTauTightConeLeadPionPt
Definition: HLTJets.h:146
float * jrcale
Definition: HLTJets.h:117
TString gmetpfx
Definition: HLTJets.h:197
float * ohpfTauTightConeJetPt
Definition: HLTJets.h:146
float * jpfrecoeta
Definition: HLTJets.h:159
float * pfJetE
Definition: HLTJets.h:152
float * toweta
Definition: HLTJets.h:121
float * l2tauPt
Definition: HLTJets.h:134
float * jrcaleta
Definition: HLTJets.h:117
float * HLTPFTauIsoTrDz
Definition: HLTJets.h:182
float * recoPFTauIsoTrPt
Definition: HLTJets.h:173
float * tauPt
Definition: HLTJets.h:137
float * recopfTauPhi
Definition: HLTJets.h:155
int iEvent
Definition: GenABIO.cc:243
TString rmetpfx
Definition: HLTJets.h:197
float * ohpfTauTightConeEta
Definition: HLTJets.h:146
float * recopfTauJetPt
Definition: HLTJets.h:155
float * ohpfTauGammaIso
Definition: HLTJets.h:142
float pfsumet
Definition: HLTJets.h:127
float * pfJetPt
Definition: HLTJets.h:152
float * jhcaln90hits
Definition: HLTJets.h:112
float * towet
Definition: HLTJets.h:121
float * jrcorcaln90
Definition: HLTJets.h:118
float * ohpfTauTrkIso
Definition: HLTJets.h:142
float * jhcaln90
Definition: HLTJets.h:112
float * jpfreconeutralHadronFraction
Definition: HLTJets.h:159
float * recopfTauLeadPionPt
Definition: HLTJets.h:155
float * recopfTauPt
Definition: HLTJets.h:155
reco::helper::JetIDHelper * jetID
Definition: HLTJets.h:185
float * towphi
Definition: HLTJets.h:121
float * jhcorcalemf
Definition: HLTJets.h:113
float * recoPFTauIsoTrDz
Definition: HLTJets.h:172
float mcalphi
Definition: HLTJets.h:123
int j
Definition: DBlmapReader.cc:9
static float etaBarrel()
Definition: HLTJets.h:194
float * jgenphi
Definition: HLTJets.h:120
void analyze(edm::Event const &iEvent, const edm::Handle< reco::CaloJetCollection > &ohjets, const edm::Handle< reco::CaloJetCollection > &ohcorjets, const edm::Handle< reco::CaloJetCollection > &ohcorL1L2L3jets, const edm::Handle< double > &rho, const edm::Handle< reco::CaloJetCollection > &recojets, const edm::Handle< reco::CaloJetCollection > &recocorjets, const edm::Handle< reco::GenJetCollection > &gjets, const edm::Handle< reco::CaloMETCollection > &rmets, const edm::Handle< reco::GenMETCollection > &gmets, const edm::Handle< reco::METCollection > &ht, const edm::Handle< reco::CaloJetCollection > &myHLTL2Tau, const edm::Handle< reco::HLTTauCollection > &myHLTTau, const edm::Handle< reco::PFTauCollection > &myHLTPFTau, const edm::Handle< reco::PFTauCollection > &myHLTPFTauTightCone, const edm::Handle< reco::PFJetCollection > &myHLTPFJets, const edm::Handle< reco::PFTauCollection > &myRecoPFTau, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByTanCOnePercent, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByTanCHalfPercent, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByTanCQuarterPercent, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByTanCTenthPercent, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByIsolation, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrAgainstElec, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrAgainstMuon, const edm::Handle< reco::PFJetCollection > &recoPFJets, const edm::Handle< CaloTowerCollection > &caloTowers, const edm::Handle< CaloTowerCollection > &caloTowersCleanerUpperR45, const edm::Handle< CaloTowerCollection > &caloTowersCleanerLowerR45, const edm::Handle< CaloTowerCollection > &caloTowersCleanerNoR45, const edm::Handle< reco::PFMETCollection > &pfmets, double thresholdForSavingTowers, double minPtCH, double minPtGamma, TTree *tree)
Definition: HLTJets.cc:400
int * towR45lower
Definition: HLTJets.h:122
int * signalTrToPFTauMatch
Definition: HLTJets.h:166
float * ohpfTauTightConeGammaIso
Definition: HLTJets.h:147
float * recopfTauDiscrAgainstMuon
Definition: HLTJets.h:157
TString gjetpfx
Definition: HLTJets.h:197
std::vector< std::string > MyStrings
EgammaCoreTools.
Definition: HLTAlCa.h:39
float * recopfTauDiscrByTancOnePercent
Definition: HLTJets.h:157
float * tauEta
Definition: HLTJets.h:137
HLTJets()
Definition: HLTJets.cc:17
float * towoe
Definition: HLTJets.h:121
double jrho
Definition: HLTJets.h:115
float * pfJetneutralMultiplicity
Definition: HLTJets.h:152
float mcalsum
Definition: HLTJets.h:123
float * pfJetneutralHadronEnergyFraction
Definition: HLTJets.h:152
float pfmet
Definition: HLTJets.h:127
float * ohpfTauLeadPionPt
Definition: HLTJets.h:141
int njetgen
Definition: HLTJets.h:129
float * jhcorcale
Definition: HLTJets.h:113
float * l25tauPt
Definition: HLTJets.h:134
float * HLTPFTauSignalTrPt
Definition: HLTJets.h:178
float * jhcaleta
Definition: HLTJets.h:112
float * jgeneta
Definition: HLTJets.h:120
bool operator()(const T &i, const T &j)
Definition: HLTJets.h:55
bool operator()(const T &i, const T &j)
Definition: HLTJets.h:62
float * jpfreconeutralEMFraction
Definition: HLTJets.h:159
float * jhcorL1L2L3caln90hits
Definition: HLTJets.h:114
float * l2tauemiso
Definition: HLTJets.h:134
float * jrcorcalphi
Definition: HLTJets.h:118
float * jrcalpt
Definition: HLTJets.h:117
int * towR45none
Definition: HLTJets.h:122
float * pfJetEta
Definition: HLTJets.h:152
int ntowcal
Definition: HLTJets.h:129
int * jpfreconeutralMultiplicity
Definition: HLTJets.h:160
int * recopfTauTrkIso
Definition: HLTJets.h:156
int * ohpfTauTightConeProngs
Definition: HLTJets.h:145
int nohPFTauTightCone
Definition: HLTJets.h:144
void setup(const edm::ParameterSet &pSet, TTree *tree)
Definition: HLTJets.cc:28
float * recoPFTauSignalTrDz
Definition: HLTJets.h:167
float * jrcalphi
Definition: HLTJets.h:117
int nrpj
Definition: HLTJets.h:161
int noRecoPFTausIso
Definition: HLTJets.h:170
float * jhcorL1L2L3calemf
Definition: HLTJets.h:114
float * jhcorL1L2L3caln90
Definition: HLTJets.h:114
float _GenJetMin
Definition: HLTJets.h:190
float * jpfrecophi
Definition: HLTJets.h:159
int * l3tautckiso
Definition: HLTJets.h:135
int nohPFJet
Definition: HLTJets.h:151
float * jpfrecochargedEMFraction
Definition: HLTJets.h:159
float * towen
Definition: HLTJets.h:121
float * jhcorcalphi
Definition: HLTJets.h:113
float * jhcorcaln90
Definition: HLTJets.h:113
float mcalmet
Definition: HLTJets.h:123
float * pfJetneutralEMFraction
Definition: HLTJets.h:152
float * jpfrecopt
Definition: HLTJets.h:159
float * jhcalphi
Definition: HLTJets.h:112
int nRecoPFTau
Definition: HLTJets.h:154
float * ohpfTauTightConePhi
Definition: HLTJets.h:146
int * ohpfTauProngs
Definition: HLTJets.h:140
float * recopfTauDiscrByTancTenthPercent
Definition: HLTJets.h:157
float * jhcorL1L2L3calphi
Definition: HLTJets.h:114
int * isoTrToPFTauMatch
Definition: HLTJets.h:171
int nohtau
Definition: HLTJets.h:136
float * pfJetchargedMultiplicity
Definition: HLTJets.h:152
float pfMHT
Definition: HLTJets.h:150
int nohPFTau
Definition: HLTJets.h:139
float * pfJetchargedEMFraction
Definition: HLTJets.h:152
float * jrcorcale
Definition: HLTJets.h:118
long double T
float * jrcorcalpt
Definition: HLTJets.h:118
float * jgene
Definition: HLTJets.h:120
float * towhd
Definition: HLTJets.h:121
float * jhcorcaln90hits
Definition: HLTJets.h:113
float * jhcorL1L2L3calpt
Definition: HLTJets.h:114
int evtCounter
Definition: HLTJets.h:192
int nhcorjetcal
Definition: HLTJets.h:130
int nohl2tau
Definition: HLTJets.h:136
int nrcorjetcal
Definition: HLTJets.h:131
float * jrcalemf
Definition: HLTJets.h:117
float * ohpfTauLeadTrackVtxZ
Definition: HLTJets.h:141
float * jgenpt
Definition: HLTJets.h:120
float htcalsum
Definition: HLTJets.h:124
float pfHT
Definition: HLTJets.h:149
float * ohpfTauPt
Definition: HLTJets.h:141
int nhcorL1L2L3jetcal
Definition: HLTJets.h:130