CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
reco::MuonTimeExtra Class Reference

#include <DataFormats/MuonReco/interface/MuonTimeExtra.h>

Public Types

enum  Direction { OutsideIn = -1, Undefined = 0, InsideOut = 1 }
 

Public Member Functions

Direction direction () const
 direction estimation based on time dispersion More...
 
float freeInverseBeta () const
 
float freeInverseBetaErr () const
 
float inverseBeta () const
 
float inverseBetaErr () const
 
 MuonTimeExtra ()
 
int nDof () const
 number of measurements used in timing calculation More...
 
void setFreeInverseBeta (const float iBeta)
 
void setFreeInverseBetaErr (const float iBetaErr)
 
void setInverseBeta (const float iBeta)
 
void setInverseBetaErr (const float iBetaErr)
 
void setNDof (const int nDof)
 
void setTimeAtIpInOut (const float timeIp)
 
void setTimeAtIpInOutErr (const float timeErr)
 
void setTimeAtIpOutIn (const float timeIp)
 
void setTimeAtIpOutInErr (const float timeErr)
 
float timeAtIpInOut () const
 
float timeAtIpInOutErr () const
 
float timeAtIpOutIn () const
 b) particle is moving from outside in More...
 
float timeAtIpOutInErr () const
 

Private Attributes

float freeInverseBeta_
 unconstrained 1/beta (time is free) More...
 
float freeInverseBetaErr_
 
float inverseBeta_
 1/beta for prompt particle hypothesis More...
 
float inverseBetaErr_
 
int nDof_
 number of measurements used in timing calculation More...
 
float timeAtIpInOut_
 time of arrival at the IP for the Beta=1 hypothesis More...
 
float timeAtIpInOutErr_
 
float timeAtIpOutIn_
 
float timeAtIpOutInErr_
 

Detailed Description

A class holding timing information calculated for a muon.

Author
Piotr Traczyk, CERN

Definition at line 15 of file MuonTimeExtra.h.

Member Enumeration Documentation

Enumerator
OutsideIn 
Undefined 
InsideOut 

Definition at line 19 of file MuonTimeExtra.h.

Constructor & Destructor Documentation

MuonTimeExtra::MuonTimeExtra ( )

Definition at line 4 of file MuonTimeExtra.cc.

References freeInverseBeta_, freeInverseBetaErr_, inverseBeta_, inverseBetaErr_, nDof_, timeAtIpInOut_, timeAtIpInOutErr_, timeAtIpOutIn_, and timeAtIpOutInErr_.

5 {
6  nDof_=0;
7 
8  inverseBeta_=0.;
10 
13 
14  timeAtIpInOut_=0.;
16  timeAtIpOutIn_=0.;
18 }
float inverseBeta_
1/beta for prompt particle hypothesis
Definition: MuonTimeExtra.h:67
float timeAtIpInOut_
time of arrival at the IP for the Beta=1 hypothesis
Definition: MuonTimeExtra.h:75
float freeInverseBeta_
unconstrained 1/beta (time is free)
Definition: MuonTimeExtra.h:71
int nDof_
number of measurements used in timing calculation
Definition: MuonTimeExtra.h:64

Member Function Documentation

Direction reco::MuonTimeExtra::direction ( ) const
inline

direction estimation based on time dispersion

Definition at line 54 of file MuonTimeExtra.h.

References InsideOut, nDof_, OutsideIn, timeAtIpInOutErr_, timeAtIpOutInErr_, and Undefined.

Referenced by MuonTimingFiller::fillTiming().

55  {
56  if (nDof_<2) return Undefined;
58  return InsideOut;
59  }
int nDof_
number of measurements used in timing calculation
Definition: MuonTimeExtra.h:64
float reco::MuonTimeExtra::freeInverseBeta ( ) const
inline

unconstrained 1/beta (time is free) Sign convention: positive - outward moving particle negative - inward moving particle

Definition at line 36 of file MuonTimeExtra.h.

References freeInverseBeta_.

Referenced by BeamHaloAnalyzer::analyze(), CSCHaloAlgo::Calculate(), and MuonTimingFiller::fillTiming().

36 { return freeInverseBeta_; };
float freeInverseBeta_
unconstrained 1/beta (time is free)
Definition: MuonTimeExtra.h:71
float reco::MuonTimeExtra::freeInverseBetaErr ( ) const
inline

Definition at line 37 of file MuonTimeExtra.h.

References freeInverseBetaErr_.

Referenced by MuonTimingFiller::fillTiming().

37 { return freeInverseBetaErr_; };
float reco::MuonTimeExtra::inverseBeta ( ) const
inline

1/beta for prompt particle hypothesis (time is constraint to the bunch crossing time)

Definition at line 27 of file MuonTimeExtra.h.

References inverseBeta_.

Referenced by MuonTimingFiller::fillTiming().

27 { return inverseBeta_; };
float inverseBeta_
1/beta for prompt particle hypothesis
Definition: MuonTimeExtra.h:67
float reco::MuonTimeExtra::inverseBetaErr ( ) const
inline

Definition at line 28 of file MuonTimeExtra.h.

References inverseBetaErr_.

Referenced by MuonTimingFiller::fillTiming().

28 { return inverseBetaErr_; };
int reco::MuonTimeExtra::nDof ( ) const
inline

number of measurements used in timing calculation

Definition at line 22 of file MuonTimeExtra.h.

References nDof_.

Referenced by MuonIdVal::analyze(), MuonTimingFiller::fillTiming(), MuonIdProducer::produce(), and setNDof().

22 { return nDof_; };
int nDof_
number of measurements used in timing calculation
Definition: MuonTimeExtra.h:64
void reco::MuonTimeExtra::setFreeInverseBeta ( const float  iBeta)
inline

Definition at line 38 of file MuonTimeExtra.h.

References freeInverseBeta_.

Referenced by MuonTimingFiller::fillTimeFromMeasurements().

38 { freeInverseBeta_=iBeta; };
float freeInverseBeta_
unconstrained 1/beta (time is free)
Definition: MuonTimeExtra.h:71
void reco::MuonTimeExtra::setFreeInverseBetaErr ( const float  iBetaErr)
inline

Definition at line 39 of file MuonTimeExtra.h.

References freeInverseBetaErr_.

Referenced by MuonTimingFiller::fillTimeFromMeasurements().

39 { freeInverseBetaErr_=iBetaErr; };
void reco::MuonTimeExtra::setInverseBeta ( const float  iBeta)
inline

Definition at line 29 of file MuonTimeExtra.h.

References inverseBeta_.

Referenced by MuonTimingFiller::fillTimeFromMeasurements().

29 { inverseBeta_=iBeta; };
float inverseBeta_
1/beta for prompt particle hypothesis
Definition: MuonTimeExtra.h:67
void reco::MuonTimeExtra::setInverseBetaErr ( const float  iBetaErr)
inline

Definition at line 30 of file MuonTimeExtra.h.

References inverseBetaErr_.

Referenced by MuonTimingFiller::fillTimeFromMeasurements().

30 { inverseBetaErr_=iBetaErr; };
void reco::MuonTimeExtra::setNDof ( const int  nDof)
inline

Definition at line 23 of file MuonTimeExtra.h.

References nDof(), and nDof_.

Referenced by MuonTimingFiller::fillTimeFromMeasurements().

23 { nDof_=nDof; };
int nDof() const
number of measurements used in timing calculation
Definition: MuonTimeExtra.h:22
int nDof_
number of measurements used in timing calculation
Definition: MuonTimeExtra.h:64
void reco::MuonTimeExtra::setTimeAtIpInOut ( const float  timeIp)
inline

Definition at line 45 of file MuonTimeExtra.h.

References timeAtIpInOut_.

Referenced by MuonTimingFiller::fillTimeFromMeasurements().

45 { timeAtIpInOut_=timeIp; };
float timeAtIpInOut_
time of arrival at the IP for the Beta=1 hypothesis
Definition: MuonTimeExtra.h:75
void reco::MuonTimeExtra::setTimeAtIpInOutErr ( const float  timeErr)
inline

Definition at line 46 of file MuonTimeExtra.h.

References timeAtIpInOutErr_.

Referenced by MuonTimingFiller::fillTimeFromMeasurements().

46 { timeAtIpInOutErr_=timeErr; };
void reco::MuonTimeExtra::setTimeAtIpOutIn ( const float  timeIp)
inline

Definition at line 50 of file MuonTimeExtra.h.

References timeAtIpOutIn_.

Referenced by MuonTimingFiller::fillTimeFromMeasurements().

50 { timeAtIpOutIn_=timeIp; };
void reco::MuonTimeExtra::setTimeAtIpOutInErr ( const float  timeErr)
inline

Definition at line 51 of file MuonTimeExtra.h.

References timeAtIpOutInErr_.

Referenced by MuonTimingFiller::fillTimeFromMeasurements().

51 { timeAtIpOutInErr_=timeErr; };
float reco::MuonTimeExtra::timeAtIpInOut ( ) const
inline

time of arrival at the IP for the Beta=1 hypothesis a) particle is moving from inside out

Definition at line 43 of file MuonTimeExtra.h.

References timeAtIpInOut_.

Referenced by MuonIdVal::analyze(), MuonTimingFiller::fillTiming(), and MuonIdProducer::produce().

43 { return timeAtIpInOut_; };
float timeAtIpInOut_
time of arrival at the IP for the Beta=1 hypothesis
Definition: MuonTimeExtra.h:75
float reco::MuonTimeExtra::timeAtIpInOutErr ( ) const
inline
float reco::MuonTimeExtra::timeAtIpOutIn ( ) const
inline

b) particle is moving from outside in

Definition at line 48 of file MuonTimeExtra.h.

References timeAtIpOutIn_.

Referenced by MuonIdVal::analyze(), MuonTimingFiller::fillTiming(), and MuonIdProducer::produce().

48 { return timeAtIpOutIn_; };
float reco::MuonTimeExtra::timeAtIpOutInErr ( ) const
inline

Member Data Documentation

float reco::MuonTimeExtra::freeInverseBeta_
private

unconstrained 1/beta (time is free)

Definition at line 71 of file MuonTimeExtra.h.

Referenced by freeInverseBeta(), MuonTimeExtra(), and setFreeInverseBeta().

float reco::MuonTimeExtra::freeInverseBetaErr_
private

Definition at line 72 of file MuonTimeExtra.h.

Referenced by freeInverseBetaErr(), MuonTimeExtra(), and setFreeInverseBetaErr().

float reco::MuonTimeExtra::inverseBeta_
private

1/beta for prompt particle hypothesis

Definition at line 67 of file MuonTimeExtra.h.

Referenced by inverseBeta(), MuonTimeExtra(), and setInverseBeta().

float reco::MuonTimeExtra::inverseBetaErr_
private

Definition at line 68 of file MuonTimeExtra.h.

Referenced by inverseBetaErr(), MuonTimeExtra(), and setInverseBetaErr().

int reco::MuonTimeExtra::nDof_
private

number of measurements used in timing calculation

Definition at line 64 of file MuonTimeExtra.h.

Referenced by direction(), MuonTimeExtra(), nDof(), and setNDof().

float reco::MuonTimeExtra::timeAtIpInOut_
private

time of arrival at the IP for the Beta=1 hypothesis

Definition at line 75 of file MuonTimeExtra.h.

Referenced by MuonTimeExtra(), setTimeAtIpInOut(), and timeAtIpInOut().

float reco::MuonTimeExtra::timeAtIpInOutErr_
private

Definition at line 76 of file MuonTimeExtra.h.

Referenced by direction(), MuonTimeExtra(), setTimeAtIpInOutErr(), and timeAtIpInOutErr().

float reco::MuonTimeExtra::timeAtIpOutIn_
private

Definition at line 77 of file MuonTimeExtra.h.

Referenced by MuonTimeExtra(), setTimeAtIpOutIn(), and timeAtIpOutIn().

float reco::MuonTimeExtra::timeAtIpOutInErr_
private

Definition at line 78 of file MuonTimeExtra.h.

Referenced by direction(), MuonTimeExtra(), setTimeAtIpOutInErr(), and timeAtIpOutInErr().