CMS 3D CMS Logo

EleHLTPathMon Class Reference

#include <DQMOffline/Trigger/interface/EleHLTPathMon.h>

List of all members.

Public Member Functions

void addFilter (const std::string &filterName)
void addFilters (const std::vector< std::string > &names)
 EleHLTPathMon (std::string pathName="")
void fill (const EgHLTOffData &evtData, float weight)
std::vector< std::string > getFilterNames () const
bool operator< (const EleHLTPathMon &rhs) const
 ~EleHLTPathMon ()

Private Attributes

std::vector< EleHLTFilterMon * > filters_
std::string pathName_


Detailed Description

Definition at line 24 of file EleHLTPathMon.h.


Constructor & Destructor Documentation

EleHLTPathMon::EleHLTPathMon ( std::string  pathName = ""  )  [inline, explicit]

Definition at line 32 of file EleHLTPathMon.h.

00032 :pathName_(pathName){}

EleHLTPathMon::~EleHLTPathMon (  ) 

Definition at line 5 of file EleHLTPathMon.cc.

References filters_, and i.

00006 {
00007   for(size_t i=0;i<filters_.size();i++) delete filters_[i];
00008 }


Member Function Documentation

void EleHLTPathMon::addFilter ( const std::string &  filterName  ) 

Definition at line 12 of file EleHLTPathMon.cc.

References filters_, TrigCodes::getCode(), and python::multivaluedict::sort().

Referenced by addFilters().

00013 {
00014   filters_.push_back(new EleHLTFilterMon(filterName,TrigCodes::getCode(filterName.c_str())));
00015   std::sort(filters_.begin(),filters_.end(),EleHLTFilterMon::ptrLess<EleHLTFilterMon>()); 
00016 }

void EleHLTPathMon::addFilters ( const std::vector< std::string > &  names  ) 

Definition at line 19 of file EleHLTPathMon.cc.

References addFilter(), i, and pathName_.

Referenced by EgammaHLTOffline::addTrigPath().

00020 {
00021   for(size_t i=0;i<names.size();i++) addFilter(pathName_+names[i]);
00022 
00023 }

void EleHLTPathMon::fill ( const EgHLTOffData evtData,
float  weight 
)

Definition at line 38 of file EleHLTPathMon.cc.

References filters_.

00039 {
00040   for(size_t filterNr=0;filterNr<filters_.size();filterNr++){ 
00041     // edm::LogInfo("EleHLTPathMon") << "fill filter "<<filterNr<<" / "<<filters_.size();
00042     filters_[filterNr]->fill(evtData,weight);
00043     //edm::LogInfo("EleHLTPathMon") << "filled filter "<<filterNr<<" / "<<filters_.size();
00044   }
00045 }

std::vector< std::string > EleHLTPathMon::getFilterNames (  )  const

Definition at line 47 of file EleHLTPathMon.cc.

References filters_, and names.

00048 {
00049   std::vector<std::string> names;
00050   for(size_t filterNr=0;filterNr<filters_.size();filterNr++){
00051     names.push_back(filters_[filterNr]->filterName());
00052   }
00053   return names;
00054 }

bool EleHLTPathMon::operator< ( const EleHLTPathMon rhs  )  const [inline]

Definition at line 45 of file EleHLTPathMon.h.

References pathName_.

00045 {return pathName_<rhs.pathName_;}


Member Data Documentation

std::vector<EleHLTFilterMon*> EleHLTPathMon::filters_ [private]

Definition at line 27 of file EleHLTPathMon.h.

Referenced by addFilter(), fill(), getFilterNames(), and ~EleHLTPathMon().

std::string EleHLTPathMon::pathName_ [private]

Definition at line 26 of file EleHLTPathMon.h.

Referenced by addFilters(), and operator<().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:20:22 2009 for CMSSW by  doxygen 1.5.4