CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/FastSimulation/Event/interface/FSimTrackEqual.h

Go to the documentation of this file.
00001 #ifndef FastSimulation_Event_FSimTrackEqual_H
00002 #define FastSimulation_Event_FSimTrackEqual_H
00003 
00004 class FSimTrackEqual
00005 {
00006  public: 
00007   FSimTrackEqual(int index):trackIndex_(index){};
00008   FSimTrackEqual(const FSimTrack & myTrack):trackIndex_(myTrack.trackId()){};
00009   ~FSimTrackEqual(){;};
00010 
00011   inline bool operator()(const FSimTrack& track) const
00012   {
00013     return(track.id()==trackIndex_);
00014   }
00015  private:
00016   int trackIndex_;
00017 
00018 };
00019 
00020 
00021 #endif