35 (iConfig.getUntrackedParameter<edm::
InputTag>(
"jetTag"))),
37 (iConfig.getUntrackedParameter<edm::
InputTag>(
"metTag1"))),
39 (iConfig.getUntrackedParameter<edm::
InputTag>(
"metTag2"))),
41 (iConfig.getUntrackedParameter<edm::
InputTag>(
"metTag3"))),
43 (iConfig.getUntrackedParameter<edm::
InputTag>(
"metTag4")))
63 MEcontainer_[
"dijet_mass"] =
theDbe->
book1D(
"dijet_mass",
"dijet resonance invariant mass, barrel region", 100, 0, 1000);
70 MEcontainer_[
"inclusive_jet_pt_barrel"] =
theDbe->
book1D(
"inclusive_jet_pt_barrel",
"inclusive jet Pt, eta < 1.3", 100, 0, 1000);
71 MEcontainer_[
"inclusive_jet_pt_forward"] =
theDbe->
book1D(
"inclusive_jet_pt_forward",
"inclusive jet Pt, 3.0 < eta < 5.0", 100, 0, 1000);
72 MEcontainer_[
"inclusive_jet_pt_endcap"] =
theDbe->
book1D(
"inclusive_jet_pt_endcap",
"inclusive jet Pt, 1.3 < eta < 3.0", 100, 0, 1000);
76 MEcontainer_[
"leading_jet_pt_barrel"] =
theDbe->
book1D(
"leading_jet_pt_barrel",
"leading jet Pt, eta < 1.3", 100, 0, 1000);
77 MEcontainer_[
"leading_jet_pt_forward"] =
theDbe->
book1D(
"leading_jet_pt_forward",
"leading jet Pt, 3.0 < eta < 5.0", 100, 0, 1000);
78 MEcontainer_[
"leading_jet_pt_endcap"] =
theDbe->
book1D(
"leading_jet_pt_endcap",
"leading jet Pt, 1.3 < eta < 3.0", 100, 0, 1000);
83 MEcontainer_[
"moverl_met"] =
theDbe->
book1D(
"moverl_met",
"MET over leading jet Pt for basic MET collection", 50, 0, 2);
86 MEcontainer_[
"moverl_metho"] =
theDbe->
book1D(
"moverl_metho",
"MET over leading jet Pt for MET HO collection", 50, 0, 2);
88 MEcontainer_[
"movers_metnohf"] =
theDbe->
book1D(
"movers_metnohf",
"MET over Sum ET for MET no HF collection", 50, 0, 1);
89 MEcontainer_[
"moverl_metnohf"] =
theDbe->
book1D(
"moverl_metnohf",
"MET over leading jet Pt for MET no HF collection", 50, 0, 2);
91 MEcontainer_[
"movers_metnohfho"] =
theDbe->
book1D(
"movers_metnohfho",
"MET over Sum ET for MET no HF HO collection", 50, 0, 1);
92 MEcontainer_[
"moverl_metnohfho"] =
theDbe->
book1D(
"moverl_metnohfho",
"MET over leading jet Pt for MET no HF HO collection", 50, 0, 2);
113 CaloMETCollection::const_iterator met_iter;
114 for(met_iter = metcollection.begin(); met_iter!= metcollection.end(); ++met_iter)
116 float mex = met_iter->momentum().x();
117 float mey = met_iter->momentum().y();
118 float met =
sqrt(mex*mex+mey*mey);
119 float sumet = met_iter->sumEt();
120 metovers = (met / sumet);
129 CaloMETCollection::const_iterator met_iter;
130 for(met_iter = metcollection.begin(); met_iter!= metcollection.end(); ++met_iter)
132 float mex = met_iter->momentum().x();
133 float mey = met_iter->momentum().y();
134 float met =
sqrt(mex*mex+mey*mey);
135 metoverl = (met / ljpt);
147 CaloJetCollection::const_iterator jet_iter;
169 float leading_jetpt = 0;
170 float leading_jeteta = 0;
180 const float etabins[83] = {-5.191, -4.889, -4.716, -4.538, -4.363, -4.191, -4.013, -3.839, -3.664, -3.489, -3.314, -3.139, -2.964, -2.853, -2.650, -2.500, -2.322, -2.172, -2.043, -1.930, -1.830, -1.740, -1.653, -1.566, -1.479, -1.392, -1.305, -1.218, -1.131, -1.044, -.957, -.879, -.783, -.696, -.609, -.522, -.435, -.348, -.261, -.174, -.087, 0, .087, .174, .261, .348, .435, .522, .609, .696, .783, .879, .957, 1.044, 1.131, 1.218, 1.305, 1.392, 1.479, 1.566, 1.653, 1.740, 1.830, 1.930, 2.043, 2.172, 2.322, 2.500, 2.650, 2.853, 2.964, 3.139, 3.314, 3.489, 3.664, 3.839, 4.013, 4.191, 4.363, 4.538, 4.889, 5.191};
182 for(jet_iter = jets.begin(); jet_iter!= jets.end(); ++jet_iter){
186 float jet_pt = jet_iter->
pt();
187 float jet_eta = jet_iter->eta();
188 float jet_phi = jet_iter->phi();
192 MEcontainer_[
"inclusive_jet_EMF"]->Fill(jet_iter->emEnergyFraction());
200 if(nbarreljets == 0){
201 leadingbarreljet = jets[(njets-1)];
204 else if(nbarreljets == 1){
205 secondbarreljet = jets[(njets-1)];
212 else if(jet_eta <= 3.0 && jet_eta > 1.3){
MEcontainer_[
"inclusive_jet_pt_endcap"]->Fill(jet_pt);}
214 else if(jet_eta <= 5.0 && jet_eta > 3.0){
MEcontainer_[
"inclusive_jet_pt_forward"]->Fill(jet_pt);}
218 if((jet_pt) > 30) njets30++;
221 if(jet_pt > leading_jetpt){
222 leading_jetpt = jet_pt;
223 leading_jeteta = jet_eta;
227 for (
int eit = 0; eit < 81; eit++){
228 for(
int pit = 0; pit < 72; pit++){
229 float low_eta = etabins[eit];
230 float high_eta = etabins[eit+1];
231 float low_phi = (-
M_PI) + pit*(
M_PI/36);
232 float high_phi = low_phi + (
M_PI/36);
233 if(jet_eta > low_eta && jet_eta < high_eta && jet_phi > low_phi && jet_phi < high_phi){
246 if(leading_jeteta <= 1.3){
MEcontainer_[
"leading_jet_pt_barrel"]->Fill(leading_jetpt);}
248 else if(leading_jeteta <= 3.0 && leading_jeteta > 1.3){
MEcontainer_[
"leading_jet_pt_endcap"]->Fill(leading_jetpt);}
250 else if(leading_jeteta <= 5.0 && leading_jeteta > 3.0){
MEcontainer_[
"leading_jet_pt_forward"]->Fill(leading_jetpt);}
269 if(jets.size() >= 1){
270 MEcontainer_[
"leading_jet_EMF"]->Fill(jets[0].emEnergyFraction());
272 MEcontainer_[
"second_jet_EMF"]->Fill(jets[1].emEnergyFraction());
273 if(jets.size() >= 3){
274 MEcontainer_[
"third_jet_EMF"]->Fill(jets[2].emEnergyFraction());
281 if(nbarreljets == 2){
282 if(leadingbarreljet.
energy() > 0 && secondbarreljet.
energy() > 0){
284 float dijet_mass = DiJet.mass();
edm::EDGetTokenT< reco::CaloMETCollection > metToken1_
virtual double energy() const GCC11_FINAL
energy
float moverl(const reco::CaloMETCollection &metcollection, float &ljpt)
void analyze(const edm::Event &, const edm::EventSetup &)
Get the analysis.
tuple met
____________________________________________________________________________||
Jets made from CaloTowers.
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< reco::CaloMETCollection > metToken2_
tuple metNoHF
____________________________________________________________________________||
std::map< std::string, MonitorElement * > MEcontainer_
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
tuple metNoHFHO
____________________________________________________________________________||
void beginJob()
Inizialize parameters for histo binning.
edm::EDGetTokenT< reco::CaloMETCollection > metToken4_
edm::EDGetTokenT< reco::CaloMETCollection > metToken3_
float movers(const reco::CaloMETCollection &metcollection)
QcdHighPtDQM(const edm::ParameterSet &)
Constructor.
tuple metHO
____________________________________________________________________________||
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
virtual float pt() const GCC11_FINAL
transverse momentum
edm::EDGetTokenT< reco::CaloJetCollection > jetToken_
virtual ~QcdHighPtDQM()
Destructor.
void setCurrentFolder(const std::string &fullpath)
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects