CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
TrigObjTnPHistColl::HistFiller Class Reference

#include <TrigObjTnPHistColl.h>

Public Member Functions

 HistFiller (const edm::ParameterSet &config)
 
void operator() (const trigger::TriggerObject &probe, float mass, dqm::reco::MonitorElement *hist) const
 

Static Public Member Functions

static edm::ParameterSetDescription makePSetDescription ()
 

Private Attributes

VarRangeCutColl< trigger::TriggerObjectlocalCuts_
 
TrigObjVarF var_
 

Detailed Description

Definition at line 158 of file TrigObjTnPHistColl.h.

Constructor & Destructor Documentation

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

Definition at line 289 of file TrigObjTnPHistColl.cc.

290  : localCuts_(config.getParameter<std::vector<edm::ParameterSet>>("localCuts")),
291  var_(config.getParameter<std::string>("var")) {}
T getParameter(std::string const &) const
VarRangeCutColl< trigger::TriggerObject > localCuts_

Member Function Documentation

edm::ParameterSetDescription TrigObjTnPHistColl::HistFiller::makePSetDescription ( )
static

Definition at line 293 of file TrigObjTnPHistColl.cc.

References edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addVPSet(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by TrigObjTnPHistColl::HistDefs::Data::makePSetDescription().

293  {
296  desc.add<std::string>("var", "pt");
297  return desc;
298 }
ParameterDescriptionBase * addVPSet(U const &iLabel, ParameterSetDescription const &validator, std::vector< ParameterSet > const &defaults)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void TrigObjTnPHistColl::HistFiller::operator() ( const trigger::TriggerObject probe,
float  mass,
dqm::reco::MonitorElement hist 
) const

Definition at line 300 of file TrigObjTnPHistColl.cc.

References dqm::impl::MonitorElement::Fill(), localCuts_, and var_.

302  {
303  if (localCuts_(probe))
304  hist->Fill(var_(probe), mass);
305 }
void Fill(long long x)
VarRangeCutColl< trigger::TriggerObject > localCuts_

Member Data Documentation

VarRangeCutColl<trigger::TriggerObject> TrigObjTnPHistColl::HistFiller::localCuts_
private

Definition at line 165 of file TrigObjTnPHistColl.h.

Referenced by operator()().

TrigObjVarF TrigObjTnPHistColl::HistFiller::var_
private

Definition at line 166 of file TrigObjTnPHistColl.h.

Referenced by operator()().