CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Tau3MuReco.h
Go to the documentation of this file.
1 #ifndef TAU3MURECO_H
2 #define TAU3MURECO_H
3 
8 
12 
13 class Tau3MuReco {
14 public:
16  ~Tau3MuReco();
17 
18  bool doTau3MuReco(const edm::Event& iEvent,
19  const edm::EventSetup& iSetup,
22 
23 private:
24  bool check4MuonTrack(
25  const reco::Track& track); //compares track with reconstructed muons and return true if they are equal
26  bool find3rdTrack(
27  const edm::Event& iEvent,
28  const edm::EventSetup& iSetup,
29  const reco::TrackCollection& Tracks); //try to find a 3rd muon in tracks, if this was not detected as a muon
30  bool findCorrectPairing(); //find the correct 3 muons, if more than 3 muons has been reconstructed
31  double getInvariantMass(const reco::TrackCollection* tracks, const double MuonMass = 0.106);
32  double getDeltaR(const reco::Track& track1, const reco::Track& track2);
33  bool removeIncorrectMuon(); //try to remove one muon, which seems to come not from a tau->3Mu decay
34 
35  const double m_kMatchingDeltaR;
36  const double m_kMatchingPt;
37  const double m_kTauMassCut;
38  const double m_kTauMass;
39  const double m_kMuonMass;
40 
43 
46 };
47 
48 #endif
Tau3MuReco::m_kMatchingPt
const double m_kMatchingPt
Definition: Tau3MuReco.h:36
Tau3MuReco::findCorrectPairing
bool findCorrectPairing()
Definition: Tau3MuReco.cc:197
PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
MuonMass
const double MuonMass
Definition: CosmicMuonParameters.h:24
Muon.h
Tau3MuReco::getDeltaR
double getDeltaR(const reco::Track &track1, const reco::Track &track2)
Definition: Tau3MuReco.cc:282
edm::EDGetTokenT< reco::MuonCollection >
Tau3MuReco::doTau3MuReco
bool doTau3MuReco(const edm::Event &iEvent, const edm::EventSetup &iSetup, reco::MuonCollection *muonCollection, reco::TrackCollection *trackCollection)
Definition: Tau3MuReco.cc:20
Tau3MuReco::m_kMuonMass
const double m_kMuonMass
Definition: Tau3MuReco.h:39
Tau3MuReco::find3rdTrack
bool find3rdTrack(const edm::Event &iEvent, const edm::EventSetup &iSetup, const reco::TrackCollection &Tracks)
Definition: Tau3MuReco.cc:92
Tau3MuReco::~Tau3MuReco
~Tau3MuReco()
Definition: Tau3MuReco.cc:18
Track.h
MuonFwd.h
reco::MuonCollection
std::vector< Muon > MuonCollection
collection of Muon objects
Definition: MuonFwd.h:9
reco::Track
Definition: Track.h:27
Tau3MuReco::check4MuonTrack
bool check4MuonTrack(const reco::Track &track)
Definition: Tau3MuReco.cc:76
Tau3MuReco::m_kTauMassCut
const double m_kTauMassCut
Definition: Tau3MuReco.h:37
Tau3MuReco
Definition: Tau3MuReco.h:13
Tau3MuReco::m_kMuonSourceToken
const edm::EDGetTokenT< reco::MuonCollection > m_kMuonSourceToken
Definition: Tau3MuReco.h:41
edm::ParameterSet
Definition: ParameterSet.h:36
duplicaterechits_cfi.trackCollection
trackCollection
Definition: duplicaterechits_cfi.py:4
Event.h
Tau3MuReco::Tau3MuReco
Tau3MuReco(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
Definition: Tau3MuReco.cc:9
iEvent
int iEvent
Definition: GenABIO.cc:224
gather_cfg.Tracks
Tracks
Definition: gather_cfg.py:251
edm::EventSetup
Definition: EventSetup.h:57
pdwgLeptonRecoSkim_cfi.muonCollection
muonCollection
Definition: pdwgLeptonRecoSkim_cfi.py:7
InputTag.h
Tau3MuReco::getInvariantMass
double getInvariantMass(const reco::TrackCollection *tracks, const double MuonMass=0.106)
Definition: Tau3MuReco.cc:260
Tau3MuReco::m_MuonCollection
reco::MuonCollection * m_MuonCollection
Definition: Tau3MuReco.h:44
Tau3MuReco::m_kTrackSourceToken
const edm::EDGetTokenT< reco::TrackCollection > m_kTrackSourceToken
Definition: Tau3MuReco.h:42
HLT_2018_cff.track
track
Definition: HLT_2018_cff.py:10352
Tau3MuReco::m_kMatchingDeltaR
const double m_kMatchingDeltaR
Definition: Tau3MuReco.h:35
ConsumesCollector.h
ParameterSet.h
Tau3MuReco::m_kTauMass
const double m_kTauMass
Definition: Tau3MuReco.h:38
edm::Event
Definition: Event.h:73
Tau3MuReco::m_TrackCollection
reco::TrackCollection * m_TrackCollection
Definition: Tau3MuReco.h:45
Tau3MuReco::removeIncorrectMuon
bool removeIncorrectMuon()
Definition: Tau3MuReco.cc:237
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
edm::ConsumesCollector
Definition: ConsumesCollector.h:39