CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/DataFormats/MuonReco/interface/MuonTime.h

Go to the documentation of this file.
00001 #ifndef MuonReco_MuonTime_h
00002 #define MuonReco_MuonTime_h
00003 
00004 
00005 namespace reco {
00006     struct MuonTime {
00007        enum Direction { OutsideIn = -1, Undefined = 0, InsideOut = 1 };
00008             
00010        int nDof;
00011        
00014        float timeAtIpInOut;
00015        float timeAtIpInOutErr;
00017        float timeAtIpOutIn;
00018        float timeAtIpOutInErr;
00019        
00021        Direction direction() const
00022          {
00023             if (nDof<2) return Undefined;
00024             if ( timeAtIpInOutErr > timeAtIpOutInErr ) return OutsideIn;
00025             return InsideOut;
00026          }
00027        
00028        
00029        MuonTime():
00030        nDof(0), timeAtIpInOut(0), timeAtIpInOutErr(0), timeAtIpOutIn(0), timeAtIpOutInErr(0)
00031          {}
00032     };
00033 }
00034 #endif