31 using namespace muonisolation;
35 theSACollectionLabel(par.getParameter<edm::
InputTag>(
"StandAloneCollectionLabel")),
39 LogDebug(
"Muon|RecoMuon|L2MuonIsolationProducer")<<
" L2MuonIsolationProducer constructor called";
46 std::string extractorName = extractorPSet.
getParameter<std::string>(
"ComponentName");
51 bool haveIsolator = !isolatorPSet.
empty();
58 produces<reco::IsoDepositMap>();
61 if (optOutputIsolatorFloat && haveIsolator){
62 produces<edm::ValueMap<float> >();
68 LogDebug(
"Muon|RecoMuon|L2MuonIsolationProducer")<<
" L2MuonIsolationProducer destructor called";
79 std::string
metname =
"Muon|RecoMuon|L2MuonIsolationProducer";
81 LogDebug(metname)<<
" L2 Muon Isolation producing...";
89 LogDebug(metname)<<
" Get energy around";
96 unsigned int nTracks = tracks->size();
97 std::vector<IsoDeposit> deps(nTracks);
98 std::vector<bool> isos(nTracks,
false);
99 std::vector<float> isoFloats(nTracks, 0);
101 for (
unsigned int i=0;
i<nTracks;
i++) {
118 depFiller.
insert(tracks, deps.begin(), deps.end());
124 isoFiller.
insert(tracks, isos.begin(), isos.end());
130 isoFloatFiller.
insert(tracks, isoFloats.begin(), isoFloats.end());
131 isoFloatFiller.
fill();
132 event.put(isoFloatMap);
137 <<
"================================";
T getParameter(std::string const &) const
reco::isodeposit::IsoDepositExtractor * theExtractor
const std::string metname
virtual Result result(const DepositContainer &deposits, const edm::Event *=0) const =0
Compute and return the isolation variable.
void insert(const H &h, I begin, I end)
edm::InputTag theSACollectionLabel
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
virtual ~L2MuonIsolationProducer()
destructor
std::vector< DepositAndVetos > DepositContainer
virtual void produce(edm::Event &, const edm::EventSetup &)
Produce isolation maps.
virtual void beginJob()
setup the job
bool optOutputIsolatorFloat
muonisolation::MuIsoBaseIsolator * theDepositIsolator
L2MuonIsolationProducer(const edm::ParameterSet &)
constructor with config
T get(const Candidate &c)