CMS 3D CMS Logo

CaloMuon.h
Go to the documentation of this file.
1 #ifndef MuonReco_CaloMuon_h
2 #define MuonReco_CaloMuon_h
3 
18 
19 namespace reco {
20 
21  class CaloMuon {
22  public:
23  CaloMuon();
24  virtual ~CaloMuon(){}
25 
27  virtual TrackRef innerTrack() const { return innerTrack_; }
28  virtual TrackRef track() const { return innerTrack(); }
30  virtual void setInnerTrack( const TrackRef & t ) { innerTrack_ = t; }
31  virtual void setTrack( const TrackRef & t ) { setInnerTrack(t); }
33  bool isEnergyValid() const { return energyValid_; }
35  MuonEnergy calEnergy() const { return calEnergy_; }
38 
42  float caloCompatibility() const { return caloCompatibility_; }
44  bool isCaloCompatibilityValid() const { return caloCompatibility_>=0; }
45 
47  int charge() const { return innerTrack_.get()->charge(); }
49  double theta() const { return innerTrack_.get()->theta(); }
51  double p() const { return innerTrack_.get()->p(); }
53  double pt() const { return innerTrack_.get()->pt(); }
55  double px() const { return innerTrack_.get()->px(); }
57  double py() const { return innerTrack_.get()->py(); }
59  double pz() const { return innerTrack_.get()->pz(); }
61  double phi() const { return innerTrack_.get()->phi(); }
63  double eta() const { return innerTrack_.get()->eta(); }
64 
65  private:
73  };
74 
75 }
76 
77 
78 #endif
double px() const
x coordinate of momentum vector
Definition: CaloMuon.h:55
double eta() const
pseudorapidity of momentum vector
Definition: CaloMuon.h:63
double theta() const
polar angle
Definition: CaloMuon.h:49
virtual TrackRef innerTrack() const
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:27
double pt() const
track transverse momentum
Definition: CaloMuon.h:53
bool isEnergyValid() const
energy deposition
Definition: CaloMuon.h:33
double pz() const
z coordinate of momentum vector
Definition: CaloMuon.h:59
static std::string const input
Definition: EdmProvDump.cc:44
MuonEnergy calEnergy_
energy deposition
Definition: CaloMuon.h:69
bool isCaloCompatibilityValid() const
Definition: CaloMuon.h:44
double p() const
momentum vector magnitude
Definition: CaloMuon.h:51
double py() const
y coordinate of momentum vector
Definition: CaloMuon.h:57
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:67
float caloCompatibility_
muon hypothesis compatibility with observer calorimeter energy
Definition: CaloMuon.h:72
MuonEnergy calEnergy() const
get energy deposition information
Definition: CaloMuon.h:35
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:244
void setCaloCompatibility(float input)
Definition: CaloMuon.h:43
virtual void setInnerTrack(const TrackRef &t)
set reference to Track
Definition: CaloMuon.h:30
void setCalEnergy(const MuonEnergy &calEnergy)
set energy deposition information
Definition: CaloMuon.h:37
virtual TrackRef track() const
Definition: CaloMuon.h:28
bool energyValid_
Definition: CaloMuon.h:70
fixed size matrix
int charge() const
a bunch of useful accessors
Definition: CaloMuon.h:47
double phi() const
azimuthal angle of momentum vector
Definition: CaloMuon.h:61
virtual ~CaloMuon()
Definition: CaloMuon.h:24
float caloCompatibility() const
Definition: CaloMuon.h:42
virtual void setTrack(const TrackRef &t)
Definition: CaloMuon.h:31