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

◆ Direction

Enumerator
OutsideIn 
Undefined 
InsideOut 

Definition at line 19 of file MuonTimeExtra.h.

19 { OutsideIn = -1, Undefined = 0, InsideOut = 1 };

Constructor & Destructor Documentation

◆ MuonTimeExtra()

MuonTimeExtra::MuonTimeExtra ( )

Definition at line 4 of file MuonTimeExtra.cc.

4  {
5  nDof_ = 0;
6 
7  inverseBeta_ = 0.;
8  inverseBetaErr_ = 0.;
9 
10  freeInverseBeta_ = 0.;
12 
13  timeAtIpInOut_ = 0.;
14  timeAtIpInOutErr_ = 0.;
15  timeAtIpOutIn_ = 0.;
16  timeAtIpOutInErr_ = 0.;
17 }

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

Member Function Documentation

◆ direction()

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

direction estimation based on time dispersion

Definition at line 54 of file MuonTimeExtra.h.

54  {
55  if (nDof_ < 2)
56  return Undefined;
58  return OutsideIn;
59  return InsideOut;
60  }

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

Referenced by MuonTimingFiller::fillTiming().

◆ freeInverseBeta()

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.

36 { return freeInverseBeta_; };

References freeInverseBeta_.

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

◆ freeInverseBetaErr()

float reco::MuonTimeExtra::freeInverseBetaErr ( ) const
inline

Definition at line 37 of file MuonTimeExtra.h.

37 { return freeInverseBetaErr_; };

References freeInverseBetaErr_.

Referenced by MuonTimingFiller::fillTiming().

◆ inverseBeta()

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.

27 { return inverseBeta_; };

References inverseBeta_.

Referenced by MuonTimingFiller::fillTiming().

◆ inverseBetaErr()

float reco::MuonTimeExtra::inverseBetaErr ( ) const
inline

Definition at line 28 of file MuonTimeExtra.h.

28 { return inverseBetaErr_; };

References inverseBetaErr_.

Referenced by MuonTimingFiller::fillTiming().

◆ nDof()

int reco::MuonTimeExtra::nDof ( ) const
inline

number of measurements used in timing calculation

Definition at line 22 of file MuonTimeExtra.h.

22 { return nDof_; };

References nDof_.

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

◆ setFreeInverseBeta()

void reco::MuonTimeExtra::setFreeInverseBeta ( const float  iBeta)
inline

Definition at line 38 of file MuonTimeExtra.h.

38 { freeInverseBeta_ = iBeta; };

References freeInverseBeta_.

Referenced by MuonTimingFiller::fillTimeFromMeasurements().

◆ setFreeInverseBetaErr()

void reco::MuonTimeExtra::setFreeInverseBetaErr ( const float  iBetaErr)
inline

Definition at line 39 of file MuonTimeExtra.h.

39 { freeInverseBetaErr_ = iBetaErr; };

References freeInverseBetaErr_.

Referenced by MuonTimingFiller::fillTimeFromMeasurements().

◆ setInverseBeta()

void reco::MuonTimeExtra::setInverseBeta ( const float  iBeta)
inline

Definition at line 29 of file MuonTimeExtra.h.

29 { inverseBeta_ = iBeta; };

References inverseBeta_.

Referenced by MuonTimingFiller::fillTimeFromMeasurements().

◆ setInverseBetaErr()

void reco::MuonTimeExtra::setInverseBetaErr ( const float  iBetaErr)
inline

Definition at line 30 of file MuonTimeExtra.h.

30 { inverseBetaErr_ = iBetaErr; };

References inverseBetaErr_.

Referenced by MuonTimingFiller::fillTimeFromMeasurements().

◆ setNDof()

void reco::MuonTimeExtra::setNDof ( const int  nDof)
inline

Definition at line 23 of file MuonTimeExtra.h.

23 { nDof_ = nDof; };

References nDof(), and nDof_.

Referenced by MuonTimingFiller::fillTimeFromMeasurements().

◆ setTimeAtIpInOut()

void reco::MuonTimeExtra::setTimeAtIpInOut ( const float  timeIp)
inline

Definition at line 45 of file MuonTimeExtra.h.

45 { timeAtIpInOut_ = timeIp; };

References timeAtIpInOut_.

Referenced by MuonTimingFiller::fillTimeFromMeasurements().

◆ setTimeAtIpInOutErr()

void reco::MuonTimeExtra::setTimeAtIpInOutErr ( const float  timeErr)
inline

Definition at line 46 of file MuonTimeExtra.h.

46 { timeAtIpInOutErr_ = timeErr; };

References timeAtIpInOutErr_.

Referenced by MuonTimingFiller::fillTimeFromMeasurements().

◆ setTimeAtIpOutIn()

void reco::MuonTimeExtra::setTimeAtIpOutIn ( const float  timeIp)
inline

Definition at line 50 of file MuonTimeExtra.h.

50 { timeAtIpOutIn_ = timeIp; };

References timeAtIpOutIn_.

Referenced by MuonTimingFiller::fillTimeFromMeasurements().

◆ setTimeAtIpOutInErr()

void reco::MuonTimeExtra::setTimeAtIpOutInErr ( const float  timeErr)
inline

Definition at line 51 of file MuonTimeExtra.h.

51 { timeAtIpOutInErr_ = timeErr; };

References timeAtIpOutInErr_.

Referenced by MuonTimingFiller::fillTimeFromMeasurements().

◆ timeAtIpInOut()

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.

43 { return timeAtIpInOut_; };

References timeAtIpInOut_.

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

◆ timeAtIpInOutErr()

float reco::MuonTimeExtra::timeAtIpInOutErr ( ) const
inline

Definition at line 44 of file MuonTimeExtra.h.

44 { return timeAtIpInOutErr_; };

References timeAtIpInOutErr_.

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

◆ timeAtIpOutIn()

float reco::MuonTimeExtra::timeAtIpOutIn ( ) const
inline

b) particle is moving from outside in

Definition at line 48 of file MuonTimeExtra.h.

48 { return timeAtIpOutIn_; };

References timeAtIpOutIn_.

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

◆ timeAtIpOutInErr()

float reco::MuonTimeExtra::timeAtIpOutInErr ( ) const
inline

Definition at line 49 of file MuonTimeExtra.h.

49 { return timeAtIpOutInErr_; };

References timeAtIpOutInErr_.

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

Member Data Documentation

◆ freeInverseBeta_

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().

◆ freeInverseBetaErr_

float reco::MuonTimeExtra::freeInverseBetaErr_
private

Definition at line 72 of file MuonTimeExtra.h.

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

◆ inverseBeta_

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().

◆ inverseBetaErr_

float reco::MuonTimeExtra::inverseBetaErr_
private

Definition at line 68 of file MuonTimeExtra.h.

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

◆ nDof_

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().

◆ timeAtIpInOut_

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().

◆ timeAtIpInOutErr_

float reco::MuonTimeExtra::timeAtIpInOutErr_
private

Definition at line 76 of file MuonTimeExtra.h.

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

◆ timeAtIpOutIn_

float reco::MuonTimeExtra::timeAtIpOutIn_
private

Definition at line 77 of file MuonTimeExtra.h.

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

◆ timeAtIpOutInErr_

float reco::MuonTimeExtra::timeAtIpOutInErr_
private

Definition at line 78 of file MuonTimeExtra.h.

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

reco::MuonTimeExtra::Undefined
Definition: MuonTimeExtra.h:19
reco::MuonTimeExtra::timeAtIpInOutErr_
float timeAtIpInOutErr_
Definition: MuonTimeExtra.h:76
reco::MuonTimeExtra::timeAtIpInOut_
float timeAtIpInOut_
time of arrival at the IP for the Beta=1 hypothesis
Definition: MuonTimeExtra.h:75
reco::MuonTimeExtra::freeInverseBeta_
float freeInverseBeta_
unconstrained 1/beta (time is free)
Definition: MuonTimeExtra.h:71
reco::MuonTimeExtra::nDof
int nDof() const
number of measurements used in timing calculation
Definition: MuonTimeExtra.h:22
reco::MuonTimeExtra::inverseBeta_
float inverseBeta_
1/beta for prompt particle hypothesis
Definition: MuonTimeExtra.h:67
reco::MuonTimeExtra::InsideOut
Definition: MuonTimeExtra.h:19
reco::MuonTimeExtra::OutsideIn
Definition: MuonTimeExtra.h:19
reco::MuonTimeExtra::freeInverseBetaErr_
float freeInverseBetaErr_
Definition: MuonTimeExtra.h:72
reco::MuonTimeExtra::nDof_
int nDof_
number of measurements used in timing calculation
Definition: MuonTimeExtra.h:64
reco::MuonTimeExtra::inverseBetaErr_
float inverseBetaErr_
Definition: MuonTimeExtra.h:68
reco::MuonTimeExtra::timeAtIpOutInErr_
float timeAtIpOutInErr_
Definition: MuonTimeExtra.h:78
reco::MuonTimeExtra::timeAtIpOutIn_
float timeAtIpOutIn_
Definition: MuonTimeExtra.h:77