56 #include "TLorentzVector.h"
84 thePFMETCollectionLabel = iConfig.getParameter<
edm::InputTag>(
"PFMETCollectionLabel");
85 theCaloMETCollectionLabel = iConfig.getParameter<
edm::InputTag>(
"CaloMETCollectionLabel");
86 theTCMETCollectionLabel = iConfig.getParameter<
edm::InputTag>(
"TCMETCollectionLabel");
88 theCaloJetCollectionLabel = iConfig.getParameter<
edm::InputTag>(
"CaloJetCollectionLabel");
89 theJPTJetCollectionLabel = iConfig.getParameter<
edm::InputTag>(
"JPTJetCollectionLabel");
90 thePFJetCollectionLabel = iConfig.getParameter<
edm::InputTag>(
"PFJetCollectionLabel");
92 _ptThreshold = iConfig.getParameter<
double>(
"ptThreshold");
93 _maxNJets = iConfig.getParameter<
double>(
"maxNJets");
94 _maxAbsEta = iConfig.getParameter<
double>(
"maxAbsEta");
104 dqm->setCurrentFolder(dir);
105 hCaloHT = dqm->book1D(
"Calo_HT",
"", 500, 0., 2000);
106 hPFHT = dqm->book1D(
"PF_HT" ,
"", 500, 0., 2000);
107 hJPTHT = dqm->book1D(
"JPT_HT" ,
"", 500, 0., 2000);
114 dqm->setCurrentFolder(dir);
115 hCaloMET = dqm->book1D(
"Calo_MET",
"", 500, 0., 1000);
116 hPFMET = dqm->book1D(
"PF_MET" ,
"", 500, 0., 1000);
117 hTCMET = dqm->book1D(
"TC_MET" ,
"", 500, 0., 1000);
124 dqm->setCurrentFolder(dir);
125 hCaloMHT = dqm->book1D(
"Calo_MHT",
"", 500, 0., 1000);
126 hPFMHT = dqm->book1D(
"PF_MHT" ,
"", 500, 0., 1000);
127 hJPTMHT = dqm->book1D(
"JPT_MHT" ,
"", 500, 0., 1000);
134 dqm->setCurrentFolder(dir);
135 hCaloAlpha_T = dqm->book1D(
"Calo_AlphaT",
"", 100, 0., 1.);
136 hJPTAlpha_T = dqm->book1D(
"PF_AlphaT" ,
"", 100, 0., 1.);
137 hPFAlpha_T = dqm->book1D(
"JPT_AlphaT" ,
"", 100, 0., 1.);
151 iEvent.
getByLabel(theCaloJetCollectionLabel, CaloJetcoll);
153 if(!CaloJetcoll.
isValid())
return;
155 std::vector<math::XYZTLorentzVector> Ps;
156 for (reco::CaloJetCollection::const_iterator
jet = CaloJetcoll->begin();
jet!=CaloJetcoll->end(); ++
jet){
157 if ((
jet->pt()>_ptThreshold) && (
abs(
jet->eta()) < _maxAbsEta)){
158 if(Ps.size()>_maxNJets) {
159 edm::LogInfo(messageLoggerCatregory)<<
"NMax Jets exceded..";
162 Ps.push_back(
jet->p4());
166 hCaloAlpha_T->Fill(
alpha_T()(Ps));
171 hCaloMHT->Fill(CaloHT.
v.Mod());
178 iEvent.
getByLabel(thePFJetCollectionLabel, PFjetcoll);
180 if(!PFjetcoll.
isValid())
return;
183 for (reco::PFJetCollection::const_iterator
jet = PFjetcoll->begin();
jet!=PFjetcoll->end(); ++
jet){
184 if ((
jet->pt()>_ptThreshold) && (
abs(
jet->eta()) < _maxAbsEta)){
185 if(Ps.size()>_maxNJets) {
186 edm::LogInfo(messageLoggerCatregory)<<
"NMax Jets exceded..";
189 Ps.push_back(
jet->p4());
192 hPFAlpha_T->Fill(
alpha_T()(Ps));
197 hPFMHT->Fill(PFHT.
v.Mod());
204 iEvent.
getByLabel(theJPTJetCollectionLabel, JPTjetcoll);
206 if(!JPTjetcoll.
isValid())
return;
209 for (reco::JPTJetCollection::const_iterator
jet = JPTjetcoll->begin();
jet!=JPTjetcoll->end(); ++
jet){
210 if ((
jet->pt()>_ptThreshold) && (
abs(
jet->eta())<_maxAbsEta)){
211 if(Ps.size()>_maxNJets) {
212 edm::LogInfo(messageLoggerCatregory)<<
"NMax Jets exceded..";
215 Ps.push_back(
jet->p4());
218 hJPTAlpha_T->Fill(
alpha_T()(Ps));
223 hJPTMHT->Fill(JPTHT.
v.Mod());
232 iEvent.
getByLabel(theCaloMETCollectionLabel, calometcoll);
234 if(!calometcoll.
isValid())
return;
238 calomet = &(calometcol->front());
240 hCaloMET->Fill(calomet->
pt());
246 iEvent.
getByLabel(thePFMETCollectionLabel, pfmetcoll);
248 if(!pfmetcoll.
isValid())
return;
252 pfmet = &(pfmetcol->front());
254 hPFMET->Fill(pfmet->
pt());
260 iEvent.
getByLabel(theTCMETCollectionLabel, tcmetcoll);
262 if(!tcmetcoll.
isValid())
return;
266 tcmet = &(tcmetcol->front());
268 hTCMET->Fill(tcmet->
pt());
T getParameter(std::string const &) const
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Abs< T >::type abs(const T &t)
virtual void beginRun(const edm::Run &, const edm::EventSetup &iSetup)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
static const char * messageLoggerCatregory
T const * product() const
SUSYDQMAnalyzer(const edm::ParameterSet &)
virtual float pt() const GCC11_FINAL
transverse momentum
virtual void endRun(const edm::Run &, const edm::EventSetup &)