CMS 3D CMS Logo

MuonTime.h
Go to the documentation of this file.
1 #ifndef MuonReco_MuonTime_h
2 #define MuonReco_MuonTime_h
3 
4 namespace reco {
5  struct MuonTime {
6  enum Direction { OutsideIn = -1, Undefined = 0, InsideOut = 1 };
7 
9  int nDof;
10 
18 
20  Direction direction() const {
21  if (nDof < 2)
22  return Undefined;
23  if (timeAtIpInOutErr > timeAtIpOutInErr)
24  return OutsideIn;
25  return InsideOut;
26  }
27 
28  MuonTime() : nDof(0), timeAtIpInOut(0), timeAtIpInOutErr(0), timeAtIpOutIn(0), timeAtIpOutInErr(0) {}
29  };
30 } // namespace reco
31 #endif
float timeAtIpOutInErr
Definition: MuonTime.h:17
Direction direction() const
direction estimation based on time dispersion
Definition: MuonTime.h:20
float timeAtIpInOutErr
Definition: MuonTime.h:14
float timeAtIpOutIn
b) particle is moving from outside in
Definition: MuonTime.h:16
int nDof
number of muon stations used
Definition: MuonTime.h:9
fixed size matrix
float timeAtIpInOut
Definition: MuonTime.h:13