34 using namespace muonisolation;
38 theSACollectionLabel(par.getParameter<edm::
InputTag>(
"StandAloneCollectionLabel")),
42 LogDebug(
"Muon|RecoMuon|L2MuonIsolationProducer")<<
" L2MuonIsolationProducer constructor called";
55 bool haveIsolator = !isolatorPSet.
empty();
62 produces<reco::IsoDepositMap>();
65 if (optOutputIsolatorFloat && haveIsolator){
66 produces<edm::ValueMap<float> >();
72 LogDebug(
"Muon|RecoMuon|L2MuonIsolationProducer")<<
" L2MuonIsolationProducer destructor called";
82 extractorPSet.
add<
double>(
"DR_Veto_H",0.1);
83 extractorPSet.add<
bool>(
"Vertex_Constraint_Z",
false);
84 extractorPSet.add<
double>(
"Threshold_H",0.5);
85 extractorPSet.add<
std::string>(
"ComponentName",
"CaloExtractor");
86 extractorPSet.add<
double>(
"Threshold_E",0.2);
87 extractorPSet.add<
double>(
"DR_Max",1.0);
88 extractorPSet.add<
double>(
"DR_Veto_E",0.07);
89 extractorPSet.add<
double>(
"Weight_E",1.5);
90 extractorPSet.add<
bool>(
"Vertex_Constraint_XY",
false);
91 extractorPSet.addUntracked<
std::string>(
"DepositLabel",
"EcalPlusHcal");
93 extractorPSet.add<
double>(
"Weight_H",1.0);
98 std::vector<double>
temp;
99 isolatorPSet.add<std::vector<double> >(
"ConeSizesRel",std::vector<double>(1, 0.3));
100 isolatorPSet.add<
double>(
"EffAreaSFEndcap",1.0);
101 isolatorPSet.add<
bool>(
"CutAbsoluteIso",
true);
102 isolatorPSet.add<
bool>(
"AndOrCuts",
true);
104 isolatorPSet.add<std::vector<double> >(
"ConeSizes",std::vector<double>(1, 0.3));
105 isolatorPSet.add<
std::string>(
"ComponentName",
"CutsIsolatorWithCorrection");
106 isolatorPSet.add<
bool>(
"ReturnRelativeSum",
false);
107 isolatorPSet.add<
double>(
"RhoScaleBarrel",1.0);
108 isolatorPSet.add<
double>(
"EffAreaSFBarrel",1.0);
109 isolatorPSet.add<
bool>(
"CutRelativeIso",
false);
110 isolatorPSet.add<std::vector<double> >(
"EtaBounds",std::vector<double>(1, 2.411));
111 isolatorPSet.add<std::vector<double> >(
"Thresholds",std::vector<double>(1, 9.9999999E7));
112 isolatorPSet.add<
bool>(
"ReturnAbsoluteSum",
true);
113 isolatorPSet.add<std::vector<double> >(
"EtaBoundsRel",std::vector<double>(1, 2.411));
114 isolatorPSet.add<std::vector<double> >(
"ThresholdsRel",std::vector<double>(1, 9.9999999E7));
115 isolatorPSet.add<
double>(
"RhoScaleEndcap",1.0);
116 isolatorPSet.add<
double>(
"RhoMax",9.9999999E7);
117 isolatorPSet.add<
bool>(
"UseRhoCorrection",
true);
120 desc.
add<
bool>(
"WriteIsolatorFloat",
false);
121 descriptions.
add(
"hltL2MuonIsolations", desc);
133 LogDebug(metname)<<
" L2 Muon Isolation producing...";
141 LogDebug(metname)<<
" Get energy around";
146 unsigned int nMuons = muons->size();
147 std::vector<IsoDeposit> deps(nMuons);
148 std::vector<bool> isos(nMuons,
false);
149 std::vector<float> isoFloats(nMuons, 0);
153 for (
unsigned int i=0;
i<nMuons;
i++) {
155 muonTracks.push_back(*tk);
160 for (
unsigned int i=0;
i<nMuons;
i++) {
177 depFiller.
insert(muons, deps.begin(), deps.end());
183 isoFiller.
insert(muons, isos.begin(), isos.end());
189 isoFloatFiller.
insert(muons, isoFloats.begin(), isoFloats.end());
190 isoFloatFiller.
fill();
191 event.put(isoFloatMap);
196 <<
"================================";
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)
std::vector< Track > TrackCollection
collection of Tracks
edm::InputTag theSACollectionLabel
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
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
edm::EDGetTokenT< reco::RecoChargedCandidateCollection > theSACollectionToken
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterSet descriptions.
virtual ~L2MuonIsolationProducer()
destructor
std::vector< DepositAndVetos > DepositContainer
virtual void produce(edm::Event &, const edm::EventSetup &)
Produce isolation maps.
void add(std::string const &label, ParameterSetDescription const &psetDescription)
virtual void beginJob()
setup the job
bool optOutputIsolatorFloat
muonisolation::MuIsoBaseIsolator * theDepositIsolator
L2MuonIsolationProducer(const edm::ParameterSet &)
constructor with config
T get(const Candidate &c)