/data3/calcul/jacquem/working_dir/Micromegas/micromegasFrameWork/lcio/src/cpp/src/UTIL/CellIDEncoder.cc

Go to the documentation of this file.
00001 #include "UTIL/CellIDEncoder.h"
00002 
00003 namespace UTIL{
00004 
00005 
00006   /** Helper function that returns the bit for cellid1 through template specialization
00007    *  or -1 if no cellid1 exists. 
00008    */
00009 
00010   /** specialization that returns the proper bit for the second cellid */
00011   template<> int CellIDEncoder_cellID1Bit<EVENT::SimCalorimeterHit>() {  return LCIO::CHBIT_ID1 ; }
00012 
00013   /** specialization that returns the proper bit for the second cellid */
00014   template<> int CellIDEncoder_cellID1Bit<EVENT::RawCalorimeterHit>() {  return LCIO::RCHBIT_ID1 ; }
00015 
00016   /** specialization that returns the proper bit for the second cellid */
00017   template<> int CellIDEncoder_cellID1Bit<EVENT::CalorimeterHit>() {  return LCIO::RCHBIT_ID1 ; }
00018 
00019   /** specialization that returns the proper bit for the second cellid */
00020   template<> int CellIDEncoder_cellID1Bit<EVENT::TrackerData>() {  return LCIO::TRAWBIT_ID1 ; }
00021 
00022   /** specialization that returns the proper bit for the second cellid */
00023   template<> int CellIDEncoder_cellID1Bit<EVENT::TrackerPulse>() {  return LCIO::TRAWBIT_ID1 ; }
00024 
00025   /** specialization that returns the proper bit for the second cellid */
00026   template<> int CellIDEncoder_cellID1Bit<EVENT::TrackerRawData>() {  return LCIO::TRAWBIT_ID1 ; }
00027   
00028   /** Specialization for SimTrackerHits that have only one cellID */
00029   //  template<> void CellIDEncoder<IMPL::SimTrackerHitImpl>::setCellID( IMPL::SimTrackerHitImpl* hit) {
00030   template<> 
00031   void CellIDEncoder_setCellID<IMPL::SimTrackerHitImpl>( IMPL::SimTrackerHitImpl* hit, 
00032                                                          int low, int high){
00033     hit->setCellID( low ) ;
00034   }
00035 
00036 
00037 }

Generated on Mon Jan 7 13:15:21 2013 for MicromegasFramework by  doxygen 1.4.7