Go to the documentation of this file. 1 #ifndef MuonIdentification_MuonIdProducer_h
2 #define MuonIdentification_MuonIdProducer_h
128 inline bool approxEqual(
const double a,
const double b,
const double tol = 1E-3)
const {
135 return &
chamber.segmentMatches;
141 throw cms::Exception(
"getSegmentMatches called with unsupported muonType");
151 if (
s ==
"inner tracks")
153 else if (
s ==
"outer tracks")
155 else if (
s ==
"links")
157 else if (
s ==
"muons")
159 else if (
s ==
"tev firstHit")
161 else if (
s ==
"tev picky")
163 else if (
s ==
"tev dyt")
166 throw cms::Exception(
"FatalError") <<
"Unknown input collection type: " <<
s;
172 return "inner tracks";
174 return "outer tracks";
180 return "tev firstHit";
186 throw cms::Exception(
"FatalError") <<
"Unknown input collection type";
bool fillGlobalTrackQuality_
edm::Handle< reco::TrackToTrackMap > tpfmsCollectionHandle_
MuonCaloCompatibility muonCaloCompatibility_
edm::Handle< reco::MuonCollection > muonCollectionHandle_
edm::Handle< reco::TrackCollection > outerTrackCollectionHandle_
std::unique_ptr< reco::isodeposit::IsoDepositExtractor > muIsoExtractorJet_
edm::EDGetTokenT< reco::TrackToTrackMap > pickyCollectionToken_
MuonTrackType
map for Global Muon refitters
void init(edm::Event &, const edm::EventSetup &)
bool arbitrateTrackerMuons_
std::string jetDepositName_
bool isGoodTrackerMuon(const reco::Muon &muon)
edm::Handle< reco::TrackCollection > innerTrackCollectionHandle_
edm::EDGetTokenT< reco::TrackCollection > outerTrackCollectionToken_
edm::Handle< reco::TrackToTrackMap > pickyCollectionHandle_
double ptThresholdToFillCandidateP4WithGlobalFit_
bool storeCrossedHcalRecHits_
bool isGoodTrack(const reco::Track &track)
edm::EDGetTokenT< reco::TrackToTrackMap > dytCollectionToken_
reco::Muon::MuonTrackType TrackType
edm::InputTag globalTrackQualityInputTag_
edm::EDGetTokenT< reco::MuonTrackLinksCollection > linkCollectionToken_
edm::EDGetTokenT< reco::TrackCollection > innerTrackCollectionToken_
static ICTypeKey toKey(const std::string &s)
edm::Handle< RPCRecHitCollection > rpcHitHandle_
std::unique_ptr< MuonShowerDigiFiller > theShowerDigiFiller_
void produce(edm::Event &, const edm::EventSetup &) override
TrackDetectorAssociator trackAssociator_
edm::Handle< reco::MuonTrackLinksCollection > linkCollectionHandle_
edm::EDGetTokenT< reco::MuonCollection > muonCollectionToken_
std::string ecalDepositName_
static const unsigned int GEMMuon
std::unique_ptr< MuonMesh > meshAlgo_
std::vector< edm::InputTag > inputCollectionLabels_
edm::Handle< reco::TrackToTrackMap > dytCollectionHandle_
reco::Muon makeMuon(edm::Event &iEvent, const edm::EventSetup &iSetup, const reco::TrackRef &track, TrackType type)
bool isGoodGEMMuon(const reco::Muon &muon)
void arbitrateMuons(reco::MuonCollection *, reco::CaloMuonCollection *)
void beginRun(const edm::Run &, const edm::EventSetup &) override
std::vector< Muon > MuonCollection
collection of Muon objects
std::vector< reco::MuonSegmentMatch > * getSegmentMatches(reco::MuonChamberMatch &chamber, unsigned int muonType) const
get the segment matches of the appropriate type
std::vector< CaloMuon > CaloMuonCollection
collection of Muon objects
static std::string toStr(const ICTypeKey k)
edm::EDGetTokenT< edm::ValueMap< reco::MuonQuality > > glbQualToken_
std::unique_ptr< reco::isodeposit::IsoDepositExtractor > muIsoExtractorCalo_
bool debugWithTruthMatching_
reco::CaloMuon makeCaloMuon(const reco::Muon &)
static double sectorPhi(const DetId &id)
std::string trackDepositName_
bool isGoodME0Muon(const reco::Muon &muon)
edm::Handle< edm::ValueMap< reco::MuonQuality > > glbQualHandle_
void fillMuonIsolation(edm::Event &, const edm::EventSetup &, reco::Muon &aMuon, reco::IsoDeposit &trackDep, reco::IsoDeposit &ecalDep, reco::IsoDeposit &hcalDep, reco::IsoDeposit &hoDep, reco::IsoDeposit &jetDep)
bool checkLinks(const reco::MuonTrackLinks *) const
const edm::ESGetToken< Propagator, TrackingComponentsRecord > propagatorToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::string hcalDepositName_
std::string hoDepositName_
MuonIdProducer(const edm::ParameterSet &)
std::unique_ptr< MuonTimingFiller > theTimingFiller_
bool approxEqual(const double a, const double b, const double tol=1E-3) const
int overlap(const reco::Muon &muon, const reco::Track &track)
double phiOfMuonInteractionRegion(const reco::Muon &muon) const
std::unique_ptr< MuonKinkFinder > trackerKinkFinder_
void fillTrackerKink(reco::Muon &aMuon)
bool fillCaloCompatibility_
const edm::ESGetToken< CSCGeometry, MuonGeometryRecord > geomTokenRun_
static const unsigned int TrackerMuon
Abs< T >::type abs(const T &t)
unsigned int chamberId(const DetId &)
edm::EDGetTokenT< reco::TrackToTrackMap > tpfmsCollectionToken_
edm::EDGetTokenT< RPCRecHitCollection > rpcHitToken_
void fillMuonId(edm::Event &, const edm::EventSetup &, reco::Muon &, TrackDetectorAssociator::Direction direction=TrackDetectorAssociator::InsideOut)
std::vector< ICTypes::ICTypeKey > inputCollectionTypes_
bool isGoodCaloMuon(const reco::CaloMuon &muon)
TrackAssociatorParameters parameters_
static const unsigned int ME0Muon
bool isGoodRPCMuon(const reco::Muon &muon)
bool fillGlobalTrackRefits_
std::unique_ptr< reco::isodeposit::IsoDepositExtractor > muIsoExtractorTrack_
double sigmaThresholdToFillCandidateP4WithGlobalFit_
~MuonIdProducer() override
void fillArbitrationInfo(reco::MuonCollection *, unsigned int muonType=reco::Muon::TrackerMuon)
void fillGlbQuality(edm::Event &, const edm::EventSetup &, reco::Muon &aMuon)