CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalQIE10Traits.h
Go to the documentation of this file.
1 #ifndef HcalSimAlgos_HcalQIE10Traits_h
2 #define HcalSimAlgos_HcalQIE10Traits_h
3 
6 
8 
9 public:
13 };
14 
15 template<class Traits>
17 public:
18  typedef typename Traits::ElectronicsSim ElectronicsSim;
19  typedef typename Traits::Digi Digi;
20  typedef typename Traits::DigiCollection DigiCollection;
21 
22  void operator()(DigiCollection & output, CLHEP::HepRandomEngine* engine, CaloSamples * analogSignal, std::vector<DetId>::const_iterator idItr, ElectronicsSim* theElectronicsSim){
23  output.push_back( idItr->rawId() ) ;
24  Digi digi ( output.back() ) ; //QIEDataFrame gets ptr to edm::DataFrame data
25  theElectronicsSim->analogToDigital( engine, *analogSignal , digi ) ;
26  }
27 
28 };
29 
30 #endif
void operator()(DigiCollection &output, CLHEP::HepRandomEngine *engine, CaloSamples *analogSignal, std::vector< DetId >::const_iterator idItr, ElectronicsSim *theElectronicsSim)
Traits::ElectronicsSim ElectronicsSim
std::tuple< unsigned int, int, int, DigiType, int, int, int, float > Digi
Definition: GenericDigi.h:30
HcalElectronicsSim ElectronicsSim
Traits::DigiCollection DigiCollection
QIE10DigiCollection DigiCollection