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 
13 #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 public:
44 
46  explicit CSCDigitizer(const edm::ParameterSet &p);
47 
48  ~CSCDigitizer();
49 
52  void doAction(MixCollection<PSimHit> &simHits,
53  CSCWireDigiCollection &wireDigis,
54  CSCStripDigiCollection &stripDigis,
55  CSCComparatorDigiCollection &comparators,
56  DigiSimLinks &wireDigiSimLinks,
57  DigiSimLinks &stripDigiSimLinks,
58  CLHEP::HepRandomEngine *);
59 
61  void setGeometry(const CSCGeometry *geom) { theCSCGeometry = geom; }
62 
64  void setMagneticField(const MagneticField *field);
65 
66  void setStripConditions(CSCStripConditions *cond);
67 
68  void setParticleDataTable(const ParticleDataTable *pdt);
69 
70 private:
72  const CSCLayer *findLayer(int detId) const;
73 
75  std::list<int> layersMissing(const CSCStripDigiCollection &stripDigis) const;
76 
85  unsigned int theLayersNeeded;
87 };
88 
89 #endif
CSCDriftSim * theDriftSim
Definition: CSCDigitizer.h:77
unsigned int theLayersNeeded
Definition: CSCDigitizer.h:85
edm::DetSetVector< StripDigiSimLink > DigiSimLinks
Definition: CSCDigitizer.h:43
HepPDT::ParticleDataTable ParticleDataTable
bool digitizeBadChambers_
Definition: CSCDigitizer.h:86
CSCStripElectronicsSim * theStripElectronicsSim
Definition: CSCDigitizer.h:81
CSCNeutronReader * theNeutronReader
Definition: CSCDigitizer.h:82
const CSCGeometry * theCSCGeometry
Definition: CSCDigitizer.h:83
CSCWireHitSim * theWireHitSim
Definition: CSCDigitizer.h:78
CSCWireElectronicsSim * theWireElectronicsSim
Definition: CSCDigitizer.h:80
Definition: plugin.cc:23
void setGeometry(const CSCGeometry *geom)
sets geometry
Definition: CSCDigitizer.h:61
CSCStripHitSim * theStripHitSim
Definition: CSCDigitizer.h:79
CSCStripConditions * theConditions
Definition: CSCDigitizer.h:84