CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
L3MuonCombinedRelativeIsolationProducer Class Reference

#include <L3MuonCombinedRelativeIsolationProducer.h>

Inheritance diagram for L3MuonCombinedRelativeIsolationProducer:
edm::stream::EDProducer<> edm::stream::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 L3MuonCombinedRelativeIsolationProducer (const edm::ParameterSet &)
 constructor with config More...
 
virtual void produce (edm::Event &, const edm::EventSetup &) override
 Produce isolation maps. More...
 
virtual ~L3MuonCombinedRelativeIsolationProducer ()
 destructor More...
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
- Public Member Functions inherited from edm::stream::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 ParameterSet descriptions. More...
 
- Static Public Member Functions inherited from edm::stream::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Attributes

reco::isodeposit::IsoDepositExtractorcaloExtractor
 
bool optOutputIsoDeposits
 
bool printDebug
 
bool theApplyCutsORmaxNTracks
 apply or not the maxN cut on top of the sumPt (or nominall eff) < cuts More...
 
edm::InputTag theCaloDepsLabel
 
edm::EDGetTokenT
< edm::ValueMap< float > > 
theCaloDepsToken
 
edm::ParameterSet theConfig
 
muonisolation::Cuts theCuts
 
int theMaxNTracks
 
edm::InputTag theMuonCollectionLabel
 
edm::EDGetTokenT
< reco::RecoChargedCandidateCollection
theMuonCollectionToken
 
double theTrackPt_Min
 
reco::isodeposit::IsoDepositExtractortrkExtractor
 
bool useCaloIso
 flag to include or exclude calo iso from calculation More...
 
bool useRhoCorrectedCaloDeps
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDProducerBase
typedef EDProducerAdaptorBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 22 of file L3MuonCombinedRelativeIsolationProducer.h.

Constructor & Destructor Documentation

L3MuonCombinedRelativeIsolationProducer::L3MuonCombinedRelativeIsolationProducer ( const edm::ParameterSet par)

constructor with config

test cutsName only. The depositType is informational only (has not been used so far) [VK]

Definition at line 38 of file L3MuonCombinedRelativeIsolationProducer.cc.

References caloExtractor, edm::EDConsumerBase::consumesCollector(), L3NominalEfficiencyConfigurator::cuts(), reco::get(), edm::ParameterSet::getParameter(), LogDebug, LogTrace, optOutputIsoDeposits, muonisolation::Cuts::print(), AlCaHLTBitMon_QueryRunRegistry::string, theApplyCutsORmaxNTracks, theCaloDepsLabel, theCaloDepsToken, theConfig, theCuts, theMaxNTracks, theMuonCollectionLabel, theMuonCollectionToken, theTrackPt_Min, trkExtractor, useCaloIso, and useRhoCorrectedCaloDeps.

38  :
39  theConfig(par),
40  theMuonCollectionLabel(par.getParameter<InputTag>("inputMuonCollection")),
41  optOutputIsoDeposits(par.getParameter<bool>("OutputMuIsoDeposits")),
42  useCaloIso(par.existsAs<bool>("UseCaloIso") ?
43  par.getParameter<bool>("UseCaloIso") : true),
44  useRhoCorrectedCaloDeps(par.existsAs<bool>("UseRhoCorrectedCaloDeposits") ?
45  par.getParameter<bool>("UseRhoCorrectedCaloDeposits") : false),
46  theCaloDepsLabel(par.existsAs<InputTag>("CaloDepositsLabel") ?
47  par.getParameter<InputTag>("CaloDepositsLabel") :
48  InputTag("hltL3CaloMuonCorrectedIsolations")),
49  caloExtractor(0),
50  trkExtractor(0),
51  theTrackPt_Min(-1),
52  printDebug (par.getParameter<bool>("printDebug"))
53  {
54  LogDebug("RecoMuon|L3MuonCombinedRelativeIsolationProducer")<<" L3MuonCombinedRelativeIsolationProducer CTOR";
55 
56  theMuonCollectionToken = consumes<RecoChargedCandidateCollection>(theMuonCollectionLabel);
57  theCaloDepsToken = consumes<edm::ValueMap<float> >(theCaloDepsLabel);
58 
60  produces<reco::IsoDepositMap>("trkIsoDeposits");
61  if( useRhoCorrectedCaloDeps==false ) // otherwise, calo deposits have been previously computed
62  produces<reco::IsoDepositMap>("caloIsoDeposits");
63  //produces<std::vector<double> >("combinedRelativeIsoDeposits");
64  produces<edm::ValueMap<double> >("combinedRelativeIsoDeposits");
65  }
66  produces<edm::ValueMap<bool> >();
67 
68  //
69  // Extractor
70  //
71  // Calorimeters (ONLY if not previously computed)
72  //
73  if( useCaloIso && (useRhoCorrectedCaloDeps==false) ) {
74  edm::ParameterSet caloExtractorPSet = theConfig.getParameter<edm::ParameterSet>("CaloExtractorPSet");
75 
76  std::string caloExtractorName = caloExtractorPSet.getParameter<std::string>("ComponentName");
77  caloExtractor = IsoDepositExtractorFactory::get()->create( caloExtractorName, caloExtractorPSet, consumesCollector());
78  //std::string caloDepositType = caloExtractorPSet.getUntrackedParameter<std::string>("DepositLabel"); // N.B. Not used in the following!
79  }
80 
81  // Tracker
82  //
83  edm::ParameterSet trkExtractorPSet = theConfig.getParameter<edm::ParameterSet>("TrkExtractorPSet");
84 
85  theTrackPt_Min = theConfig.getParameter<double>("TrackPt_Min");
86  std::string trkExtractorName = trkExtractorPSet.getParameter<std::string>("ComponentName");
87  trkExtractor = IsoDepositExtractorFactory::get()->create( trkExtractorName, trkExtractorPSet, consumesCollector());
88  //std::string trkDepositType = trkExtractorPSet.getUntrackedParameter<std::string>("DepositLabel"); // N.B. Not used in the following!
89 
90  //
91  // Cuts for track isolation
92  //
94  std::string cutsName = cutsPSet.getParameter<std::string>("ComponentName");
95  if (cutsName == "SimpleCuts") {
96  theCuts = Cuts(cutsPSet);
97  }
98  else if (
99  // (cutsName== "L3NominalEfficiencyCuts_PXLS" && depositType=="PXLS")
100  // || (cutsName== "L3NominalEfficiencyCuts_TRKS" && depositType=="TRKS")
102  (cutsName== "L3NominalEfficiencyCuts_PXLS" )
103  || (cutsName== "L3NominalEfficiencyCuts_TRKS") ) {
105  }
106  else {
107  LogError("L3MuonCombinedRelativeIsolationProducer::beginJob")
108  <<"cutsName: "<<cutsPSet<<" is not recognized:"
109  <<" theCuts not set!";
110  }
111  LogTrace("")<< theCuts.print();
112 
113  // (kludge) additional cut on the number of tracks
114  theMaxNTracks = cutsPSet.getParameter<int>("maxNTracks");
115  theApplyCutsORmaxNTracks = cutsPSet.getParameter<bool>("applyCutsORmaxNTracks");
116 
117 }
#define LogDebug(id)
edm::EDGetTokenT< reco::RecoChargedCandidateCollection > theMuonCollectionToken
T getParameter(std::string const &) const
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:186
edm::EDGetTokenT< edm::ValueMap< float > > theCaloDepsToken
bool theApplyCutsORmaxNTracks
apply or not the maxN cut on top of the sumPt (or nominall eff) &lt; cuts
std::string print() const
Definition: Cuts.cc:55
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
#define LogTrace(id)
bool useCaloIso
flag to include or exclude calo iso from calculation
T get(const Candidate &c)
Definition: component.h:55
L3MuonCombinedRelativeIsolationProducer::~L3MuonCombinedRelativeIsolationProducer ( )
virtual

destructor

Definition at line 120 of file L3MuonCombinedRelativeIsolationProducer.cc.

References caloExtractor, LogDebug, and trkExtractor.

120  {
121  LogDebug("RecoMuon|L3MuonCombinedRelativeIsolationProducer")<<" L3MuonCombinedRelativeIsolationProducer DTOR";
122  if (caloExtractor) delete caloExtractor;
123  if (trkExtractor) delete trkExtractor;
124 }
#define LogDebug(id)

Member Function Documentation

void L3MuonCombinedRelativeIsolationProducer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

ParameterSet descriptions.

Definition at line 127 of file L3MuonCombinedRelativeIsolationProducer.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), HLT_25ns10e33_v2_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

127  {
129  desc.add<bool>("UseRhoCorrectedCaloDeposits",false);
130  desc.add<bool>("UseCaloIso",true);
131  desc.add<edm::InputTag>("CaloDepositsLabel",edm::InputTag("hltL3CaloMuonCorrectedIsolations"));
132  desc.add<edm::InputTag>("inputMuonCollection",edm::InputTag("hltL3MuonCandidates"));
133  desc.add<bool>("OutputMuIsoDeposits",true);
134  desc.add<double>("TrackPt_Min",-1.0);
135  desc.add<bool>("printDebug",false);
137  {
138  cutsPSet.add<std::vector<double> >("ConeSizes",std::vector<double>(1, 0.24));
139  cutsPSet.add<std::string>("ComponentName","SimpleCuts");
140  cutsPSet.add<std::vector<double> >("Thresholds",std::vector<double>(1, 0.1));
141  cutsPSet.add<int>("maxNTracks",-1);
142  cutsPSet.add<std::vector<double> >("EtaBounds",std::vector<double>(1, 2.411));
143  cutsPSet.add<bool>("applyCutsORmaxNTracks",false);
144  }
145  desc.add<edm::ParameterSetDescription>("CutsPSet",cutsPSet);
146  edm::ParameterSetDescription trkExtractorPSet;
147  {
148  trkExtractorPSet.add<double>("Chi2Prob_Min", -1.0);
149  trkExtractorPSet.add<double>("Chi2Ndof_Max", 1.0E64);
150  trkExtractorPSet.add<double>("Diff_z",0.2);
151  trkExtractorPSet.add<edm::InputTag>("inputTrackCollection",edm::InputTag("hltPixelTracks"));
152  trkExtractorPSet.add<double>("ReferenceRadius",6.0);
153  trkExtractorPSet.add<edm::InputTag>("BeamSpotLabel",edm::InputTag("hltOnlineBeamSpot"));
154  trkExtractorPSet.add<std::string>("ComponentName","PixelTrackExtractor");
155  trkExtractorPSet.add<double>("DR_Max",0.24);
156  trkExtractorPSet.add<double>("Diff_r",0.1);
157  trkExtractorPSet.add<bool>("VetoLeadingTrack",true);
158  trkExtractorPSet.add<double>("DR_VetoPt",0.025);
159  trkExtractorPSet.add<double>("DR_Veto",0.01);
160  trkExtractorPSet.add<unsigned int>("NHits_Min",0);
161  trkExtractorPSet.add<double>("Pt_Min",-1.0);
162  trkExtractorPSet.addUntracked<std::string>("DepositLabel","PXLS");
163  trkExtractorPSet.add<std::string>("BeamlineOption","BeamSpotFromEvent");
164  trkExtractorPSet.add<bool>("PropagateTracksToRadius",true);
165  trkExtractorPSet.add<double>("PtVeto_Min",2.0);
166  }
167  desc.add<edm::ParameterSetDescription>("TrkExtractorPSet",trkExtractorPSet);
168  edm::ParameterSetDescription caloExtractorPSet;
169  {
170  caloExtractorPSet.add<double>("DR_Veto_H",0.1);
171  caloExtractorPSet.add<bool>("Vertex_Constraint_Z",false);
172  caloExtractorPSet.add<double>("Threshold_H",0.5);
173  caloExtractorPSet.add<std::string>("ComponentName","CaloExtractor");
174  caloExtractorPSet.add<double>("Threshold_E",0.2);
175  caloExtractorPSet.add<double>("DR_Max",0.24);
176  caloExtractorPSet.add<double>("DR_Veto_E",0.07);
177  caloExtractorPSet.add<double>("Weight_E",1.5);
178  caloExtractorPSet.add<bool>("Vertex_Constraint_XY",false);
179  caloExtractorPSet.addUntracked<std::string>("DepositLabel","EcalPlusHcal");
180  caloExtractorPSet.add<edm::InputTag>("CaloTowerCollectionLabel",edm::InputTag("hltTowerMakerForMuons"));
181  caloExtractorPSet.add<double>("Weight_H",1.0);
182  }
183  desc.add<edm::ParameterSetDescription>("CaloExtractorPSet",caloExtractorPSet);
184  descriptions.add("hltL3MuonIsolations", desc);
185 }
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void L3MuonCombinedRelativeIsolationProducer::produce ( edm::Event event,
const edm::EventSetup eventSetup 
)
overridevirtual

Produce isolation maps.

Implements edm::stream::EDProducerBase.

Definition at line 188 of file L3MuonCombinedRelativeIsolationProducer.cc.

References caloExtractor, KineDebug3::count(), gather_cfg::cout, GOODCOLL_filter_cfg::cut, reco::isodeposit::IsoDepositExtractor::deposit(), reco::IsoDeposit::depositAndCountWithin(), reco::IsoDeposit::depositWithin(), edm::helper::Filler< Map >::fill(), i, edm::helper::Filler< Map >::insert(), metname, RPCpg::mu, patZpeak::muons, optOutputIsoDeposits, reco::IsoDeposit::print(), printDebug, mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, theApplyCutsORmaxNTracks, theCaloDepsToken, theCuts, theMaxNTracks, theMuonCollectionLabel, theMuonCollectionToken, theTrackPt_Min, trkExtractor, useCaloIso, useRhoCorrectedCaloDeps, and reco::IsoDeposit::veto().

188  {
189  std::string metname = "RecoMuon|L3MuonCombinedRelativeIsolationProducer";
190 
191  if (printDebug) std::cout <<" L3 Muon Isolation producing..."
192  <<" BEGINING OF EVENT " <<"================================" <<std::endl;
193 
194  // Take the SA container
195  if (printDebug) std::cout <<" Taking the muons: "<<theMuonCollectionLabel << std::endl;
197  event.getByToken(theMuonCollectionToken,muons);
198 
199  // Take calo deposits with rho corrections (ONLY if previously computed)
200  Handle< edm::ValueMap<float> > caloDepWithCorrMap;
202  event.getByToken(theCaloDepsToken, caloDepWithCorrMap);
203 
204  std::auto_ptr<reco::IsoDepositMap> caloDepMap( new reco::IsoDepositMap());
205  std::auto_ptr<reco::IsoDepositMap> trkDepMap( new reco::IsoDepositMap());
206 
207  std::auto_ptr<edm::ValueMap<bool> > comboIsoDepMap( new edm::ValueMap<bool> ());
208 
209  //std::auto_ptr<std::vector<double> > combinedRelativeDeps(new std::vector<double>());
210  std::auto_ptr<edm::ValueMap<double> > combinedRelativeDepMap(new edm::ValueMap<double>());
211 
212 
213  //
214  // get Vetos and deposits
215  //
216  unsigned int nMuons = muons->size();
217 
218  IsoDeposit::Vetos trkVetos(nMuons);
219  std::vector<IsoDeposit> trkDeps(nMuons);
220 
221 
222  // IsoDeposit::Vetos caloVetos(nMuons);
223  // std::vector<IsoDeposit> caloDeps(nMuons);
224  // std::vector<float> caloCorrDeps(nMuons, 0.); // if calo deposits with corrections available
225 
226  IsoDeposit::Vetos caloVetos;
227  std::vector<IsoDeposit> caloDeps;
228  std::vector<float> caloCorrDeps; // if calo deposits with corrections available
229 
231  caloCorrDeps.resize(nMuons, 0.);
232  }
233  else if (useCaloIso) {
234  caloVetos.resize(nMuons);
235  caloDeps.resize(nMuons);
236  }
237 
238  std::vector<double> combinedRelativeDeps(nMuons, 0.);
239  std::vector<bool> combinedRelativeIsos(nMuons, false);
240 
241  for (unsigned int i=0; i<nMuons; i++) {
242 
243  RecoChargedCandidateRef candref(muons,i);
244  TrackRef mu = candref->track();
245 
246  trkDeps[i] = trkExtractor->deposit(event, eventSetup, *mu);
247  trkVetos[i] = trkDeps[i].veto();
248 
250  caloCorrDeps[i] = (*caloDepWithCorrMap)[candref];
251  }
252  else if (useCaloIso) {
253  caloDeps[i] = caloExtractor->deposit(event, eventSetup, *mu);
254  caloVetos[i] = caloDeps[i].veto();
255  }
256 
257  }
258 
259  //
260  // add here additional vetos
261  //
262  //.....
263 
264  //
265  // actual cut step
266  //
267 
268  if (printDebug) std::cout << "Looping over deposits...." << std::endl;
269  for(unsigned int iMu=0; iMu < nMuons; ++iMu){
270 
271  if (printDebug) std::cout << "Muon number = " << iMu << std::endl;
272  TrackRef mu = (*muons)[iMu].track();
273 
274  // cuts
275  const Cuts::CutSpec & cut = theCuts( mu->eta());
276 
277 
278  if (printDebug) std::cout << "CUTDEBUG: Muon eta = " << mu->eta() << std::endl
279  << "CUTDEBUG: Muon pt = " << mu->pt() << std::endl
280  << "CUTDEBUG: minEta = " << cut.etaRange.min() << std::endl
281  << "CUTDEBUG: maxEta = " << cut.etaRange.max() << std::endl
282  << "CUTDEBUG: consize = " << cut.conesize << std::endl
283  << "CUTDEBUG: thresho = " << cut.threshold << std::endl;
284 
285  const IsoDeposit & trkDeposit = trkDeps[iMu];
286  if (printDebug) std::cout << trkDeposit.print();
287  std::pair<double, int> trkIsoSumAndCount = trkDeposit.depositAndCountWithin(cut.conesize, trkVetos, theTrackPt_Min);
288 
289  double caloIsoSum = 0.;
291  caloIsoSum = caloCorrDeps[iMu];
292  if(caloIsoSum<0.) caloIsoSum = 0.;
293  if(printDebug) std::cout << "Rho-corrected calo deposit (min. 0) = " << caloIsoSum << std::endl;
294  }
295  else if (useCaloIso) {
296  const IsoDeposit & caloDeposit = caloDeps[iMu];
297  if (printDebug) std::cout << caloDeposit.print();
298  caloIsoSum = caloDeposit.depositWithin(cut.conesize, caloVetos);
299  }
300 
301  double trkIsoSum = trkIsoSumAndCount.first;
302  int count = trkIsoSumAndCount.second;
303 
304  double muPt = mu->pt();
305  if( muPt<1. ) muPt = 1.;
306  double combinedRelativeDeposit = ((trkIsoSum + caloIsoSum ) / muPt);
307  bool result = ( combinedRelativeDeposit < cut.threshold);
308  if (theApplyCutsORmaxNTracks ) result |= count <= theMaxNTracks;
309  if (printDebug) std::cout <<" trk dep in cone: " << trkIsoSum << " with count "<<count <<std::endl
310  <<" calo dep in cone: " << caloIsoSum << std::endl
311  <<" muPt: " << muPt << std::endl
312  <<" relIso: " <<combinedRelativeDeposit << std::endl
313  <<" is isolated: "<<result << std::endl;
314 
315  combinedRelativeIsos[iMu] = result;
316  //combinedRelativeDeps->push_back(combinedRelativeDeposit);
317  combinedRelativeDeps[iMu] = combinedRelativeDeposit;
318  }
319 
320  //
321  // store
322  //
324 
325  reco::IsoDepositMap::Filler depFillerTrk(*trkDepMap);
326  depFillerTrk.insert(muons, trkDeps.begin(), trkDeps.end());
327  depFillerTrk.fill();
328  event.put(trkDepMap, "trkIsoDeposits");
329 
330  if( useCaloIso && (useRhoCorrectedCaloDeps==false) ) {
331  reco::IsoDepositMap::Filler depFillerCalo(*caloDepMap);
332  depFillerCalo.insert(muons, caloDeps.begin(), caloDeps.end());
333  depFillerCalo.fill();
334  event.put(caloDepMap, "caloIsoDeposits");
335  }
336 
337  //event.put(combinedRelativeDeps, "combinedRelativeIsoDeposits");
338  edm::ValueMap<double>::Filler depFillerCombRel(*combinedRelativeDepMap);
339  depFillerCombRel.insert(muons, combinedRelativeDeps.begin(), combinedRelativeDeps.end());
340  depFillerCombRel.fill();
341  event.put(combinedRelativeDepMap, "combinedRelativeIsoDeposits");
342 
343  }
344  edm::ValueMap<bool>::Filler isoFiller(*comboIsoDepMap);
345  isoFiller.insert(muons, combinedRelativeIsos.begin(), combinedRelativeIsos.end());
346  isoFiller.fill();
347  event.put(comboIsoDepMap);
348 
349  if (printDebug) std::cout <<" END OF EVENT " <<"================================";
350 }
edm::EDGetTokenT< reco::RecoChargedCandidateCollection > theMuonCollectionToken
int i
Definition: DBlmapReader.cc:9
const Veto & veto() const
Get veto area.
Definition: IsoDeposit.h:78
edm::EDGetTokenT< edm::ValueMap< float > > theCaloDepsToken
const std::string metname
bool theApplyCutsORmaxNTracks
apply or not the maxN cut on top of the sumPt (or nominall eff) &lt; cuts
tuple result
Definition: mps_fire.py:83
double depositWithin(double coneSize, const Vetos &vetos=Vetos(), bool skipDepositVeto=false) const
Get deposit.
Definition: IsoDeposit.cc:34
const int mu
Definition: Constants.h:22
bool useCaloIso
flag to include or exclude calo iso from calculation
tuple muons
Definition: patZpeak.py:38
std::pair< double, int > depositAndCountWithin(double coneSize, const Vetos &vetos=Vetos(), double threshold=-1e+36, bool skipDepositVeto=false) const
Get deposit.
Definition: IsoDeposit.cc:44
std::string print() const
Definition: IsoDeposit.cc:181
tuple cout
Definition: gather_cfg.py:145
virtual reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const =0

Member Data Documentation

reco::isodeposit::IsoDepositExtractor* L3MuonCombinedRelativeIsolationProducer::caloExtractor
private
bool L3MuonCombinedRelativeIsolationProducer::optOutputIsoDeposits
private
bool L3MuonCombinedRelativeIsolationProducer::printDebug
private

Definition at line 77 of file L3MuonCombinedRelativeIsolationProducer.h.

Referenced by produce().

bool L3MuonCombinedRelativeIsolationProducer::theApplyCutsORmaxNTracks
private

apply or not the maxN cut on top of the sumPt (or nominall eff) < cuts

Definition at line 73 of file L3MuonCombinedRelativeIsolationProducer.h.

Referenced by L3MuonCombinedRelativeIsolationProducer(), and produce().

edm::InputTag L3MuonCombinedRelativeIsolationProducer::theCaloDepsLabel
private
edm::EDGetTokenT<edm::ValueMap<float> > L3MuonCombinedRelativeIsolationProducer::theCaloDepsToken
private
edm::ParameterSet L3MuonCombinedRelativeIsolationProducer::theConfig
private
muonisolation::Cuts L3MuonCombinedRelativeIsolationProducer::theCuts
private
int L3MuonCombinedRelativeIsolationProducer::theMaxNTracks
private

max number of tracks to allow in the sum count <= maxN

Definition at line 70 of file L3MuonCombinedRelativeIsolationProducer.h.

Referenced by L3MuonCombinedRelativeIsolationProducer(), and produce().

edm::InputTag L3MuonCombinedRelativeIsolationProducer::theMuonCollectionLabel
private
edm::EDGetTokenT<reco::RecoChargedCandidateCollection> L3MuonCombinedRelativeIsolationProducer::theMuonCollectionToken
private
double L3MuonCombinedRelativeIsolationProducer::theTrackPt_Min
private

pt cut to consider track in sumPt after extracting iso deposit better split this off into a filter

Definition at line 66 of file L3MuonCombinedRelativeIsolationProducer.h.

Referenced by L3MuonCombinedRelativeIsolationProducer(), and produce().

reco::isodeposit::IsoDepositExtractor* L3MuonCombinedRelativeIsolationProducer::trkExtractor
private
bool L3MuonCombinedRelativeIsolationProducer::useCaloIso
private

flag to include or exclude calo iso from calculation

Definition at line 53 of file L3MuonCombinedRelativeIsolationProducer.h.

Referenced by L3MuonCombinedRelativeIsolationProducer(), and produce().

bool L3MuonCombinedRelativeIsolationProducer::useRhoCorrectedCaloDeps
private