CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/SimDataFormats/TrackerDigiSimLink/interface/PixelDigiSimLink.h

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