CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
HLTDQMHist1D< ObjType, ValType > Class Template Reference

#include <HLTDQMHist.h>

Inheritance diagram for HLTDQMHist1D< ObjType, ValType >:
HLTDQMHist< ObjType >

Public Types

typedef dqm::legacy::MonitorElement MonitorElement
 

Public Member Functions

void fill (const ObjType &obj, const edm::Event &event, const edm::EventSetup &setup, const VarRangeCutColl< ObjType > &globalRangeCuts) override
 
 HLTDQMHist1D (MonitorElement *me_ptr, std::string varName, std::function< ValType(const ObjType &)> func, VarRangeCutColl< ObjType > rangeCuts)
 
- Public Member Functions inherited from HLTDQMHist< ObjType >
 HLTDQMHist ()=default
 
virtual ~HLTDQMHist ()=default
 

Private Attributes

VarRangeCutColl< ObjType > localRangeCuts_
 
MonitorElement *const me_ptr_
 
std::function< ValType(const ObjType &)> var_
 
std::string varName_
 

Detailed Description

template<typename ObjType, typename ValType>
class HLTDQMHist1D< ObjType, ValType >

Definition at line 49 of file HLTDQMHist.h.

Member Typedef Documentation

◆ MonitorElement

template<typename ObjType , typename ValType >
typedef dqm::legacy::MonitorElement HLTDQMHist1D< ObjType, ValType >::MonitorElement

Definition at line 51 of file HLTDQMHist.h.

Constructor & Destructor Documentation

◆ HLTDQMHist1D()

template<typename ObjType , typename ValType >
HLTDQMHist1D< ObjType, ValType >::HLTDQMHist1D ( MonitorElement me_ptr,
std::string  varName,
std::function< ValType(const ObjType &)>  func,
VarRangeCutColl< ObjType >  rangeCuts 
)
inline

Definition at line 53 of file HLTDQMHist.h.

std::function< ValType(const ObjType &)> var_
Definition: HLTDQMHist.h:73
MonitorElement *const me_ptr_
Definition: HLTDQMHist.h:76
VarRangeCutColl< ObjType > localRangeCuts_
Definition: HLTDQMHist.h:75
std::string varName_
Definition: HLTDQMHist.h:74
def move(src, dest)
Definition: eostools.py:511

Member Function Documentation

◆ fill()

template<typename ObjType , typename ValType >
void HLTDQMHist1D< ObjType, ValType >::fill ( const ObjType &  obj,
const edm::Event event,
const edm::EventSetup setup,
const VarRangeCutColl< ObjType > &  globalRangeCuts 
)
inlineoverridevirtual

Implements HLTDQMHist< ObjType >.

Definition at line 59 of file HLTDQMHist.h.

References dqm::impl::MonitorElement::Fill(), HLTDQMHist1D< ObjType, ValType >::localRangeCuts_, HLTDQMHist1D< ObjType, ValType >::me_ptr_, getGTfromDQMFile::obj, HLTDQMHist1D< ObjType, ValType >::var_, and HLTDQMHist1D< ObjType, ValType >::varName_.

62  {
63  if (me_ptr_ == nullptr)
64  return;
65  //local range cuts are specific to a MonitorElement so dont ignore variables
66  //like global ones (all local cuts should be appropriate to the MonitorElement in question
67  if (globalRangeCuts(obj, varName_) && localRangeCuts_(obj)) {
68  me_ptr_->Fill(var_(obj));
69  }
70  }
void Fill(long long x)
std::function< ValType(const ObjType &)> var_
Definition: HLTDQMHist.h:73
MonitorElement *const me_ptr_
Definition: HLTDQMHist.h:76
VarRangeCutColl< ObjType > localRangeCuts_
Definition: HLTDQMHist.h:75
std::string varName_
Definition: HLTDQMHist.h:74

Member Data Documentation

◆ localRangeCuts_

template<typename ObjType , typename ValType >
VarRangeCutColl<ObjType> HLTDQMHist1D< ObjType, ValType >::localRangeCuts_
private

Definition at line 75 of file HLTDQMHist.h.

Referenced by HLTDQMHist1D< ObjType, ValType >::fill().

◆ me_ptr_

template<typename ObjType , typename ValType >
MonitorElement* const HLTDQMHist1D< ObjType, ValType >::me_ptr_
private

Definition at line 76 of file HLTDQMHist.h.

Referenced by HLTDQMHist1D< ObjType, ValType >::fill().

◆ var_

template<typename ObjType , typename ValType >
std::function<ValType(const ObjType&)> HLTDQMHist1D< ObjType, ValType >::var_
private

Definition at line 73 of file HLTDQMHist.h.

Referenced by HLTDQMHist1D< ObjType, ValType >::fill().

◆ varName_

template<typename ObjType , typename ValType >
std::string HLTDQMHist1D< ObjType, ValType >::varName_
private

Definition at line 74 of file HLTDQMHist.h.

Referenced by HLTDQMHist1D< ObjType, ValType >::fill().