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, const ConcurrentMonitorElement &hist) const
 

Static Public Member Functions

static edm::ParameterSetDescription makePSetDescription ()
 

Private Attributes

VarRangeCutColl< trigger::TriggerObjectlocalCuts_
 
TrigObjVarF var_
 

Detailed Description

Definition at line 151 of file TrigObjTnPHistColl.h.

Constructor & Destructor Documentation

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

Definition at line 284 of file TrigObjTnPHistColl.cc.

284  :
285  localCuts_(config.getParameter<std::vector<edm::ParameterSet> >("localCuts")),
286  var_(config.getParameter<std::string>("var"))
287 {
288 
289 }
T getParameter(std::string const &) const
VarRangeCutColl< trigger::TriggerObject > localCuts_

Member Function Documentation

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

Definition at line 291 of file TrigObjTnPHistColl.cc.

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

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

292 {
295  desc.add<std::string>("var","pt");
296  return desc;
297 }
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,
const ConcurrentMonitorElement hist 
) const

Definition at line 299 of file TrigObjTnPHistColl.cc.

References ConcurrentMonitorElement::fill(), localCuts_, and var_.

301 {
302  if(localCuts_(probe)) hist.fill(var_(probe),mass);
303 }
void fill(Args &&...args) const
VarRangeCutColl< trigger::TriggerObject > localCuts_

Member Data Documentation

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

Definition at line 157 of file TrigObjTnPHistColl.h.

Referenced by operator()().

TrigObjVarF TrigObjTnPHistColl::HistFiller::var_
private

Definition at line 158 of file TrigObjTnPHistColl.h.

Referenced by operator()().