7 using namespace pat::helper;
17 "MultiIsolator: you can't specify both 'calo' isolation and 'ecal'/'hcal', " <<
18 "as the 'calo' isolation flag is just the logical OR of 'ecal' and 'hcal'.\n";
26 std::vector<edm::ParameterSet> psets = conf.
getParameter<std::vector<edm::ParameterSet> >(
"user");
27 if (psets.size() > 5) {
29 "MultiIsolator: you can specify at most 5 user isolation collections.\n";
32 for (std::vector<edm::ParameterSet>::const_iterator it = psets.begin(), ed = psets.end(); it != ed; ++it, bit <<= 1) {
48 if (conf.
empty())
return 0;
50 if (conf.
exists(
"deltaR")) {
67 for (boost::ptr_vector<BaseIsolator>::iterator it =
isolators_.begin(), ed =
isolators_.end(); it != ed; ++it) {
68 it->beginEvent(event, eventSetup);
74 for (boost::ptr_vector<BaseIsolator>::iterator it =
isolators_.begin(), ed =
isolators_.end(); it != ed; ++it) {
81 for (boost::ptr_vector<BaseIsolator>::const_iterator it =
isolators_.begin(), ed =
isolators_.end(); it != ed; ++it) {
91 std::ostringstream isoSumm;
T getParameter(std::string const &) const
std::vector< uint32_t > masks_
boost::ptr_vector< BaseIsolator > isolators_
static const std::string & bitToString(uint32_t bit)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
void print(std::ostream &out) const
IsolationKeys
Enum defining isolation keys.
void beginEvent(const edm::Event &event, const edm::EventSetup &eventSetup)
std::string printSummary() const
static BaseIsolator * make(const edm::ParameterSet &conf, edm::ConsumesCollector &iC, bool withCut)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
std::vector< pat::IsolationKeys > keys_
Flags used in PAT, and static translator from flags to strings.
void addIsolator(BaseIsolator *iso, uint32_t mask, pat::IsolationKeys key)