36 jetLabel_(iConfig.getUntrackedParameter<edm::
InputTag>(
"jetTag")),
37 metLabel1_(iConfig.getUntrackedParameter<edm::
InputTag>(
"metTag1")),
38 metLabel2_(iConfig.getUntrackedParameter<edm::
InputTag>(
"metTag2")),
39 metLabel3_(iConfig.getUntrackedParameter<edm::
InputTag>(
"metTag3")),
40 metLabel4_(iConfig.getUntrackedParameter<edm::
InputTag>(
"metTag4"))
60 MEcontainer_[
"dijet_mass"] =
theDbe->
book1D(
"dijet_mass",
"dijet resonance invariant mass, barrel region", 100, 0, 1000);
67 MEcontainer_[
"inclusive_jet_pt_barrel"] =
theDbe->
book1D(
"inclusive_jet_pt_barrel",
"inclusive jet Pt, eta < 1.3", 100, 0, 1000);
68 MEcontainer_[
"inclusive_jet_pt_forward"] =
theDbe->
book1D(
"inclusive_jet_pt_forward",
"inclusive jet Pt, 3.0 < eta < 5.0", 100, 0, 1000);
69 MEcontainer_[
"inclusive_jet_pt_endcap"] =
theDbe->
book1D(
"inclusive_jet_pt_endcap",
"inclusive jet Pt, 1.3 < eta < 3.0", 100, 0, 1000);
73 MEcontainer_[
"leading_jet_pt_barrel"] =
theDbe->
book1D(
"leading_jet_pt_barrel",
"leading jet Pt, eta < 1.3", 100, 0, 1000);
74 MEcontainer_[
"leading_jet_pt_forward"] =
theDbe->
book1D(
"leading_jet_pt_forward",
"leading jet Pt, 3.0 < eta < 5.0", 100, 0, 1000);
75 MEcontainer_[
"leading_jet_pt_endcap"] =
theDbe->
book1D(
"leading_jet_pt_endcap",
"leading jet Pt, 1.3 < eta < 3.0", 100, 0, 1000);
80 MEcontainer_[
"moverl_met"] =
theDbe->
book1D(
"moverl_met",
"MET over leading jet Pt for basic MET collection", 50, 0, 2);
83 MEcontainer_[
"moverl_metho"] =
theDbe->
book1D(
"moverl_metho",
"MET over leading jet Pt for MET HO collection", 50, 0, 2);
85 MEcontainer_[
"movers_metnohf"] =
theDbe->
book1D(
"movers_metnohf",
"MET over Sum ET for MET no HF collection", 50, 0, 1);
86 MEcontainer_[
"moverl_metnohf"] =
theDbe->
book1D(
"moverl_metnohf",
"MET over leading jet Pt for MET no HF collection", 50, 0, 2);
88 MEcontainer_[
"movers_metnohfho"] =
theDbe->
book1D(
"movers_metnohfho",
"MET over Sum ET for MET no HF HO collection", 50, 0, 1);
89 MEcontainer_[
"moverl_metnohfho"] =
theDbe->
book1D(
"moverl_metnohfho",
"MET over leading jet Pt for MET no HF HO collection", 50, 0, 2);
110 CaloMETCollection::const_iterator met_iter;
111 for(met_iter = metcollection.begin(); met_iter!= metcollection.end(); ++met_iter)
113 float mex = met_iter->momentum().x();
114 float mey = met_iter->momentum().y();
115 float met =
sqrt(mex*mex+mey*mey);
116 float sumet = met_iter->sumEt();
117 metovers = (met / sumet);
126 CaloMETCollection::const_iterator met_iter;
127 for(met_iter = metcollection.begin(); met_iter!= metcollection.end(); ++met_iter)
129 float mex = met_iter->momentum().x();
130 float mey = met_iter->momentum().y();
131 float met =
sqrt(mex*mex+mey*mey);
132 metoverl = (met / ljpt);
144 CaloJetCollection::const_iterator jet_iter;
166 float leading_jetpt = 0;
167 float leading_jeteta = 0;
177 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};
179 for(jet_iter = jets.begin(); jet_iter!= jets.end(); ++jet_iter){
183 float jet_pt = jet_iter->
pt();
184 float jet_eta = jet_iter->eta();
185 float jet_phi = jet_iter->phi();
189 MEcontainer_[
"inclusive_jet_EMF"]->Fill(jet_iter->emEnergyFraction());
197 if(nbarreljets == 0){
198 leadingbarreljet = jets[(njets-1)];
201 else if(nbarreljets == 1){
202 secondbarreljet = jets[(njets-1)];
209 else if(jet_eta <= 3.0 && jet_eta > 1.3){
MEcontainer_[
"inclusive_jet_pt_endcap"]->Fill(jet_pt);}
211 else if(jet_eta <= 5.0 && jet_eta > 3.0){
MEcontainer_[
"inclusive_jet_pt_forward"]->Fill(jet_pt);}
215 if((jet_pt) > 30) njets30++;
218 if(jet_pt > leading_jetpt){
219 leading_jetpt = jet_pt;
220 leading_jeteta = jet_eta;
224 for (
int eit = 0; eit < 81; eit++){
225 for(
int pit = 0; pit < 72; pit++){
226 float low_eta = etabins[eit];
227 float high_eta = etabins[eit+1];
228 float low_phi = (-
M_PI) + pit*(
M_PI/36);
229 float high_phi = low_phi + (
M_PI/36);
230 if(jet_eta > low_eta && jet_eta < high_eta && jet_phi > low_phi && jet_phi < high_phi){
243 if(leading_jeteta <= 1.3){
MEcontainer_[
"leading_jet_pt_barrel"]->Fill(leading_jetpt);}
245 else if(leading_jeteta <= 3.0 && leading_jeteta > 1.3){
MEcontainer_[
"leading_jet_pt_endcap"]->Fill(leading_jetpt);}
247 else if(leading_jeteta <= 5.0 && leading_jeteta > 3.0){
MEcontainer_[
"leading_jet_pt_forward"]->Fill(leading_jetpt);}
266 if(jets.size() >= 1){
267 MEcontainer_[
"leading_jet_EMF"]->Fill(jets[0].emEnergyFraction());
269 MEcontainer_[
"second_jet_EMF"]->Fill(jets[1].emEnergyFraction());
270 if(jets.size() >= 3){
271 MEcontainer_[
"third_jet_EMF"]->Fill(jets[2].emEnergyFraction());
278 if(nbarreljets == 2){
279 if(leadingbarreljet.
energy() > 0 && secondbarreljet.
energy() > 0){
281 float dijet_mass = DiJet.mass();
float moverl(const reco::CaloMETCollection &metcollection, float &ljpt)
void analyze(const edm::Event &, const edm::EventSetup &)
Get the analysis.
Jets made from CaloTowers.
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
std::map< std::string, MonitorElement * > MEcontainer_
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
virtual double energy() const
energy
void beginJob()
Inizialize parameters for histo binning.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
float movers(const reco::CaloMETCollection &metcollection)
virtual double pt() const
transverse momentum
QcdHighPtDQM(const edm::ParameterSet &)
Constructor.
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
virtual ~QcdHighPtDQM()
Destructor.
void setCurrentFolder(const std::string &fullpath)
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects