CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
TopDiLeptonOfflineDQM Class Reference

define MonitorEnsembple to be used More...

#include <TopDiLeptonOfflineDQM.h>

Inheritance diagram for TopDiLeptonOfflineDQM:
DQMOneEDAnalyzer<> edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args... > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

void analyze (const edm::Event &event, const edm::EventSetup &setup) override
 do this during the event loop More...
 
 TopDiLeptonOfflineDQM (const edm::ParameterSet &cfg)
 default constructor More...
 
 ~TopDiLeptonOfflineDQM () override
 default destructor More...
 
- Public Member Functions inherited from DQMOneEDAnalyzer<>
void accumulate (edm::Event const &event, edm::EventSetup const &setup) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
 DQMOneEDAnalyzer ()
 
void endRun (edm::Run const &, edm::EventSetup const &) final
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args... >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
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
 
std::vector< bool > const & recordProvenanceList () 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)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Protected Member Functions

void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
- Protected Member Functions inherited from DQMOneEDAnalyzer<>
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
virtual void dqmEndRun (edm::Run const &, edm::EventSetup const &)
 
- Protected Member Functions inherited from edm::ProducerBase
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 declare what type of product will make and with which optional label More...
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Private Member Functions

std::string objectType (const std::string &label)
 
std::string selectionStep (const std::string &label)
 

Private Attributes

edm::EDGetTokenT< reco::BeamSpotbeamspot_
 beamspot More...
 
std::unique_ptr< StringCutObjectSelector< reco::BeamSpot > > beamspotSelect_
 string cut selector More...
 
std::vector< std::unique_ptr< SelectionStep< reco::CaloJet > > > CaloJetSteps
 
std::unique_ptr< SelectionStep< reco::PFCandidate > > ElectronStep
 
std::vector< std::unique_ptr< SelectionStep< reco::Jet > > > JetSteps
 
std::unique_ptr< SelectionStep< reco::MET > > METStep
 
std::unique_ptr< SelectionStep< reco::PFCandidate > > MuonStep
 
std::vector< std::unique_ptr< SelectionStep< reco::PFJet > > > PFJetSteps
 
std::unique_ptr< SelectionStep< reco::Vertex > > PvStep
 
std::vector< edm::ParameterSetsel_
 
std::map< std::string, std::pair< edm::ParameterSet, std::unique_ptr< TopDiLeptonOffline::MonitorEnsemble > > > selection_
 
std::vector< std::string > selectionOrder_
 
edm::ParameterSet setup_
 
std::vector< std::string > triggerPaths_
 trigger paths More...
 
edm::EDGetTokenT< edm::TriggerResultstriggerTable_
 trigger table More...
 
edm::EDGetTokenT< std::vector< reco::Vertex > > vertex_
 primary vertex More...
 
std::unique_ptr< StringCutObjectSelector< reco::Vertex > > vertexSelect_
 string cut selector More...
 

Additional Inherited Members

- Public Types inherited from DQMOneEDAnalyzer<>
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Attributes inherited from DQMOneEDAnalyzer<>
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

define MonitorEnsembple to be used

Module to apply a monitored selection of top like events in the di-leptonic channel.

"DQM/Physics/plugins/TopDiLeptonOfflineDQM.h"

Plugin to apply a monitored selection of top like events with some minimal flexibility in the number and definition of the selection steps. To achieve this flexibility it employes the SelectionStep class. The MonitorEnsemble class is used to provide a well defined set of histograms to be monitored after each selection step. The SelectionStep class provides a flexible and intuitive selection via the StringCutParser. SelectionStep and MonitorEnsemble classes are interleaved. The monitoring starts after a preselection step (which is not monitored in the context of this module) with an instance of the MonitorEnsemble class. The following objects are supported for selection:

These types have to be present as prefix of the selection step paramter label separated from the rest of the label by a ':' (e.g. in the form "jets:step0"). The class expects selection labels of this type. They will be disentangled by the private helper functions objectType and seletionStep as declared below.

Definition at line 296 of file TopDiLeptonOfflineDQM.h.

Constructor & Destructor Documentation

◆ TopDiLeptonOfflineDQM()

TopDiLeptonOfflineDQM::TopDiLeptonOfflineDQM ( const edm::ParameterSet cfg)

default constructor

Definition at line 696 of file TopDiLeptonOfflineDQM.cc.

697  : vertexSelect_(nullptr),
698  beamspotSelect_(nullptr),
699  MuonStep(nullptr),
700  ElectronStep(nullptr),
701  PvStep(nullptr),
702  METStep(nullptr) {
703  JetSteps.clear();
704  CaloJetSteps.clear();
705  PFJetSteps.clear();
706  // configure the preselection
707  edm::ParameterSet presel = cfg.getParameter<edm::ParameterSet>("preselection");
708  if (presel.existsAs<edm::ParameterSet>("trigger")) {
710  // triggerTable_=trigger.getParameter<edm::InputTag>("src");
711  triggerTable_ = consumes<edm::TriggerResults>(trigger.getParameter<edm::InputTag>("src"));
712  triggerPaths_ = trigger.getParameter<std::vector<std::string>>("select");
713  }
714  if (presel.existsAs<edm::ParameterSet>("vertex")) {
716  vertex_ = consumes<std::vector<reco::Vertex>>(vertex.getParameter<edm::InputTag>("src"));
717  vertexSelect_ = std::make_unique<StringCutObjectSelector<reco::Vertex>>(vertex.getParameter<std::string>("select"));
718  }
719  if (presel.existsAs<edm::ParameterSet>("beamspot")) {
721  beamspot_ = consumes<reco::BeamSpot>(beamspot.getParameter<edm::InputTag>("src"));
723  std::make_unique<StringCutObjectSelector<reco::BeamSpot>>(beamspot.getParameter<std::string>("select"));
724  }
725 
726  // conifgure the selection
727  sel_ = cfg.getParameter<std::vector<edm::ParameterSet>>("selection");
728  setup_ = cfg.getParameter<edm::ParameterSet>("setup");
729  for (unsigned int i = 0; i < sel_.size(); ++i) {
730  selectionOrder_.push_back(sel_.at(i).getParameter<std::string>("label"));
732  std::make_pair(sel_.at(i),
733  std::make_unique<TopDiLeptonOffline::MonitorEnsemble>(
735  }
736  for (std::vector<std::string>::const_iterator selIt = selectionOrder_.begin(); selIt != selectionOrder_.end();
737  ++selIt) {
738  std::string key = selectionStep(*selIt), type = objectType(*selIt);
739  if (selection_.find(key) != selection_.end()) {
740  if (type == "muons") {
741  MuonStep = std::make_unique<SelectionStep<reco::PFCandidate>>(selection_[key].first, consumesCollector());
742  }
743  if (type == "elecs") {
744  ElectronStep = std::make_unique<SelectionStep<reco::PFCandidate>>(selection_[key].first, consumesCollector());
745  }
746  if (type == "pvs") {
747  PvStep = std::make_unique<SelectionStep<reco::Vertex>>(selection_[key].first, consumesCollector());
748  }
749  if (type == "jets") {
750  JetSteps.push_back(std::make_unique<SelectionStep<reco::Jet>>(selection_[key].first, consumesCollector()));
751  }
752  if (type == "jets/pf") {
754  }
755  if (type == "jets/calo") {
756  CaloJetSteps.push_back(
758  }
759  if (type == "met") {
760  METStep = std::make_unique<SelectionStep<reco::MET>>(selection_[key].first, consumesCollector());
761  }
762  }
763  }
764 }

References beamspot_, beamspotSelect_, CaloJetSteps, looper::cfg, edm::EDConsumerBase::consumesCollector(), ElectronStep, edm::ParameterSet::existsAs(), dqmdumpme::first, edm::ParameterSet::getParameter(), mps_fire::i, JetSteps, crabWrapper::key, METStep, MuonStep, objectType(), PFJetSteps, PvStep, sel_, selection_, selectionOrder_, selectionStep(), setup_, AlCaHLTBitMon_QueryRunRegistry::string, triggerPaths_, triggerTable_, bphysicsOniaDQM_cfi::vertex, vertex_, and vertexSelect_.

◆ ~TopDiLeptonOfflineDQM()

TopDiLeptonOfflineDQM::~TopDiLeptonOfflineDQM ( )
inlineoverride

default destructor

Definition at line 301 of file TopDiLeptonOfflineDQM.h.

301 {}

Member Function Documentation

◆ analyze()

void TopDiLeptonOfflineDQM::analyze ( const edm::Event event,
const edm::EventSetup setup 
)
overridevirtual

do this during the event loop

Reimplemented from DQMOneEDAnalyzer<>.

Definition at line 771 of file TopDiLeptonOfflineDQM.cc.

771  {
774  if (!event.getByToken(triggerTable_, triggerTable))
775  return;
776  if (!accept(event, *triggerTable, triggerPaths_))
777  return;
778  }
779  if (!vertex_.isUninitialized()) {
781  if (!event.getByToken(vertex_, vertex))
782  return;
783  if (vertex->empty() || !(*vertexSelect_)(vertex->front()))
784  return;
785  }
786  if (!beamspot_.isUninitialized()) {
788  if (!event.getByToken(beamspot_, beamspot))
789  return;
790  if (!(*beamspotSelect_)(*beamspot))
791  return;
792  }
793  unsigned int passed = 0;
794 
795  unsigned int nJetSteps = -1;
796 
797  unsigned int nPFJetSteps = -1;
798 
799  unsigned int nCaloJetSteps = -1;
800  // apply selection steps
801  for (std::vector<std::string>::const_iterator selIt = selectionOrder_.begin(); selIt != selectionOrder_.end();
802  ++selIt) {
803  std::string key = selectionStep(*selIt), type = objectType(*selIt);
804  if (selection_.find(key) != selection_.end()) {
805  if (type == "empty") {
806  selection_[key].second->fill(event, setup);
807  }
808  if (type == "muons" && MuonStep != nullptr) {
809  if (MuonStep->select(event)) {
810  ++passed;
811  selection_[key].second->fill(event, setup);
812  } else
813  break;
814  }
815  if (type == "elecs" && ElectronStep != nullptr) {
816  if (ElectronStep->select(event, "electron")) {
817  ++passed;
818  selection_[key].second->fill(event, setup);
819  } else
820  break;
821  }
822  if (type == "jets" && !JetSteps.empty()) {
823  nJetSteps++;
824  if (JetSteps[nJetSteps] != nullptr) {
825  if (JetSteps[nJetSteps]->select(event, setup)) {
826  ++passed;
827  selection_[key].second->fill(event, setup);
828  } else
829  break;
830  }
831  }
832 
833  if (type == "jets/pf" && !PFJetSteps.empty()) {
834  nPFJetSteps++;
835  if (PFJetSteps[nPFJetSteps] != nullptr) {
836  if (PFJetSteps[nPFJetSteps]->select(event, setup)) {
837  ++passed;
838  selection_[key].second->fill(event, setup);
839  } else
840  break;
841  }
842  }
843 
844  if (type == "jets/calo" && !CaloJetSteps.empty()) {
845  nCaloJetSteps++;
846  if (CaloJetSteps[nCaloJetSteps] != nullptr) {
847  if (CaloJetSteps[nCaloJetSteps]->select(event, setup)) {
848  ++passed;
849  selection_[key].second->fill(event, setup);
850  } else
851  break;
852  }
853  }
854 
855  if (type == "met" && METStep != nullptr) {
856  ++passed;
857  if (METStep->select(event)) {
858  selection_[key].second->fill(event, setup);
859  } else
860  break;
861  }
862  }
863  }
864 }

References accept(), HLTObjectsMonitor_cfi::beamspot, beamspot_, beamspotSelect_, CaloJetSteps, ElectronStep, edm::EDGetTokenT< T >::isUninitialized(), JetSteps, crabWrapper::key, METStep, MuonStep, objectType(), TriggerAnalyzer::passed, PFJetSteps, singleTopDQM_cfi::select, selection_, selectionOrder_, selectionStep(), singleTopDQM_cfi::setup, AlCaHLTBitMon_QueryRunRegistry::string, triggerPaths_, triggerTable_, bphysicsOniaDQM_cfi::vertex, and vertex_.

◆ bookHistograms()

void TopDiLeptonOfflineDQM::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  ,
edm::EventSetup const &   
)
overrideprotectedvirtual

Implements DQMOneEDAnalyzer<>.

Definition at line 766 of file TopDiLeptonOfflineDQM.cc.

766  {
767  for (auto selIt = selection_.begin(); selIt != selection_.end(); ++selIt) {
768  selIt->second.second->book(ibooker);
769  }
770 }

References selection_.

◆ objectType()

std::string TopDiLeptonOfflineDQM::objectType ( const std::string &  label)
inlineprivate

deduce object type from ParameterSet label, the label is expected to be of type 'objectType:selectionStep'

Definition at line 313 of file TopDiLeptonOfflineDQM.h.

313 { return label.substr(0, label.find(':')); };

References label.

Referenced by analyze(), and TopDiLeptonOfflineDQM().

◆ selectionStep()

std::string TopDiLeptonOfflineDQM::selectionStep ( const std::string &  label)
inlineprivate

deduce selection step from ParameterSet label, the label is expected to be of type 'objectType:selectionStep'

Definition at line 316 of file TopDiLeptonOfflineDQM.h.

316 { return label.substr(label.find(':') + 1); };

Referenced by analyze(), and TopDiLeptonOfflineDQM().

Member Data Documentation

◆ beamspot_

edm::EDGetTokenT<reco::BeamSpot> TopDiLeptonOfflineDQM::beamspot_
private

beamspot

Definition at line 328 of file TopDiLeptonOfflineDQM.h.

Referenced by analyze(), and TopDiLeptonOfflineDQM().

◆ beamspotSelect_

std::unique_ptr<StringCutObjectSelector<reco::BeamSpot> > TopDiLeptonOfflineDQM::beamspotSelect_
private

string cut selector

Definition at line 330 of file TopDiLeptonOfflineDQM.h.

Referenced by analyze(), and TopDiLeptonOfflineDQM().

◆ CaloJetSteps

std::vector<std::unique_ptr<SelectionStep<reco::CaloJet> > > TopDiLeptonOfflineDQM::CaloJetSteps
private

Definition at line 346 of file TopDiLeptonOfflineDQM.h.

Referenced by analyze(), and TopDiLeptonOfflineDQM().

◆ ElectronStep

std::unique_ptr<SelectionStep<reco::PFCandidate> > TopDiLeptonOfflineDQM::ElectronStep
private

Definition at line 342 of file TopDiLeptonOfflineDQM.h.

Referenced by analyze(), and TopDiLeptonOfflineDQM().

◆ JetSteps

std::vector<std::unique_ptr<SelectionStep<reco::Jet> > > TopDiLeptonOfflineDQM::JetSteps
private

Definition at line 345 of file TopDiLeptonOfflineDQM.h.

Referenced by analyze(), and TopDiLeptonOfflineDQM().

◆ METStep

std::unique_ptr<SelectionStep<reco::MET> > TopDiLeptonOfflineDQM::METStep
private

Definition at line 344 of file TopDiLeptonOfflineDQM.h.

Referenced by analyze(), and TopDiLeptonOfflineDQM().

◆ MuonStep

std::unique_ptr<SelectionStep<reco::PFCandidate> > TopDiLeptonOfflineDQM::MuonStep
private

Definition at line 341 of file TopDiLeptonOfflineDQM.h.

Referenced by analyze(), and TopDiLeptonOfflineDQM().

◆ PFJetSteps

std::vector<std::unique_ptr<SelectionStep<reco::PFJet> > > TopDiLeptonOfflineDQM::PFJetSteps
private

Definition at line 347 of file TopDiLeptonOfflineDQM.h.

Referenced by analyze(), and TopDiLeptonOfflineDQM().

◆ PvStep

std::unique_ptr<SelectionStep<reco::Vertex> > TopDiLeptonOfflineDQM::PvStep
private

Definition at line 343 of file TopDiLeptonOfflineDQM.h.

Referenced by TopDiLeptonOfflineDQM().

◆ sel_

std::vector<edm::ParameterSet> TopDiLeptonOfflineDQM::sel_
private

Definition at line 349 of file TopDiLeptonOfflineDQM.h.

Referenced by TopDiLeptonOfflineDQM().

◆ selection_

std::map<std::string, std::pair<edm::ParameterSet, std::unique_ptr<TopDiLeptonOffline::MonitorEnsemble> > > TopDiLeptonOfflineDQM::selection_
private

this is the heart component of the plugin; std::string keeps a label the selection step for later identification, edm::ParameterSet keeps the configuration of the selection for the SelectionStep class, MonitoringEnsemble keeps an instance of the MonitorEnsemble class to be filled after each selection step

Definition at line 340 of file TopDiLeptonOfflineDQM.h.

Referenced by analyze(), bookHistograms(), and TopDiLeptonOfflineDQM().

◆ selectionOrder_

std::vector<std::string> TopDiLeptonOfflineDQM::selectionOrder_
private

needed to guarantee the selection order as defined by the order of ParameterSets in the selection vector as defined in the config

Definition at line 334 of file TopDiLeptonOfflineDQM.h.

Referenced by analyze(), and TopDiLeptonOfflineDQM().

◆ setup_

edm::ParameterSet TopDiLeptonOfflineDQM::setup_
private

◆ triggerPaths_

std::vector<std::string> TopDiLeptonOfflineDQM::triggerPaths_
private

trigger paths

Definition at line 322 of file TopDiLeptonOfflineDQM.h.

Referenced by analyze(), and TopDiLeptonOfflineDQM().

◆ triggerTable_

edm::EDGetTokenT<edm::TriggerResults> TopDiLeptonOfflineDQM::triggerTable_
private

trigger table

Definition at line 316 of file TopDiLeptonOfflineDQM.h.

Referenced by analyze(), and TopDiLeptonOfflineDQM().

◆ vertex_

edm::EDGetTokenT<std::vector<reco::Vertex> > TopDiLeptonOfflineDQM::vertex_
private

primary vertex

Definition at line 324 of file TopDiLeptonOfflineDQM.h.

Referenced by analyze(), and TopDiLeptonOfflineDQM().

◆ vertexSelect_

std::unique_ptr<StringCutObjectSelector<reco::Vertex> > TopDiLeptonOfflineDQM::vertexSelect_
private

string cut selector

Definition at line 326 of file TopDiLeptonOfflineDQM.h.

Referenced by TopDiLeptonOfflineDQM().

TopDiLeptonOfflineDQM::sel_
std::vector< edm::ParameterSet > sel_
Definition: TopDiLeptonOfflineDQM.h:349
TopDiLeptonOfflineDQM::vertexSelect_
std::unique_ptr< StringCutObjectSelector< reco::Vertex > > vertexSelect_
string cut selector
Definition: TopDiLeptonOfflineDQM.h:326
mps_fire.i
i
Definition: mps_fire.py:428
singleTopDQM_cfi.select
select
Definition: singleTopDQM_cfi.py:50
TopDiLeptonOfflineDQM::selectionOrder_
std::vector< std::string > selectionOrder_
Definition: TopDiLeptonOfflineDQM.h:334
TopDiLeptonOfflineDQM::objectType
std::string objectType(const std::string &label)
Definition: TopDiLeptonOfflineDQM.h:313
edm::EDGetTokenT::isUninitialized
constexpr bool isUninitialized() const noexcept
Definition: EDGetToken.h:99
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition: EDConsumerBase.cc:46
HLTObjectsMonitor_cfi.beamspot
beamspot
Definition: HLTObjectsMonitor_cfi.py:11
edm::ParameterSet::existsAs
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:171
edm::Handle< edm::TriggerResults >
TopDiLeptonOfflineDQM::JetSteps
std::vector< std::unique_ptr< SelectionStep< reco::Jet > > > JetSteps
Definition: TopDiLeptonOfflineDQM.h:345
dqmdumpme.first
first
Definition: dqmdumpme.py:55
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
TopDiLeptonOfflineDQM::PvStep
std::unique_ptr< SelectionStep< reco::Vertex > > PvStep
Definition: TopDiLeptonOfflineDQM.h:343
accept
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:30
beamspot
Definition: BeamSpotWrite2Txt.h:8
TopDiLeptonOfflineDQM::beamspotSelect_
std::unique_ptr< StringCutObjectSelector< reco::BeamSpot > > beamspotSelect_
string cut selector
Definition: TopDiLeptonOfflineDQM.h:330
TopDiLeptonOfflineDQM::PFJetSteps
std::vector< std::unique_ptr< SelectionStep< reco::PFJet > > > PFJetSteps
Definition: TopDiLeptonOfflineDQM.h:347
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TopDiLeptonOfflineDQM::ElectronStep
std::unique_ptr< SelectionStep< reco::PFCandidate > > ElectronStep
Definition: TopDiLeptonOfflineDQM.h:342
TopDiLeptonOfflineDQM::vertex_
edm::EDGetTokenT< std::vector< reco::Vertex > > vertex_
primary vertex
Definition: TopDiLeptonOfflineDQM.h:324
TopDiLeptonOfflineDQM::selectionStep
std::string selectionStep(const std::string &label)
Definition: TopDiLeptonOfflineDQM.h:316
bphysicsOniaDQM_cfi.vertex
vertex
Definition: bphysicsOniaDQM_cfi.py:7
edm::ParameterSet
Definition: ParameterSet.h:47
TopDiLeptonOfflineDQM::METStep
std::unique_ptr< SelectionStep< reco::MET > > METStep
Definition: TopDiLeptonOfflineDQM.h:344
TopDiLeptonOfflineDQM::beamspot_
edm::EDGetTokenT< reco::BeamSpot > beamspot_
beamspot
Definition: TopDiLeptonOfflineDQM.h:328
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
TopDiLeptonOfflineDQM::setup_
edm::ParameterSet setup_
Definition: TopDiLeptonOfflineDQM.h:350
looper.cfg
cfg
Definition: looper.py:297
TopDiLeptonOfflineDQM::MuonStep
std::unique_ptr< SelectionStep< reco::PFCandidate > > MuonStep
Definition: TopDiLeptonOfflineDQM.h:341
TopDiLeptonOfflineDQM::CaloJetSteps
std::vector< std::unique_ptr< SelectionStep< reco::CaloJet > > > CaloJetSteps
Definition: TopDiLeptonOfflineDQM.h:346
TriggerAnalyzer.passed
passed
Definition: TriggerAnalyzer.py:62
TopDiLeptonOfflineDQM::triggerPaths_
std::vector< std::string > triggerPaths_
trigger paths
Definition: TopDiLeptonOfflineDQM.h:322
SelectionStep
Templated helper class to allow a selection on a certain object collection.
Definition: TopDQMHelpers.h:237
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
TopDiLeptonOfflineDQM::triggerTable_
edm::EDGetTokenT< edm::TriggerResults > triggerTable_
trigger table
Definition: TopDiLeptonOfflineDQM.h:316
trigger
Definition: HLTPrescaleTableCond.h:8
TopDiLeptonOfflineDQM::selection_
std::map< std::string, std::pair< edm::ParameterSet, std::unique_ptr< TopDiLeptonOffline::MonitorEnsemble > > > selection_
Definition: TopDiLeptonOfflineDQM.h:340
event
Definition: event.py:1
crabWrapper.key
key
Definition: crabWrapper.py:19
edm::InputTag
Definition: InputTag.h:15
label
const char * label
Definition: PFTauDecayModeTools.cc:11