LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CellIDEncoder.cc
Go to the documentation of this file.
1 #include "UTIL/CellIDEncoder.h"
2 #include "lcio.h"
3 
4 using EVENT::LCIO ;
5 
6 namespace UTIL{
7 
8 
14  template<> int CellIDEncoder_cellID1Bit<EVENT::SimCalorimeterHit>() { return LCIO::CHBIT_ID1 ; }
15 
17  template<> int CellIDEncoder_cellID1Bit<EVENT::RawCalorimeterHit>() { return LCIO::RCHBIT_ID1 ; }
18 
20  template<> int CellIDEncoder_cellID1Bit<EVENT::CalorimeterHit>() { return LCIO::RCHBIT_ID1 ; }
21 
23  template<> int CellIDEncoder_cellID1Bit<EVENT::TrackerData>() { return LCIO::TRAWBIT_ID1 ; }
24 
26  template<> int CellIDEncoder_cellID1Bit<EVENT::TrackerPulse>() { return LCIO::TRAWBIT_ID1 ; }
27 
29  template<> int CellIDEncoder_cellID1Bit<EVENT::TrackerRawData>() { return LCIO::TRAWBIT_ID1 ; }
30 
32  template<> int CellIDEncoder_cellID1Bit<EVENT::SimTrackerHit>() { return LCIO::THBIT_ID1 ; }
33 
35  template<> int CellIDEncoder_cellID1Bit<EVENT::TrackerHit>() { return LCIO::RTHBIT_ID1 ; }
36 
38  template<> int CellIDEncoder_cellID1Bit<EVENT::TrackerHitPlane>() { return LCIO::RTHPBIT_ID1 ; }
39 
41  template<> int CellIDEncoder_cellID1Bit<EVENT::TrackerHitZCylinder>() { return LCIO::RTHZBIT_ID1 ; }
42 
43 // /** Specialization for SimTrackerHits that have only one cellID */
44 // // template<> void CellIDEncoder<IMPL::SimTrackerHitImpl>::setCellID( IMPL::SimTrackerHitImpl* hit) {
45 // template<>
46 // void CellIDEncoder_setCellID<IMPL::SimTrackerHitImpl>( IMPL::SimTrackerHitImpl* hit,
47 // int low, int high){
48 // hit->setCellID( low ) ;
49 // }
50 //
51 
52 }