CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DetSetCounterSelector Struct Reference

#include <DetSetCounterSelector.h>

Public Member Functions

 DetSetCounterSelector (unsigned int minDetSetCounts, unsigned int maxDetSetCounts)
 
template<typename T >
bool operator() (const T &t) const
 

Private Attributes

unsigned int maxDetSetCounts_
 
unsigned int minDetSetCounts_
 

Detailed Description

Definition at line 12 of file DetSetCounterSelector.h.

Constructor & Destructor Documentation

◆ DetSetCounterSelector()

DetSetCounterSelector::DetSetCounterSelector ( unsigned int  minDetSetCounts,
unsigned int  maxDetSetCounts 
)
inline

Definition at line 13 of file DetSetCounterSelector.h.

14  : minDetSetCounts_(minDetSetCounts), maxDetSetCounts_(maxDetSetCounts) {}

Member Function Documentation

◆ operator()()

template<typename T >
bool DetSetCounterSelector::operator() ( const T t) const
inline

Definition at line 16 of file DetSetCounterSelector.h.

References maxDetSetCounts_, minDetSetCounts_, Skims_PA_cff::name, AlCaHLTBitMon_QueryRunRegistry::string, submitPVValidationJobs::t, and edm::typeDemangle().

16  {
17 #ifdef EDM_ML_DEBUG
18  std::string demangledName(edm::typeDemangle(typeid(T).name()));
19  edm::LogVerbatim("DetSetCounterSelector") << "counting counts in: " << demangledName << std::endl;
20 #endif
21 
22  // count the number of objects in the DetSet
23  unsigned int totalDetSetCounts = t.size();
24  return (totalDetSetCounts >= minDetSetCounts_ && totalDetSetCounts <= maxDetSetCounts_);
25  }
Log< level::Info, true > LogVerbatim
std::string typeDemangle(char const *mangledName)
long double T

Member Data Documentation

◆ maxDetSetCounts_

unsigned int DetSetCounterSelector::maxDetSetCounts_
private

Definition at line 29 of file DetSetCounterSelector.h.

Referenced by operator()().

◆ minDetSetCounts_

unsigned int DetSetCounterSelector::minDetSetCounts_
private

Definition at line 28 of file DetSetCounterSelector.h.

Referenced by operator()().