CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Tau3MuReco.h
Go to the documentation of this file.
1 #ifndef TAU3MURECO_H
2 #define TAU3MURECO_H
3 
7 
11 
13 {
14  public:
15  Tau3MuReco(const edm::ParameterSet& iConfig);
16  ~Tau3MuReco();
17 
18  bool doTau3MuReco(const edm::Event& iEvent, const edm::EventSetup& iSetup, reco::MuonCollection* muonCollection, reco::TrackCollection* trackCollection);
19 
20  private:
21 
22  bool check4MuonTrack(const reco::Track& track); //compares track with reconstructed muons and return true if they are equal
23  bool find3rdTrack(const edm::Event& iEvent, const edm::EventSetup& iSetup, const reco::TrackCollection& Tracks); //try to find a 3rd muon in tracks, if this was not detected as a muon
24  bool findCorrectPairing(); //find the correct 3 muons, if more than 3 muons has been reconstructed
25  double getInvariantMass(const reco::TrackCollection* tracks, const double MuonMass=0.106);
26  double getDeltaR(const reco::Track& track1, const reco::Track& track2);
27  bool removeIncorrectMuon(); //try to remove one muon, which seems to come not from a tau->3Mu decay
28 
29  const double m_kMatchingDeltaR;
30  const double m_kMatchingPt;
31  const double m_kTauMassCut;
32  const double m_kTauMass;
33  const double m_kMuonMass;
34 
37 
40 };
41 
42 #endif
double getDeltaR(const reco::Track &track1, const reco::Track &track2)
Definition: Tau3MuReco.cc:308
double getInvariantMass(const reco::TrackCollection *tracks, const double MuonMass=0.106)
Definition: Tau3MuReco.cc:284
const edm::InputTag m_kTrackSource
Definition: Tau3MuReco.h:36
const double m_kTauMass
Definition: Tau3MuReco.h:32
bool find3rdTrack(const edm::Event &iEvent, const edm::EventSetup &iSetup, const reco::TrackCollection &Tracks)
Definition: Tau3MuReco.cc:108
const double m_kMatchingPt
Definition: Tau3MuReco.h:30
reco::TrackCollection * m_TrackCollection
Definition: Tau3MuReco.h:39
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:10
Tau3MuReco(const edm::ParameterSet &iConfig)
Definition: Tau3MuReco.cc:9
bool findCorrectPairing()
Definition: Tau3MuReco.cc:216
std::vector< Muon > MuonCollection
collection of Muon objects
Definition: MuonFwd.h:9
int iEvent
Definition: GenABIO.cc:243
const double m_kMatchingDeltaR
Definition: Tau3MuReco.h:29
const edm::InputTag m_kMuonSource
Definition: Tau3MuReco.h:35
bool doTau3MuReco(const edm::Event &iEvent, const edm::EventSetup &iSetup, reco::MuonCollection *muonCollection, reco::TrackCollection *trackCollection)
Definition: Tau3MuReco.cc:24
tuple tracks
Definition: testEve_cfg.py:39
const double m_kTauMassCut
Definition: Tau3MuReco.h:31
const double MuonMass
const double m_kMuonMass
Definition: Tau3MuReco.h:33
bool removeIncorrectMuon()
Definition: Tau3MuReco.cc:259
reco::MuonCollection * m_MuonCollection
Definition: Tau3MuReco.h:38
bool check4MuonTrack(const reco::Track &track)
Definition: Tau3MuReco.cc:86