CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
CSCLayerInfo< TYPE > Class Template Reference

#include <CSCLayerInfo.h>

Public Member Functions

void addComponent (const TYPE digi)
 
void addComponent (const PSimHit simHit)
 
void clear ()
 
 CSCLayerInfo ()
 
CSCDetId getId () const
 
std::vector< TYPE > getRecDigis () const
 
std::vector< PSimHitgetSimHits () const
 
void setId (const CSCDetId id)
 
 ~CSCLayerInfo ()
 

Private Attributes

std::vector< TYPE > RecDigis
 
std::vector< PSimHitSimHits
 
CSCDetId theLayerId
 

Detailed Description

template<class TYPE>
class CSCLayerInfo< TYPE >

Auxiliary class containing vectors of comparator or wire RecDigis and their matched SimHits for given Layer.

Author
Jason Mumford, Slava Valuev 21 August 2001 Porting from ORCA by S. Valuev in September 2006.

Definition at line 21 of file CSCLayerInfo.h.

Constructor & Destructor Documentation

template<class TYPE >
CSCLayerInfo< TYPE >::CSCLayerInfo ( )

default constructor

Definition at line 57 of file CSCLayerInfo.h.

References createJobs::tmp.

57  {
58  CSCDetId tmp; // nullify theLayerId.
59  theLayerId = tmp;
60  RecDigis.reserve(3); // we may have up to three RecDigis per layer.
61  SimHits.reserve(3);
62 }
std::vector< TYPE > RecDigis
Definition: CSCLayerInfo.h:52
std::vector< PSimHit > SimHits
Definition: CSCLayerInfo.h:53
CSCDetId theLayerId
Definition: CSCLayerInfo.h:51
tmp
align.sh
Definition: createJobs.py:716
template<class TYPE >
CSCLayerInfo< TYPE >::~CSCLayerInfo ( )

destructor

Definition at line 65 of file CSCLayerInfo.h.

References clear().

65  {
66  clear();
67 }
void clear()
Definition: CSCLayerInfo.h:70

Member Function Documentation

template<class TYPE>
void CSCLayerInfo< TYPE >::addComponent ( const TYPE  digi)
inline

fills RecDigi

Definition at line 36 of file CSCLayerInfo.h.

References CSCLayerInfo< TYPE >::RecDigis.

36 { RecDigis.push_back(digi); }
std::vector< TYPE > RecDigis
Definition: CSCLayerInfo.h:52
template<class TYPE>
void CSCLayerInfo< TYPE >::addComponent ( const PSimHit  simHit)
inline

fills SimHit

Definition at line 39 of file CSCLayerInfo.h.

References CSCLayerInfo< TYPE >::SimHits.

39 { SimHits.push_back(simHit); }
std::vector< PSimHit > SimHits
Definition: CSCLayerInfo.h:53
template<class TYPE >
void CSCLayerInfo< TYPE >::clear ( void  )

clears LayerInfo

Definition at line 70 of file CSCLayerInfo.h.

References createJobs::tmp.

70  {
71  CSCDetId tmp; // nullify theLayerId.
72  theLayerId = tmp;
73  // Use the trick from ORCA-days "CommonDet/DetUtilities/interface/reset.h"
74  // to delete the capacity of the vectors.
75  std::vector<TYPE> temp_digis;
76  std::vector<PSimHit> temp_hits;
77  RecDigis.swap(temp_digis);
78  SimHits.swap(temp_hits);
79 }
std::vector< TYPE > RecDigis
Definition: CSCLayerInfo.h:52
std::vector< PSimHit > SimHits
Definition: CSCLayerInfo.h:53
CSCDetId theLayerId
Definition: CSCLayerInfo.h:51
tmp
align.sh
Definition: createJobs.py:716
template<class TYPE>
CSCDetId CSCLayerInfo< TYPE >::getId ( ) const
inline

returns the layer

Definition at line 42 of file CSCLayerInfo.h.

References CSCLayerInfo< TYPE >::theLayerId.

42 { return theLayerId; }
CSCDetId theLayerId
Definition: CSCLayerInfo.h:51
template<class TYPE>
std::vector<TYPE> CSCLayerInfo< TYPE >::getRecDigis ( ) const
inline

returns the vector of RecDigis (comparator or wire)

Definition at line 45 of file CSCLayerInfo.h.

References CSCLayerInfo< TYPE >::RecDigis.

45 { return RecDigis; }
std::vector< TYPE > RecDigis
Definition: CSCLayerInfo.h:52
template<class TYPE>
std::vector<PSimHit> CSCLayerInfo< TYPE >::getSimHits ( ) const
inline

returns the vector of SimHits

Definition at line 48 of file CSCLayerInfo.h.

References CSCLayerInfo< TYPE >::SimHits.

48 { return SimHits; }
std::vector< PSimHit > SimHits
Definition: CSCLayerInfo.h:53
template<class TYPE>
void CSCLayerInfo< TYPE >::setId ( const CSCDetId  id)
inline

sets detId of this layer

Definition at line 33 of file CSCLayerInfo.h.

References gpuClustering::id, and CSCLayerInfo< TYPE >::theLayerId.

33 { theLayerId = id; }
uint16_t *__restrict__ id
CSCDetId theLayerId
Definition: CSCLayerInfo.h:51

Member Data Documentation

template<class TYPE>
std::vector<TYPE> CSCLayerInfo< TYPE >::RecDigis
private
template<class TYPE>
std::vector<PSimHit> CSCLayerInfo< TYPE >::SimHits
private
template<class TYPE>
CSCDetId CSCLayerInfo< TYPE >::theLayerId
private

Definition at line 51 of file CSCLayerInfo.h.

Referenced by CSCLayerInfo< TYPE >::getId(), and CSCLayerInfo< TYPE >::setId().