CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonDetRecHitMixer.cc
Go to the documentation of this file.
2 
9 
13 
14 //-------------------------------------------------------------------------------
15 // define 'getDetIds' functions used for different types of recHits
16 //-------------------------------------------------------------------------------
17 
18 template <typename T1, typename T2>
19 uint32_t MuonDetRecHitMixer<T1,T2>::getRawDetId(const T2& recHit)
20 {
21  assert(0); // CV: make sure general function never gets called;
22  // always use template specializations
23 }
24 
25 
26 template <>
28 {
29  return recHit.cscDetId().rawId();
30 }
31 
32 template <>
34 {
35  return recHit.geographicalId().rawId();
36 }
37 
38 template <>
40 {
41  return recHit.rpcId().rawId();
42 }
43 
45 
49 
50 
51 
MuonDetRecHitMixer< RPCDetId, RPCRecHit > RPCRecHitMixer
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
uint32_t getRawDetId(const T2 &)
MuonDetRecHitMixer< DTLayerId, DTRecHit1DPair > DTRecHitMixer
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
RPCDetId rpcId() const
Return the rpcId.
Definition: RPCRecHit.h:97
virtual DetId geographicalId() const
Return the detId of the Det (a DTLayer).
MuonDetRecHitMixer< CSCDetId, CSCRecHit2D > CSCRecHitMixer