#include <DQMOffline/Trigger/interface/EleHLTPathMon.h>
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_ |
Definition at line 24 of file EleHLTPathMon.h.
EleHLTPathMon::EleHLTPathMon | ( | std::string | pathName = "" |
) | [inline, explicit] |
EleHLTPathMon::~EleHLTPathMon | ( | ) |
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().
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 |
bool EleHLTPathMon::operator< | ( | const EleHLTPathMon & | rhs | ) | const [inline] |
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] |