|
| DiDispStaMuonMonitor (const edm::ParameterSet &) |
|
| ~DiDispStaMuonMonitor () override throw () |
|
void | accumulate (edm::Event const &event, edm::EventSetup const &setup) final |
|
void | beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final |
|
void | beginRun (edm::Run const &run, edm::EventSetup const &setup) final |
|
void | beginStream (edm::StreamID id) final |
|
virtual void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) |
|
| DQMEDAnalyzer () |
|
void | endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final |
|
void | endRun (edm::Run const &run, edm::EventSetup const &setup) final |
|
virtual bool | getCanSaveByLumi () |
|
| EDProducer ()=default |
|
| EDProducer (const EDProducer &)=delete |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndProcessBlocks () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
const EDProducer & | operator= (const EDProducer &)=delete |
|
void | bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const uint nbins, const double xmin, const double xmax, const bool bookDen=true) |
|
void | bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const std::vector< double > &binningX, const bool bookDen=true) |
|
void | bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const uint nbinsX, const double xmin, const double xmax, const double ymin, const double ymax, const bool bookDen=true) |
|
void | bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const uint nbinsX, const double xmin, const double xmax, const uint nbinsY, const double ymin, const double ymax, const bool bookDen=true) |
|
void | bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const std::vector< double > &binningX, const std::vector< double > &binningY, const bool bookDen=true) |
|
void | setMETitle (ObjME &me, const std::string &titleX, const std::string &titleY) |
|
| TriggerDQMBase ()=default |
|
virtual | ~TriggerDQMBase ()=default |
|
Definition at line 16 of file DiDispStaMuonMonitor.cc.
Reimplemented from DQMEDAnalyzer.
Definition at line 230 of file DiDispStaMuonMonitor.cc.
References den_genTriggerEventFlag_, TriggerDQMBase::ObjME::denominator, PVValHelper::dxy, PVValHelper::eta, dqm::impl::MonitorElement::Fill(), hltPathsAreValid_, mps_fire::i, iEvent, eostools::ls(), visualization-live-secondInstance_cfg::m, muonDxyME_, muonEtaME_, muonPhiME_, muonPtME_, muonPtME_variableBinning_, muonPtNoDxyCutME_, muonPtVsLS_, PDWG_BPHSkim_cff::muons, muonSelectionDxy_, muonSelectionGeneral_, muonSelectionPt_, muonToken_, nmuons_, num_genTriggerEventFlag_, TriggerDQMBase::ObjME::numerator, phi, DiDispStaMuonMonitor_cfi::pt, reco::TrackBase::pt(), requireValidHLTPaths_, jetUpdater_cfi::sort, subMuonDxyME_, subMuonEtaME_, subMuonPhiME_, subMuonPtME_, and subMuonPtME_variableBinning_.
241 const int ls =
iEvent.id().luminosityBlock();
245 if ((
unsigned int)(DSAHandle->size()) <
nmuons_)
247 std::vector<edm::Ptr<reco::Track>> dsaMuonPtrs_{};
248 for (
size_t i(0);
i != DSAHandle->size(); ++
i) {
249 dsaMuonPtrs_.emplace_back(DSAHandle,
i);
251 std::vector<edm::Ptr<reco::Track>>
muons{}, muonsCutOnPt{}, muonsCutOnDxy{}, muonsCutOnPtAndDxy{};
255 std::copy_if(dsaMuonPtrs_.begin(), dsaMuonPtrs_.end(), back_inserter(
muons), selectGeneral_);
261 return lhs->
pt() > rhs->pt();
267 std::copy_if(
muons.begin(),
muons.end(), back_inserter(muonsCutOnPt), selectOnPt_);
270 std::copy_if(
muons.begin(),
muons.end(), back_inserter(muonsCutOnDxy), selectOnDxy_);
272 auto selectOnPtAndDxy_(
274 std::copy_if(
muons.begin(),
muons.end(), back_inserter(muonsCutOnPtAndDxy), selectOnPtAndDxy_);
276 std::sort(muonsCutOnPt.begin(), muonsCutOnPt.end(), ptSorter_);
277 std::sort(muonsCutOnDxy.begin(), muonsCutOnDxy.end(), ptSorter_);
278 std::sort(muonsCutOnPtAndDxy.begin(), muonsCutOnPtAndDxy.end(), ptSorter_);
283 if (muonsCutOnDxy.size() >=
nmuons_) {
294 if (muonsCutOnPtAndDxy.size() >=
nmuons_) {
303 if (muonsCutOnPt.size() >=
nmuons_) {
317 if (muonsCutOnDxy.size() >=
nmuons_) {
328 if (muonsCutOnPtAndDxy.size() >=
nmuons_) {
337 if (muonsCutOnPt.size() >=
nmuons_) {
const bool requireValidHLTPaths_
double pt() const
track transverse momentum
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
StringCutObjectSelector< reco::Track, true > muonSelectionDxy_
StringCutObjectSelector< reco::Track, true > muonSelectionGeneral_
MonitorElement * denominator
MonitorElement * numerator
ObjME muonPtME_variableBinning_
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
ObjME subMuonPtME_variableBinning_
StringCutObjectSelector< reco::Track, true > muonSelectionPt_
edm::EDGetTokenT< reco::TrackCollection > muonToken_
Implements DQMEDAnalyzer.
Definition at line 103 of file DiDispStaMuonMonitor.cc.
References TriggerDQMBase::bookME(), den_genTriggerEventFlag_, folderName_, hltPathsAreValid_, ls_binning_, muonDxy_binning_, muonDxyME_, muonEta_binning_, muonEtaME_, muonPhi_binning_, muonPhiME_, muonPt_binning_, muonPt_variable_binning_, muonPtME_, muonPtME_variableBinning_, muonPtNoDxyCutME_, muonPtVsLS_, TriggerDQMBase::MEbinning::nbins, nmuons_, num_genTriggerEventFlag_, requireValidHLTPaths_, dqm::implementation::NavigatorBase::setCurrentFolder(), TriggerDQMBase::setMETitle(), AlCaHLTBitMon_QueryRunRegistry::string, subMuonDxyME_, subMuonEtaME_, subMuonPhiME_, subMuonPtME_, subMuonPtME_variableBinning_, TriggerDQMBase::MEbinning::xmax, and TriggerDQMBase::MEbinning::xmin.
131 histtitle =
"muonPt";
136 histname =
"muonPtNoDxyCut";
137 histtitle =
"muonPtNoDxyCut";
147 histname =
"muonPt_variable";
148 histtitle =
"muonPt";
152 histname =
"muonPtVsLS";
153 histtitle =
"muonPt vs LS";
165 histname =
"muonEta";
166 histtitle =
"muonEta";
171 histname =
"muonPhi";
172 histtitle =
"muonPhi";
177 histname =
"muonDxy";
178 histtitle =
"muonDxy";
184 histname =
"subMuonPt";
185 histtitle =
"subMuonPt";
190 histname =
"subMuonPt_variable";
191 histtitle =
"subMuonPt";
195 histname =
"subMuonEta";
196 histtitle =
"subMuonEta";
206 histname =
"subMuonPhi";
207 histtitle =
"subMuonPhi";
217 histname =
"subMuonDxy";
218 histtitle =
"subMuonDxy";
std::vector< double > muonPt_variable_binning_
virtual void setCurrentFolder(std::string const &fullpath)
const bool requireValidHLTPaths_
const std::string folderName_
void setMETitle(ObjME &me, const std::string &titleX, const std::string &titleY)
MEbinning muonPt_binning_
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
MEbinning muonEta_binning_
MEbinning muonDxy_binning_
ObjME muonPtME_variableBinning_
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
ObjME subMuonPtME_variableBinning_
void bookME(DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const uint nbins, const double xmin, const double xmax, const bool bookDen=true)
MEbinning muonPhi_binning_