CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CaloMuon.h
Go to the documentation of this file.
1 #ifndef MuonReco_CaloMuon_h
2 #define MuonReco_CaloMuon_h
3 
19 
20 namespace reco {
21 
22  class CaloMuon {
23  public:
24  CaloMuon();
25  virtual ~CaloMuon(){}
26 
28  virtual TrackRef innerTrack() const { return innerTrack_; }
29  virtual TrackRef track() const { return innerTrack(); }
31  virtual void setInnerTrack( const TrackRef & t ) { innerTrack_ = t; }
32  virtual void setTrack( const TrackRef & t ) { setInnerTrack(t); }
34  bool isEnergyValid() const { return energyValid_; }
36  MuonEnergy calEnergy() const { return calEnergy_; }
39 
43  float caloCompatibility() const { return caloCompatibility_; }
45  bool isCaloCompatibilityValid() const { return caloCompatibility_>=0; }
46 
48  int charge() const { return innerTrack_.get()->charge(); }
50  double theta() const { return innerTrack_.get()->theta(); }
52  double p() const { return innerTrack_.get()->p(); }
54  double pt() const { return innerTrack_.get()->pt(); }
56  double px() const { return innerTrack_.get()->px(); }
58  double py() const { return innerTrack_.get()->py(); }
60  double pz() const { return innerTrack_.get()->pz(); }
62  double phi() const { return innerTrack_.get()->phi(); }
64  double eta() const { return innerTrack_.get()->eta(); }
65 
66  private:
74  };
75 
76 }
77 
78 
79 #endif
double px() const
x coordinate of momentum vector
Definition: CaloMuon.h:56
double eta() const
pseudorapidity of momentum vector
Definition: CaloMuon.h:64
double theta() const
polar angle
Definition: CaloMuon.h:50
virtual TrackRef innerTrack() const
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:28
double pt() const
track transverse momentum
Definition: CaloMuon.h:54
bool isEnergyValid() const
energy deposition
Definition: CaloMuon.h:34
double pz() const
z coordinate of momentum vector
Definition: CaloMuon.h:60
MuonEnergy calEnergy_
energy deposition
Definition: CaloMuon.h:70
bool isCaloCompatibilityValid() const
Definition: CaloMuon.h:45
double p() const
momentum vector magnitude
Definition: CaloMuon.h:52
double py() const
y coordinate of momentum vector
Definition: CaloMuon.h:58
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:68
float caloCompatibility_
muon hypothesis compatibility with observer calorimeter energy
Definition: CaloMuon.h:73
MuonEnergy calEnergy() const
get energy deposition information
Definition: CaloMuon.h:36
tuple input
Definition: collect_tpl.py:10
void setCaloCompatibility(float input)
Definition: CaloMuon.h:44
virtual void setInnerTrack(const TrackRef &t)
set reference to Track
Definition: CaloMuon.h:31
void setCalEnergy(const MuonEnergy &calEnergy)
set energy deposition information
Definition: CaloMuon.h:38
virtual TrackRef track() const
Definition: CaloMuon.h:29
bool energyValid_
Definition: CaloMuon.h:71
int charge() const
a bunch of useful accessors
Definition: CaloMuon.h:48
double phi() const
azimuthal angle of momentum vector
Definition: CaloMuon.h:62
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:239
virtual ~CaloMuon()
Definition: CaloMuon.h:25
float caloCompatibility() const
Definition: CaloMuon.h:43
virtual void setTrack(const TrackRef &t)
Definition: CaloMuon.h:32