|
| DiJetMonitor (const edm::ParameterSet &) |
|
| ~DiJetMonitor () override throw () |
|
void | accumulate (edm::Event const &ev, edm::EventSetup const &es) final |
|
void | beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override |
|
void | beginRun (edm::Run const &run, edm::EventSetup const &setup) final |
|
virtual void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) |
|
| DQMEDAnalyzer () |
|
| DQMEDAnalyzer (DQMEDAnalyzer const &)=delete |
|
| DQMEDAnalyzer (DQMEDAnalyzer &&)=delete |
|
void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override |
|
void | endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final |
|
void | endRun (edm::Run const &run, edm::EventSetup const &setup) override |
|
void | endRunProduce (edm::Run &run, edm::EventSetup const &setup) override |
|
| ~DQMEDAnalyzer () override=default |
|
| EDProducer ()=default |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | hasAbilityToProduceInLumis () const final |
|
bool | hasAbilityToProduceInRuns () const final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDProducerBase () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
| ~ProducerBase () noexcept(false) override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
void | bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, unsigned nbins, double xmin, double xmax) |
|
void | bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const std::vector< double > &binningX) |
|
void | bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, unsigned nbinsX, double xmin, double xmax, double ymin, double ymax) |
|
void | bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, unsigned nbinsX, double xmin, double xmax, unsigned nbinsY, double ymin, double ymax) |
|
void | bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const std::vector< double > &binningX, const std::vector< double > &binningY) |
|
void | setMETitle (ObjME &me, const std::string &titleX, const std::string &titleY) |
|
| TriggerDQMBase ()=default |
|
virtual | ~TriggerDQMBase ()=default |
|
|
void | analyze (edm::Event const &iEvent, edm::EventSetup const &iSetup) override |
|
void | bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override |
|
bool | dijet_selection (double eta_1, double phi_1, double eta_2, double phi_2, double pt_1, double pt_2, int &tag_id, int &probe_id, int Event) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
|
ConsumesCollector | consumesCollector () |
| Use a ConsumesCollector to gather consumes information from helper functions. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
void | consumesMany () |
|
void | consumesMany (const TypeToGet &id) |
|
template<BranchType B> |
void | consumesMany (const TypeToGet &id) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
Definition at line 49 of file DiJetMonitor.h.
Reimplemented from DQMEDAnalyzer.
Definition at line 101 of file DiJetMonitor.cc.
References den_genTriggerEventFlag_, TriggerDQMBase::ObjME::denominator, dijet_selection(), dijetSrc_, edm::EventID::event(), MonitorElement::Fill(), HcalObjRepresent::Fill(), edm::Event::getByToken(), edm::EventBase::id(), edm::HandleBase::isValid(), jetAsyEtaME_, jetEtaPhiME_, jetetaPrbME_, jetetaTagME_, jetphiPrbME_, jetpt1ME_, jetpt2ME_, jetptAsyME_, jetptAvgaME_, jetptAvgaThrME_, jetptAvgbME_, jetptPrbME_, jetptTagME_, num_genTriggerEventFlag_, TriggerDQMBase::ObjME::numerator, and ptcut_.
Referenced by ~DiJetMonitor().
103 Event =
iEvent.id().event();
107 std::vector<double> v_jetpt;
108 std::vector<double> v_jeteta;
109 std::vector<double> v_jetphi;
121 for ( reco::PFJetCollection::const_iterator ibegin = offjets->begin(), iend = offjets->end(), ijet = ibegin; ijet != iend; ++ijet ) {
122 if (ijet->pt()<
ptcut_) {
continue;}
123 v_jetpt.push_back(ijet->pt());
124 v_jeteta.push_back(ijet->eta());
125 v_jetphi.push_back(ijet->phi());
127 if (v_jetpt.size() < 2) {
return;}
128 double pt_1 = v_jetpt[0];
129 double eta_1 = v_jeteta[0];
130 double phi_1 = v_jetphi[0];
131 double pt_2 = v_jetpt[1];
132 double eta_2 = v_jeteta[1];
133 double phi_2 = v_jetphi[1];
134 double pt_avg_b = (pt_1 + pt_2)*0.5;
135 int tag_id = -999, probe_id = -999;
141 if(
dijet_selection(eta_1, phi_1, eta_2, phi_2, pt_1, pt_2,tag_id, probe_id,Event) ){
143 if(tag_id == 0 && probe_id == 1) {
144 double pt_asy = (pt_2 - pt_1)/(pt_1 + pt_2);
145 double pt_avg = (pt_1 + pt_2)*0.5;
157 if(tag_id == 1 && probe_id == 0) {
158 double pt_asy = (pt_1 - pt_2)/(pt_2 + pt_1);
159 double pt_avg = (pt_2 + pt_1)*0.5;
178 if(tag_id == 0 && probe_id == 1) {
179 double pt_asy = (pt_2 - pt_1)/(pt_1 + pt_2);
180 double pt_avg = (pt_1 + pt_2)*0.5;
192 if(tag_id == 1 && probe_id == 0) {
193 double pt_asy = (pt_1 - pt_2)/(pt_2 + pt_1);
194 double pt_avg = (pt_2 + pt_1)*0.5;
MonitorElement * numerator
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
edm::EDGetTokenT< reco::PFJetCollection > dijetSrc_
MonitorElement * denominator
bool dijet_selection(double eta_1, double phi_1, double eta_2, double phi_2, double pt_1, double pt_2, int &tag_id, int &probe_id, int Event)
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
Implements DQMEDAnalyzer.
Definition at line 28 of file DiJetMonitor.cc.
References asy_binning, TriggerDQMBase::bookME(), den_genTriggerEventFlag_, dijet_eta_binning, dijet_phi_binning, dijetpt_binning_, dijetptThr_binning_, folderName_, jetAsyEtaME_, jetEtaPhiME_, jetetaPrbME_, jetetaTagME_, jetphiPrbME_, jetpt1ME_, jetpt2ME_, jetptAsyME_, jetptAvgaME_, jetptAvgaThrME_, jetptAvgbME_, jetptPrbME_, jetptTagME_, TriggerDQMBase::MEbinning::nbins, num_genTriggerEventFlag_, DQMStore::IBooker::setCurrentFolder(), TriggerDQMBase::setMETitle(), AlCaHLTBitMon_QueryRunRegistry::string, TriggerDQMBase::MEbinning::xmax, and TriggerDQMBase::MEbinning::xmin.
Referenced by ~DiJetMonitor().
37 histname =
"jetpt1"; histtitle =
"leading Jet Pt";
41 histname =
"jetpt2"; histtitle =
"second leading Jet Pt";
45 histname =
"jetptAvgB"; histtitle =
"Pt average before offline selection";
49 histname =
"jetptAvgA"; histtitle =
"Pt average after offline selection";
53 histname =
"jetptAvgAThr"; histtitle =
"Pt average after offline selection";
57 histname =
"jetptTag"; histtitle =
"Tag Jet Pt";
61 histname =
"jetptPrb"; histtitle =
"Probe Jet Pt";
65 histname =
"jetptAsym"; histtitle =
"Jet Pt Asymetry";
69 histname =
"jetetaPrb"; histtitle =
"Probe Jet eta";
73 histname =
"jetetaTag"; histtitle =
"Tag Jet eta";
77 histname =
"ptAsymVSetaPrb"; histtitle =
"Pt_Asym vs eta_prb";
81 histname =
"etaPrbVSphiPrb"; histtitle =
"eta_prb vs phi_prb";
85 histname =
"jetphiPrb"; histtitle =
"Probe Jet phi";
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
MEbinning dijetpt_binning_
MEbinning dijetptThr_binning_
void setMETitle(ObjME &me, const std::string &titleX, const std::string &titleY)
MEbinning dijet_phi_binning
void setCurrentFolder(const std::string &fullpath)
MEbinning dijet_eta_binning
void bookME(DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, unsigned nbins, double xmin, double xmax)