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 11 of file TrigObjTnPHistColl.cc.

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

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

Member Function Documentation

◆ bookHists()

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

Definition at line 42 of file TrigObjTnPHistColl.cc.

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

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 49 of file TrigObjTnPHistColl.cc.

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

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 27 of file TrigObjTnPHistColl.cc.

27  {
29  desc.addVPSet(
30  "tagCuts", VarRangeCut<trigger::TriggerObject>::makePSetDescription(), std::vector<edm::ParameterSet>());
31  desc.addVPSet(
32  "probeCuts", VarRangeCut<trigger::TriggerObject>::makePSetDescription(), std::vector<edm::ParameterSet>());
34  desc.add<std::string>("collName", "stdTag");
35  desc.add<std::string>("folderName", "HLT/EGM/TrigObjTnP");
37  desc.add<std::vector<std::string>>("probeFilters", std::vector<std::string>());
39  return desc;
40 }

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:84
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:139
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:91
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:147
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:315
TrigObjTnPHistColl::tagFilters_
FilterSelector tagFilters_
Definition: TrigObjTnPHistColl.h:241