33 using namespace muonisolation;
38 theMuonCollectionLabel(par.getParameter<
InputTag>(
"inputMuonCollection")),
39 optOutputIsoDeposits(par.getParameter<bool>(
"OutputMuIsoDeposits")),
43 LogDebug(
"RecoMuon|L3MuonIsolationProducer")<<
" L3MuonIsolationProducer CTOR";
46 produces<edm::ValueMap<bool> >();
51 LogDebug(
"RecoMuon|L3MuonIsolationProducer")<<
" L3MuonIsolationProducer DTOR";
64 std::string extractorName = extractorPSet.
getParameter<std::string>(
"ComponentName");
72 std::string cutsName = cutsPSet.
getParameter<std::string>(
"ComponentName");
73 if (cutsName ==
"SimpleCuts") {
80 (cutsName==
"L3NominalEfficiencyCuts_PXLS" )
81 || (cutsName==
"L3NominalEfficiencyCuts_TRKS") ) {
85 LogError(
"L3MuonIsolationProducer::beginJob")
86 <<
"cutsName: "<<cutsPSet<<
" is not recognized:"
87 <<
" theCuts not set!";
97 std::string
metname =
"RecoMuon|L3MuonIsolationProducer";
99 LogDebug(metname)<<
" L3 Muon Isolation producing..."
100 <<
" BEGINING OF EVENT " <<
"================================";
114 unsigned int nMuons = muons->size();
116 IsoDeposit::Vetos vetos(nMuons);
118 std::vector<IsoDeposit> deps(nMuons);
119 std::vector<bool> isos(nMuons,
false);
121 for (
unsigned int i=0;
i<nMuons;
i++) {
124 vetos[
i] = deps[
i].
veto();
135 for(
unsigned int iMu=0; iMu < nMuons; ++iMu){
144 double value = sumAndCount.first;
145 int count = sumAndCount.second;
149 LogTrace(metname)<<
"deposit in cone: "<<value<<
"with count "<<count<<
" is isolated: "<<
result;
159 depFiller.
insert(muons, deps.begin(), deps.end());
164 isoFiller.
insert(muons, isos.begin(), isos.end());
168 LogTrace(metname) <<
" END OF EVENT " <<
"================================";
edm::InputTag theMuonCollectionLabel
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
const Veto & veto() const
Get veto area.
virtual void beginJob()
initialisation
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
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