CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/TrackingTools/RoadSearchHitAccess/interface/RoadSearchDetIdHelper.h

Go to the documentation of this file.
00001 #ifndef RoadSearch_RoadSearchDetIdHelper_h
00002 #define RoadSearch_RoadSearchDetIdHelper_h
00003 
00004 //
00005 // Package:         TrackingTools/RoadSearchDetIdHelper
00006 // Class:           RoadSearchDetIdHelper
00007 // 
00008 // Description:     helper functions concerning DetIds
00009 //
00010 // Original Author: Oliver Gutsche, gutsche@fnal.gov
00011 // Created:         Sun Jan 28 19:06:20 UTC 2007
00012 //
00013 // $Author: gutsche $
00014 // $Date: 2007/02/16 00:48:20 $
00015 // $Revision: 1.2 $
00016 //
00017 
00018 #include <string>
00019 
00020 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00021 
00022 #include "DataFormats/DetId/interface/DetId.h"
00023 #include "DataFormats/SiStripDetId/interface/StripSubdetector.h"
00024 #include "DataFormats/SiPixelDetId/interface/PixelSubdetector.h"
00025 #include "DataFormats/SiStripDetId/interface/TIBDetId.h"
00026 #include "DataFormats/SiStripDetId/interface/TOBDetId.h"
00027 #include "DataFormats/SiStripDetId/interface/TIDDetId.h"
00028 #include "DataFormats/SiStripDetId/interface/TECDetId.h"
00029 #include "DataFormats/SiPixelDetId/interface/PXBDetId.h"
00030 #include "DataFormats/SiPixelDetId/interface/PXFDetId.h"
00031 
00032 class RoadSearchDetIdHelper {
00033 
00034  public:
00035 
00036   RoadSearchDetIdHelper();
00037 
00038   ~RoadSearchDetIdHelper();
00039 
00040   static std::string Print(const DetId id);
00041 
00042   static bool IsMatched(const DetId id);
00043   
00044   static bool IsGluedRPhi(const DetId id);
00045 
00046   static bool IsSingleRPhi(const DetId id);
00047   
00048   static bool IsStereo(const DetId id);
00049 
00050   static DetId ReturnRPhiId(const DetId id);
00051 
00052   static bool detIdsOnSameLayer(DetId id1, DetId id2);
00053 
00054 };
00055 
00056 #endif