CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes
TrigObjTnPHistColl Class Reference

#include <TrigObjTnPHistColl.h>

Classes

class  FilterSelector
 
class  HistColl
 
class  HistDefs
 
class  HistFiller
 
class  PathSelector
 
class  ProbeData
 
class  TrigObjVarF
 

Public Types

typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 

Public Member Functions

void bookHists (DQMStore::IBooker &iBooker)
 
void fill (const trigger::TriggerEvent &trigEvt, const edm::TriggerResults &trigResults, const edm::TriggerNames &trigNames) const
 
void init (const HLTConfigProvider &hltConfig)
 
 TrigObjTnPHistColl (const edm::ParameterSet &config)
 

Static Public Member Functions

static edm::ParameterSetDescription makePSetDescription ()
 

Static Private Member Functions

static const trigger::Keys getKeys (const trigger::TriggerEvent &trigEvt, const std::string &filterName)
 

Private Attributes

std::string collName_
 
PathSelector evtTrigSel_
 
std::string folderName_
 
HistDefs histDefs_
 
VarRangeCutColl< trigger::TriggerObjectprobeCuts_
 
std::vector< ProbeDataprobeHists_
 
VarRangeCutColl< trigger::TriggerObjecttagCuts_
 
FilterSelector tagFilters_
 

Detailed Description

Definition at line 86 of file TrigObjTnPHistColl.h.

Member Typedef Documentation

◆ DQMStore

Definition at line 88 of file TrigObjTnPHistColl.h.

◆ MonitorElement

Definition at line 89 of file TrigObjTnPHistColl.h.

Constructor & Destructor Documentation

◆ TrigObjTnPHistColl()

TrigObjTnPHistColl::TrigObjTnPHistColl ( const edm::ParameterSet config)

Definition at line 12 of file TrigObjTnPHistColl.cc.

13  : tagCuts_(config.getParameter<std::vector<edm::ParameterSet>>("tagCuts")),
14  probeCuts_(config.getParameter<std::vector<edm::ParameterSet>>("probeCuts")),
15  tagFilters_(config.getParameter<edm::ParameterSet>("tagFilters")),
16  collName_(config.getParameter<std::string>("collName")),
17  folderName_(config.getParameter<std::string>("folderName")),
18  histDefs_(config.getParameter<edm::ParameterSet>("histDefs")),
19  evtTrigSel_(config.getParameter<edm::ParameterSet>("evtTrigSel"))
20 
21 {
22  auto probeFilters = config.getParameter<std::vector<std::string>>("probeFilters");
23  for (auto& probeFilter : probeFilters) {
24  probeHists_.emplace_back(ProbeData(std::move(probeFilter)));
25  }
26 }

References eostools::move(), trigObjTnPSource_cfi::probeFilters, and probeHists_.

Member Function Documentation

◆ bookHists()

void TrigObjTnPHistColl::bookHists ( DQMStore::IBooker iBooker)

Definition at line 43 of file TrigObjTnPHistColl.cc.

43  {
45  for (auto& probe : probeHists_) {
46  probe.bookHists(collName_, iBooker, histDefs_);
47  }
48 }

References collName_, folderName_, histDefs_, probeHists_, and dqm::implementation::NavigatorBase::setCurrentFolder().

◆ fill()

void TrigObjTnPHistColl::fill ( const trigger::TriggerEvent trigEvt,
const edm::TriggerResults trigResults,
const edm::TriggerNames trigNames 
) const

Definition at line 50 of file TrigObjTnPHistColl.cc.

52  {
53  if (evtTrigSel_(trigResults, trigNames) == false)
54  return;
55 
56  auto tagTrigKeys = tagFilters_.getPassingKeys(trigEvt);
57  for (auto& tagKey : tagTrigKeys) {
58  const trigger::TriggerObject& tagObj = trigEvt.getObjects()[tagKey];
59  if (tagCuts_(tagObj)) {
60  for (auto& probeColl : probeHists_)
61  probeColl.fill(tagKey, trigEvt, probeCuts_);
62  }
63  }
64 }

References evtTrigSel_, trigger::TriggerEvent::getObjects(), TrigObjTnPHistColl::FilterSelector::getPassingKeys(), HLTEGTnPMonitor_cfi::probeColl, probeCuts_, probeHists_, tagCuts_, tagFilters_, and trigNames.

◆ getKeys()

const trigger::Keys TrigObjTnPHistColl::getKeys ( const trigger::TriggerEvent trigEvt,
const std::string &  filterName 
)
staticprivate

◆ init()

void TrigObjTnPHistColl::init ( const HLTConfigProvider hltConfig)
inline

◆ makePSetDescription()

edm::ParameterSetDescription TrigObjTnPHistColl::makePSetDescription ( )
static

Definition at line 28 of file TrigObjTnPHistColl.cc.

28  {
30  desc.addVPSet(
31  "tagCuts", VarRangeCut<trigger::TriggerObject>::makePSetDescription(), std::vector<edm::ParameterSet>());
32  desc.addVPSet(
33  "probeCuts", VarRangeCut<trigger::TriggerObject>::makePSetDescription(), std::vector<edm::ParameterSet>());
35  desc.add<std::string>("collName", "stdTag");
36  desc.add<std::string>("folderName", "HLT/EGM/TrigObjTnP");
38  desc.add<std::vector<std::string>>("probeFilters", std::vector<std::string>());
40  return desc;
41 }

References submitPVResolutionJobs::desc, TrigObjTnPHistColl::FilterSelector::makePSetDescription(), TrigObjTnPHistColl::PathSelector::makePSetDescription(), TrigObjTnPHistColl::HistDefs::makePSetDescription(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by TrigObjTnPSource::fillDescriptions().

Member Data Documentation

◆ collName_

std::string TrigObjTnPHistColl::collName_
private

Definition at line 242 of file TrigObjTnPHistColl.h.

Referenced by bookHists().

◆ evtTrigSel_

PathSelector TrigObjTnPHistColl::evtTrigSel_
private

Definition at line 246 of file TrigObjTnPHistColl.h.

Referenced by fill(), and init().

◆ folderName_

std::string TrigObjTnPHistColl::folderName_
private

Definition at line 243 of file TrigObjTnPHistColl.h.

Referenced by bookHists().

◆ histDefs_

HistDefs TrigObjTnPHistColl::histDefs_
private

Definition at line 244 of file TrigObjTnPHistColl.h.

Referenced by bookHists().

◆ probeCuts_

VarRangeCutColl<trigger::TriggerObject> TrigObjTnPHistColl::probeCuts_
private

Definition at line 240 of file TrigObjTnPHistColl.h.

Referenced by fill().

◆ probeHists_

std::vector<ProbeData> TrigObjTnPHistColl::probeHists_
private

Definition at line 245 of file TrigObjTnPHistColl.h.

Referenced by bookHists(), fill(), and TrigObjTnPHistColl().

◆ tagCuts_

VarRangeCutColl<trigger::TriggerObject> TrigObjTnPHistColl::tagCuts_
private

Definition at line 240 of file TrigObjTnPHistColl.h.

Referenced by fill().

◆ tagFilters_

FilterSelector TrigObjTnPHistColl::tagFilters_
private

Definition at line 241 of file TrigObjTnPHistColl.h.

Referenced by fill().

TrigObjTnPHistColl::probeHists_
std::vector< ProbeData > probeHists_
Definition: TrigObjTnPHistColl.h:245
trigger::TriggerEvent::sizeFilters
trigger::size_type sizeFilters() const
Definition: TriggerEvent.h:146
TrigObjTnPHistColl::FilterSelector::makePSetDescription
static edm::ParameterSetDescription makePSetDescription()
Definition: TrigObjTnPHistColl.cc:85
trigger::TriggerEvent::filterKeys
const Keys & filterKeys(trigger::size_type index) const
Definition: TriggerEvent.h:118
trigNames
static const char *const trigNames[]
Definition: EcalDumpRaw.cc:57
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
TrigObjTnPHistColl::PathSelector::makePSetDescription
static edm::ParameterSetDescription makePSetDescription()
Definition: TrigObjTnPHistColl.cc:140
TrigObjTnPHistColl::tagCuts_
VarRangeCutColl< trigger::TriggerObject > tagCuts_
Definition: TrigObjTnPHistColl.h:240
config
Definition: config.py:1
trigger::size_type
uint16_t size_type
Definition: TriggerTypeDefs.h:18
TrigObjTnPHistColl::probeCuts_
VarRangeCutColl< trigger::TriggerObject > probeCuts_
Definition: TrigObjTnPHistColl.h:240
trigger::TriggerObject
Single trigger physics object (e.g., an isolated muon)
Definition: TriggerObject.h:21
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TrigObjTnPHistColl::FilterSelector::getPassingKeys
const trigger::Keys getPassingKeys(const trigger::TriggerEvent &trigEvt) const
Definition: TrigObjTnPHistColl.cc:92
HLTEGTnPMonitor_cfi.probeColl
probeColl
Definition: HLTEGTnPMonitor_cfi.py:62
TrigObjTnPHistColl::evtTrigSel_
PathSelector evtTrigSel_
Definition: TrigObjTnPHistColl.h:246
TrigObjTnPHistColl::collName_
std::string collName_
Definition: TrigObjTnPHistColl.h:242
edm::ParameterSet
Definition: ParameterSet.h:47
trigger::TriggerEvent::filterIndex
trigger::size_type filterIndex(const edm::InputTag &filterTag) const
find index of filter in data-member vector from filter tag
Definition: TriggerEvent.h:132
trigger::Keys
std::vector< size_type > Keys
Definition: TriggerTypeDefs.h:19
trigger::TriggerEvent::getObjects
const TriggerObjectCollection & getObjects() const
Definition: TriggerEvent.h:101
TrigObjTnPHistColl::PathSelector::init
void init(const HLTConfigProvider &hltConfig)
Definition: TrigObjTnPHistColl.cc:148
pdwgDoubleElectron_cfi.filterName
filterName
Definition: pdwgDoubleElectron_cfi.py:7
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
eostools.move
def move(src, dest)
Definition: eostools.py:511
trigObjTnPSource_cfi.probeFilters
probeFilters
Definition: trigObjTnPSource_cfi.py:77
TrigObjTnPHistColl::histDefs_
HistDefs histDefs_
Definition: TrigObjTnPHistColl.h:244
trigger::TriggerEvent::usedProcessName
const std::string & usedProcessName() const
getters
Definition: TriggerEvent.h:98
HltComparatorCreateWorkflow.hltConfig
hltConfig
Definition: HltComparatorCreateWorkflow.py:161
VarRangeCut
Definition: VarRangeCut.h:29
TrigObjTnPHistColl::folderName_
std::string folderName_
Definition: TrigObjTnPHistColl.h:243
edm::InputTag
Definition: InputTag.h:15
TrigObjTnPHistColl::HistDefs::makePSetDescription
static edm::ParameterSetDescription makePSetDescription()
Definition: TrigObjTnPHistColl.cc:316
TrigObjTnPHistColl::tagFilters_
FilterSelector tagFilters_
Definition: TrigObjTnPHistColl.h:241