CMS 3D CMS Logo

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

#include <ExtractorFromDeposits.h>

Inheritance diagram for muonisolation::ExtractorFromDeposits:
reco::isodeposit::IsoDepositExtractor

Public Member Functions

virtual reco::IsoDeposit deposit (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const
 
virtual reco::IsoDeposit deposit (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackRef &track) const
 
 ExtractorFromDeposits ()
 
 ExtractorFromDeposits (const edm::ParameterSet &par)
 
virtual void fillVetos (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &tracks)
 
virtual ~ExtractorFromDeposits ()
 
- Public Member Functions inherited from reco::isodeposit::IsoDepositExtractor
virtual reco::IsoDeposit deposit (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackBaseRef &track) const
 make single IsoDeposit based on trackRef as input More...
 
virtual reco::IsoDeposit deposit (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Candidate &track) const
 
virtual reco::IsoDeposit deposit (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::CandidateBaseRef &track) const
 make single IsoDeposit based on a CandidateBaseRef as input More...
 
virtual std::vector
< reco::IsoDeposit
deposits (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const
 
virtual std::vector
< reco::IsoDeposit
deposits (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackBaseRef &track) const
 
virtual std::vector
< reco::IsoDeposit
deposits (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Candidate &track) const
 
virtual std::vector
< reco::IsoDeposit
deposits (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::CandidateBaseRef &track) const
 
virtual ~IsoDepositExtractor ()
 Destructor. More...
 

Private Attributes

edm::InputTag theCollectionTag
 

Detailed Description

Definition at line 13 of file ExtractorFromDeposits.h.

Constructor & Destructor Documentation

muonisolation::ExtractorFromDeposits::ExtractorFromDeposits ( )
inline

Definition at line 17 of file ExtractorFromDeposits.h.

17 {};
ExtractorFromDeposits::ExtractorFromDeposits ( const edm::ParameterSet par)

Definition at line 16 of file ExtractorFromDeposits.cc.

16  :
17  theCollectionTag(par.getParameter<edm::InputTag>("IsolationCollectionTag"))
18 { }
T getParameter(std::string const &) const
virtual muonisolation::ExtractorFromDeposits::~ExtractorFromDeposits ( )
inlinevirtual

Definition at line 20 of file ExtractorFromDeposits.h.

20 {}

Member Function Documentation

IsoDeposit ExtractorFromDeposits::deposit ( const edm::Event ev,
const edm::EventSetup evSetup,
const reco::Track track 
) const
virtual

make single IsoDeposit based on track as input purely virtual: have to implement in concrete implementations

Implements reco::isodeposit::IsoDepositExtractor.

Definition at line 24 of file ExtractorFromDeposits.cc.

References reco::TrackBase::eta(), metname, reco::TrackBase::phi(), AlCaHLTBitMon_QueryRunRegistry::string, and theCollectionTag.

26 {
27  static std::string metname = "RecoMuon|ExtractorFromDeposits";
29  event.getByLabel(theCollectionTag, depMap);
30 
31  LogWarning(metname)<<"Call this method only if the original muon track collection is lost";
32 
33  // double vtx_z = muon.vz();
34  reco::isodeposit::Direction muonDir(muon.eta(), muon.phi());
35 
36  typedef reco::IsoDepositMap::const_iterator iterator_i;
38  iterator_i depI = depMap->begin();
39  iterator_i depIEnd = depMap->end();
40  for (; depI != depIEnd; ++depI){
41  iterator_ii depII = depI.begin();
42  iterator_ii depIIEnd = depI.end();
43  for (; depII != depIIEnd; ++depII){
44  reco::isodeposit::Direction depDir(depII->direction());
45  if (muonDir.deltaR(depDir) < 1.e-6) return *depII;
46  }
47  }
48 
49  return IsoDeposit();
50 }
const std::string metname
reco::IsoDeposit IsoDeposit
Definition: Isolation.h:7
IsoDeposit ExtractorFromDeposits::deposit ( const edm::Event ev,
const edm::EventSetup evSetup,
const reco::TrackRef track 
) const
virtual

Definition at line 52 of file ExtractorFromDeposits.cc.

References metname, metsig::muon, AlCaHLTBitMon_QueryRunRegistry::string, and theCollectionTag.

54 {
55  static std::string metname = "RecoMuon|ExtractorFromDeposits";
57  event.getByLabel(theCollectionTag, depMap);
58 
59  return (*depMap)[muon];
60 }
const std::string metname
void ExtractorFromDeposits::fillVetos ( const edm::Event ev,
const edm::EventSetup evSetup,
const reco::TrackCollection tracks 
)
virtual

fill vetoes: to exclude deposits at IsoDeposit creation stage check concrete extractors if it's no-op !

Implements reco::isodeposit::IsoDepositExtractor.

Definition at line 20 of file ExtractorFromDeposits.cc.

22 { }

Member Data Documentation

edm::InputTag muonisolation::ExtractorFromDeposits::theCollectionTag
private

Definition at line 30 of file ExtractorFromDeposits.h.

Referenced by deposit().