12 for (
size_t i = 0;
i <
paths.size(); ++
i)
19 if (
path[0] > 48 &&
path[0] <= 57 ) {
20 newPathStruct.
first = atoi(
path.substr(0,
path.find(
'-')).c_str());
21 newPathStruct.
last = atoi(
path.substr(
path.find(
'-') + 1,
path.find(
':') -
path.find(
'-') - 1).c_str());
32 for (std::vector<unsigned int>::const_iterator it =
indices_.begin(), ed =
indices_.end(); it != ed; ++it) {
47 for (std::vector<unsigned int>::const_iterator it =
indices_.begin(), ed =
indices_.end(); it != ed; ++it) {
48 if (
result.getPrescaleForIndex(*it) != 1) {
68 std::cout <<
" trying to get prescale for multiple trigger objects at the same time" << std::endl;
78 std::vector<pathStruct>::const_iterator itp, bgp =
paths_.begin(), edp =
paths_.end();
79 for (
size_t i = 0,
n =
names.size();
i <
n; ++
i) {
81 for (itp = bgp; itp != edp; ++itp) {
82 if (thispath.find(itp->pathName) == 0 &&
event.id().run() >= itp->first &&
event.id().run() <= itp->last)
89 std::vector<pathStruct>::iterator itp, bgp =
paths_.begin(), edp =
paths_.end();
90 for (itp = bgp; itp != edp; ++itp) {
92 if (
idx != std::string::npos)
93 itp->pathName.erase(
idx);
void rmstar()
executes a 'rm -rf *' in current directory
int getprescale(const edm::EventBase &event, const edm::TriggerResults &result_tr, const pat::PackedTriggerPrescales &result) const
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.
const std::string names[nVars_]
TAKEN FROM http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/ElectroWeakAnalysis/Utilities/src/PdfWeig...
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_
edm::ParameterSetID lastID_