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 
25 
29 
33 
36 
38 
39 typedef std::vector<std::string> MyStrings;
40 
48 class GetPtGreater {
49 public:
50  template <typename T> bool operator () (const T& i, const T& j) {
51  return (i.getPt() > j.getPt());
52  }
53 };
54 
56 public:
57  template <typename T> bool operator () (const T& i, const T& j) {
58  return (i.pt() > j.pt());
59  }
60 };
61 
62 class HLTJets {
63 public:
64  HLTJets();
65 
66  void setup(const edm::ParameterSet& pSet, TTree* tree);
67 
69  void analyze(const edm::Handle<reco::CaloJetCollection> & recojets,
75  const edm::Handle<reco::HLTTauCollection> & myHLTTau,
76  const edm::Handle<reco::PFTauCollection> & myHLTPFTau,
77  const edm::Handle<reco::PFJetCollection> & myHLTPFJets,
78  const edm::Handle<reco::PFTauCollection> & myRecoPFTau,
79  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrByTanCOnePercent,
80  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrByTanCHalfPercent,
81  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrByTanCQuarterPercent,
82  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrByTanCTenthPercent,
83  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrByIsolation,
84  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrAgainstElec,
85  const edm::Handle<reco::PFTauDiscriminator> & theRecoPFTauDiscrAgainstMuon,
88  double thresholdForSavingTowers,
89  double minPtCH,
90  double minPtGamma,
91  TTree * tree);
92 
93 private:
94 
95  // Tree variables
98  float *jgenpt, *jgenphi, *jgeneta, *jgene;
99  float *towet, *toweta, *towphi, *towen, *towem, *towhd, *towoe;
104 
105  // Taus
108  int nohtau;
109  float *tauEta, *tauPt, *tauPhi;
110  //PFTau
111  int nohPFTau;
114  //PFJets
115  float pfMHT;
116  int nohPFJet;
118  //Reco PFTau
123  //Reco PF jets
126  int nrpj;
127 
128 
129  // input variables
132 
134 
135  const float etaBarrel() {return 1.4;}
136 
137  //create maps linking histogram pointers to HCAL Channel hits and digis
139 
140 };
141 
142 #endif
float * tauPhi
Definition: HLTJets.h:109
int i
Definition: DBlmapReader.cc:9
float * jcaln90
Definition: HLTJets.h:96
float * ohpfTauJetPt
Definition: HLTJets.h:112
float _CalJetMin
Definition: HLTJets.h:131
float * recopfTauDiscrAgainstElec
Definition: HLTJets.h:122
float * pfJetPhi
Definition: HLTJets.h:117
TString calopfx
Definition: HLTJets.h:138
float * jcorcalpt
Definition: HLTJets.h:97
float * towem
Definition: HLTJets.h:99
bool _Debug
Definition: HLTJets.h:130
float * ohpfTauEta
Definition: HLTJets.h:112
TString rjetpfx
Definition: HLTJets.h:138
float * jcalemf
Definition: HLTJets.h:96
int * jpfrecochargedMultiplicity
Definition: HLTJets.h:125
float * ohpfTauLeadTrackPt
Definition: HLTJets.h:112
float htcalet
Definition: HLTJets.h:101
bool _Monte
Definition: HLTJets.h:130
float * recopfTauDiscrByTancQuarterPercent
Definition: HLTJets.h:122
int * recopfTauGammaIso
Definition: HLTJets.h:121
float * recopfTauEta
Definition: HLTJets.h:120
float * jpfrecochargedHadronFraction
Definition: HLTJets.h:124
float * ohpfTauPhi
Definition: HLTJets.h:112
float mgensum
Definition: HLTJets.h:102
float mgenphi
Definition: HLTJets.h:102
float * recopfTauDiscrByIso
Definition: HLTJets.h:122
float * recopfTauLeadTrackPt
Definition: HLTJets.h:120
float * recopfTauDiscrByTancHalfPercent
Definition: HLTJets.h:122
float mgenmet
Definition: HLTJets.h:102
float htcalphi
Definition: HLTJets.h:101
TString gmetpfx
Definition: HLTJets.h:138
float * jpfrecoeta
Definition: HLTJets.h:124
float * toweta
Definition: HLTJets.h:99
float * tauPt
Definition: HLTJets.h:109
float * recopfTauPhi
Definition: HLTJets.h:120
float * jcalphi
Definition: HLTJets.h:96
float * jcorcalphi
Definition: HLTJets.h:97
TString rmetpfx
Definition: HLTJets.h:138
float * jcale
Definition: HLTJets.h:96
float * recopfTauJetPt
Definition: HLTJets.h:120
float * ohpfTauGammaIso
Definition: HLTJets.h:113
float * pfJetPt
Definition: HLTJets.h:117
float * towet
Definition: HLTJets.h:99
float * ohpfTauTrkIso
Definition: HLTJets.h:113
float * jpfreconeutralHadronFraction
Definition: HLTJets.h:124
float * jcorcale
Definition: HLTJets.h:97
float * recopfTauLeadPionPt
Definition: HLTJets.h:120
float * recopfTauPt
Definition: HLTJets.h:120
float * towphi
Definition: HLTJets.h:99
float mcalphi
Definition: HLTJets.h:100
int j
Definition: DBlmapReader.cc:9
float * jgenphi
Definition: HLTJets.h:98
float * jcalpt
Definition: HLTJets.h:96
float * recopfTauDiscrAgainstMuon
Definition: HLTJets.h:122
TString gjetpfx
Definition: HLTJets.h:138
std::vector< std::string > MyStrings
EgammaCoreTools.
Definition: HLTAlCa.h:39
int ncorjetcal
Definition: HLTJets.h:103
float * recopfTauDiscrByTancOnePercent
Definition: HLTJets.h:122
float * tauEta
Definition: HLTJets.h:109
HLTJets()
Definition: HLTJets.cc:14
float * towoe
Definition: HLTJets.h:99
float mcalsum
Definition: HLTJets.h:100
float * ohpfTauLeadPionPt
Definition: HLTJets.h:112
int njetgen
Definition: HLTJets.h:103
float * l25tauPt
Definition: HLTJets.h:106
float * jgeneta
Definition: HLTJets.h:98
bool operator()(const T &i, const T &j)
Definition: HLTJets.h:50
float * jcorcaln90
Definition: HLTJets.h:97
const float etaBarrel()
Definition: HLTJets.h:135
bool operator()(const T &i, const T &j)
Definition: HLTJets.h:57
float * jpfreconeutralEMFraction
Definition: HLTJets.h:124
int njetcal
Definition: HLTJets.h:103
float * jcaleta
Definition: HLTJets.h:96
float * pfJetEta
Definition: HLTJets.h:117
int ntowcal
Definition: HLTJets.h:103
int * jpfreconeutralMultiplicity
Definition: HLTJets.h:125
int * recopfTauTrkIso
Definition: HLTJets.h:121
void setup(const edm::ParameterSet &pSet, TTree *tree)
Definition: HLTJets.cc:25
int nrpj
Definition: HLTJets.h:126
void analyze(const edm::Handle< reco::CaloJetCollection > &recojets, const edm::Handle< reco::CaloJetCollection > &corjets, 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::HLTTauCollection > &myHLTTau, const edm::Handle< reco::PFTauCollection > &myHLTPFTau, 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, double thresholdForSavingTowers, double minPtCH, double minPtGamma, TTree *tree)
Definition: HLTJets.cc:219
float * jcorcalemf
Definition: HLTJets.h:97
float _GenJetMin
Definition: HLTJets.h:131
float * jpfrecophi
Definition: HLTJets.h:124
int * l3tautckiso
Definition: HLTJets.h:107
int nohPFJet
Definition: HLTJets.h:116
float * jpfrecochargedEMFraction
Definition: HLTJets.h:124
float * towen
Definition: HLTJets.h:99
float mcalmet
Definition: HLTJets.h:100
float * l2tauemiso
Definition: HLTJets.h:106
float * jpfrecopt
Definition: HLTJets.h:124
int nRecoPFTau
Definition: HLTJets.h:119
float * recopfTauDiscrByTancTenthPercent
Definition: HLTJets.h:122
int nohtau
Definition: HLTJets.h:108
float * jcorcaleta
Definition: HLTJets.h:97
float pfMHT
Definition: HLTJets.h:115
int nohPFTau
Definition: HLTJets.h:111
long double T
float * jgene
Definition: HLTJets.h:98
float * towhd
Definition: HLTJets.h:99
int evtCounter
Definition: HLTJets.h:133
float * jgenpt
Definition: HLTJets.h:98
float htcalsum
Definition: HLTJets.h:101
float * ohpfTauPt
Definition: HLTJets.h:112