1 #ifndef PhysicsTools_Heppy_TriggerBitChecker_h 2 #define PhysicsTools_Heppy_TriggerBitChecker_h 38 template <
typename T =
int>
62 static_assert(std::is_same_v<T, double>,
63 "\n\n\tPlease use getprescale<double> " 64 "(other types for trigger prescales are not supported anymore by TriggerBitChecker)");
73 std::cout <<
" trying to get prescale for multiple trigger objects at the same time" << std::endl;
void rmstar()
executes a 'rm -rf *' in current directory
bool check_unprescaled(const edm::EventBase &event, const edm::TriggerResults &result_tr, const pat::PackedTriggerPrescales &result) const
pathStruct returnPathStruct(const std::string &path) const
bool check(const edm::EventBase &event, const edm::TriggerResults &result) const
const ParameterSetID & parameterSetID() const
Get stored parameter set id.
TAKEN FROM http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/ElectroWeakAnalysis/Utilities/src/PdfWeig...
pathStruct(const std::string &s)
std::vector< pathStruct > paths_
TriggerBitChecker(const std::string &path="DUMMY")
void syncIndices(const edm::EventBase &event, const edm::TriggerResults &result) const
sync indices with path names
std::vector< unsigned int > indices_
T getprescale(const edm::EventBase &event, const edm::TriggerResults &result_tr, const pat::PackedTriggerPrescales &result) const
edm::ParameterSetID lastID_