Go to the documentation of this file.00001 #ifndef TRACKINGOBJECTS_STRIPDIGISIMLINK_H
00002 #define TRACKINGOBJECTS_STRIPDIGISIMLINK_H
00003
00004 #include "boost/cstdint.hpp"
00005 #include "SimDataFormats/EncodedEventId/interface/EncodedEventId.h"
00006
00007 class StripDigiSimLink {
00008 public:
00009 StripDigiSimLink(unsigned int ch, unsigned int tkId, unsigned int counter, EncodedEventId e,float a ):
00010 chan(ch),simTkId(tkId), CFpos(counter), eId(e) , fract(a) {;}
00011
00012 StripDigiSimLink(unsigned int ch, unsigned int tkId, EncodedEventId e,float a ):
00013 chan(ch),simTkId(tkId), CFpos(0), eId(e) , fract(a) {;}
00014
00015 StripDigiSimLink():chan(0),simTkId(0),CFpos(0),eId(0), fract(0) {;}
00016
00017 ~StripDigiSimLink(){;}
00018
00019 unsigned int channel() const {return chan;}
00020 unsigned int SimTrackId() const {return simTkId;}
00021 unsigned int CFposition() const {return CFpos;}
00022 EncodedEventId eventId() const {return eId;}
00023 float fraction() const {return fract;}
00024
00025 inline bool operator< ( const StripDigiSimLink& other ) const { return channel() < other.channel(); }
00026
00027 private:
00028 unsigned int chan;
00029 unsigned int simTkId;
00030 unsigned int CFpos;
00031 EncodedEventId eId;
00032 float fract;
00033 };
00034 #endif
00035
00036
00037