CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
HLTDQMHist1D< ObjType, ValType > Class Template Reference

#include <HLTDQMHist.h>

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

Public Member Functions

void fill (const ObjType &obj, const edm::Event &event, const edm::EventSetup &setup, const VarRangeCutColl< ObjType > &globalRangeCuts) override
 
 HLTDQMHist1D (TH1 *hist, 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

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

Detailed Description

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

Definition at line 52 of file HLTDQMHist.h.

Constructor & Destructor Documentation

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

Definition at line 54 of file HLTDQMHist.h.

58  : var_(std::move(func)), varName_(std::move(varName)), localRangeCuts_(std::move(rangeCuts)), hist_(hist) {}
TH1 * hist_
Definition: HLTDQMHist.h:75
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t Func __host__ __device__ V int Func func
std::function< ValType(const ObjType &)> var_
Definition: HLTDQMHist.h:72
VarRangeCutColl< ObjType > localRangeCuts_
Definition: HLTDQMHist.h:74
def move
Definition: eostools.py:511
std::string varName_
Definition: HLTDQMHist.h:73
__shared__ Hist hist

Member Function Documentation

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 60 of file HLTDQMHist.h.

References HLTDQMHist1D< ObjType, ValType >::hist_, HLTDQMHist1D< ObjType, ValType >::localRangeCuts_, HLTDQMHist1D< ObjType, ValType >::var_, and HLTDQMHist1D< ObjType, ValType >::varName_.

63  {
64  //local range cuts are specific to a histogram so dont ignore variables
65  //like global ones (all local cuts should be approprate to the histogram in question
66  if (globalRangeCuts(obj, varName_) && localRangeCuts_(obj)) {
67  hist_->Fill(var_(obj));
68  }
69  }
TH1 * hist_
Definition: HLTDQMHist.h:75
std::function< ValType(const ObjType &)> var_
Definition: HLTDQMHist.h:72
VarRangeCutColl< ObjType > localRangeCuts_
Definition: HLTDQMHist.h:74
std::string varName_
Definition: HLTDQMHist.h:73

Member Data Documentation

template<typename ObjType , typename ValType >
TH1* HLTDQMHist1D< ObjType, ValType >::hist_
private

Definition at line 75 of file HLTDQMHist.h.

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

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

Definition at line 74 of file HLTDQMHist.h.

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

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

Definition at line 72 of file HLTDQMHist.h.

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

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

Definition at line 73 of file HLTDQMHist.h.

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