CMS 3D CMS Logo

CSCDigitizer.h
Go to the documentation of this file.
1 #ifndef MU_END_DIGITIZER
2 #define MU_END_DIGITIZER
3 
4 // This is CSCDigitizer.h
5 
22 #include "CLHEP/Random/RandomEngine.h"
23 #include <boost/utility.hpp>
24 
27 
28 class CSCDriftSim;
29 class CSCWireHitSim;
30 class CSCStripHitSim;
33 class CSCLayer;
34 class CSCNeutronReader;
35 class CSCStripConditions;
36 
37 namespace CLHEP {
38  class HepRandomEngine;
39 }
40 
41 class CSCDigitizer : public boost::noncopyable
42 {
43 public:
45 
47  explicit CSCDigitizer(const edm::ParameterSet & p);
48 
49  ~CSCDigitizer();
50 
53  void doAction(MixCollection<PSimHit> & simHits,
54  CSCWireDigiCollection & wireDigis,
55  CSCStripDigiCollection & stripDigis,
56  CSCComparatorDigiCollection & comparators,
57  DigiSimLinks & wireDigiSimLinks,
58  DigiSimLinks & stripDigiSimLinks,
59  CLHEP::HepRandomEngine*);
60 
62  void setGeometry(const CSCGeometry * geom) {theCSCGeometry = geom;}
63 
65  void setMagneticField(const MagneticField * field);
66 
67  void setStripConditions(CSCStripConditions * cond);
68 
69  void setParticleDataTable(const ParticleDataTable * pdt);
70 
71 private:
73  const CSCLayer * findLayer(int detId) const;
74 
76  std::list<int> layersMissing(const CSCStripDigiCollection & stripDigis) const;
77 
86  unsigned int theLayersNeeded;
88 };
89 
90 #endif
91 
CSCDriftSim * theDriftSim
Definition: CSCDigitizer.h:78
unsigned int theLayersNeeded
Definition: CSCDigitizer.h:86
edm::DetSetVector< StripDigiSimLink > DigiSimLinks
Definition: CSCDigitizer.h:44
HepPDT::ParticleDataTable ParticleDataTable
bool digitizeBadChambers_
Definition: CSCDigitizer.h:87
CSCStripElectronicsSim * theStripElectronicsSim
Definition: CSCDigitizer.h:82
CSCNeutronReader * theNeutronReader
Definition: CSCDigitizer.h:83
const CSCGeometry * theCSCGeometry
Definition: CSCDigitizer.h:84
CSCWireHitSim * theWireHitSim
Definition: CSCDigitizer.h:79
CSCWireElectronicsSim * theWireElectronicsSim
Definition: CSCDigitizer.h:81
Definition: plugin.cc:24
void setGeometry(const CSCGeometry *geom)
sets geometry
Definition: CSCDigitizer.h:62
CSCStripHitSim * theStripHitSim
Definition: CSCDigitizer.h:80
CSCStripConditions * theConditions
Definition: CSCDigitizer.h:85