34 using namespace muonisolation;
39 theMuonCollectionLabel(par.getParameter<
InputTag>(
"inputMuonCollection")),
40 optOutputIsoDeposits(par.getParameter<bool>(
"OutputMuIsoDeposits")),
44 LogDebug(
"RecoMuon|L3MuonIsolationProducer")<<
" L3MuonIsolationProducer CTOR";
49 produces<edm::ValueMap<bool> >();
66 if (cutsName ==
"SimpleCuts") {
73 (cutsName==
"L3NominalEfficiencyCuts_PXLS" )
74 || (cutsName==
"L3NominalEfficiencyCuts_TRKS") ) {
78 LogError(
"L3MuonIsolationProducer::beginJob")
79 <<
"cutsName: "<<cutsPSet<<
" is not recognized:"
80 <<
" theCuts not set!";
91 LogDebug(
"RecoMuon|L3MuonIsolationProducer")<<
" L3MuonIsolationProducer DTOR";
98 LogDebug(metname)<<
" L3 Muon Isolation producing..."
99 <<
" BEGINING OF EVENT " <<
"================================";
113 unsigned int nMuons = muons->size();
115 IsoDeposit::Vetos vetos(nMuons);
117 std::vector<IsoDeposit> deps(nMuons);
118 std::vector<bool> isos(nMuons,
false);
120 for (
unsigned int i=0;
i<nMuons;
i++) {
123 vetos[
i] = deps[
i].
veto();
134 for(
unsigned int iMu=0; iMu < nMuons; ++iMu){
143 double value = sumAndCount.first;
144 int count = sumAndCount.second;
148 LogTrace(metname)<<
"deposit in cone: "<<value<<
"with count "<<count<<
" is isolated: "<<
result;
158 depFiller.
insert(muons, deps.begin(), deps.end());
163 isoFiller.
insert(muons, isos.begin(), isos.end());
167 LogTrace(metname) <<
" END OF EVENT " <<
"================================";
edm::InputTag theMuonCollectionLabel
T getParameter(std::string const &) const
const Veto & veto() const
Get veto area.
muonisolation::Cuts theCuts
virtual void produce(edm::Event &, const edm::EventSetup &)
Produce isolation maps.
const std::string metname
double optOutputIsoDeposits
void insert(const H &h, I begin, I end)
std::string print() const
bool theApplyCutsORmaxNTracks
apply or not the maxN cut on top of the sumPt (or nominall eff) < cuts
double eta() const
pseudorapidity of momentum vector
edm::EDGetTokenT< reco::RecoChargedCandidateCollection > theMuonCollectionToken
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
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
L3MuonIsolationProducer(const edm::ParameterSet &)
constructor with config
muonisolation::Cuts cuts() const
std::pair< double, int > depositAndCountWithin(double coneSize, const Vetos &vetos=Vetos(), double threshold=-1e+36, bool skipDepositVeto=false) const
Get deposit.
std::string print() const
virtual ~L3MuonIsolationProducer()
destructor
T get(const Candidate &c)
edm::ParameterSet theConfig
reco::isodeposit::IsoDepositExtractor * theExtractor