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 
26 
27 class CSCDriftSim;
28 class CSCWireHitSim;
29 class CSCStripHitSim;
32 class CSCLayer;
33 class CSCNeutronReader;
34 class CSCStripConditions;
35 
36 namespace CLHEP {
37  class HepRandomEngine;
38 }
39 
40 class CSCDigitizer {
41 public:
43 
44  ~CSCDigitizer();
45  CSCDigitizer(const CSCDigitizer &) = delete;
46  CSCDigitizer &operator=(const CSCDigitizer &) = delete;
47 
49  explicit CSCDigitizer(const edm::ParameterSet &p);
50 
54  CSCWireDigiCollection &wireDigis,
55  CSCStripDigiCollection &stripDigis,
56  CSCComparatorDigiCollection &comparators,
57  DigiSimLinks &wireDigiSimLinks,
58  DigiSimLinks &stripDigiSimLinks,
59  CLHEP::HepRandomEngine *);
60 
63 
65  void setMagneticField(const MagneticField *field);
66 
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
CSCDriftSim * theDriftSim
Definition: CSCDigitizer.h:78
const CSCLayer * findLayer(int detId) const
finds the layer in the geometry associated with this det ID
unsigned int theLayersNeeded
Definition: CSCDigitizer.h:86
edm::DetSetVector< StripDigiSimLink > DigiSimLinks
Definition: CSCDigitizer.h:42
HepPDT::ParticleDataTable ParticleDataTable
CSCDigitizer & operator=(const CSCDigitizer &)=delete
CSCDigitizer(const CSCDigitizer &)=delete
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
void setStripConditions(CSCStripConditions *cond)
CSCWireHitSim * theWireHitSim
Definition: CSCDigitizer.h:79
std::list< int > layersMissing(const CSCStripDigiCollection &stripDigis) const
finds which layers, 1-6, aren&#39;t in the current list
void setParticleDataTable(const ParticleDataTable *pdt)
void doAction(MixCollection< PSimHit > &simHits, CSCWireDigiCollection &wireDigis, CSCStripDigiCollection &stripDigis, CSCComparatorDigiCollection &comparators, DigiSimLinks &wireDigiSimLinks, DigiSimLinks &stripDigiSimLinks, CLHEP::HepRandomEngine *)
Definition: CSCDigitizer.cc:39
CSCWireElectronicsSim * theWireElectronicsSim
Definition: CSCDigitizer.h:81
void setGeometry(const CSCGeometry *geom)
sets geometry
Definition: CSCDigitizer.h:62
void setMagneticField(const MagneticField *field)
sets the magnetic field
CSCStripHitSim * theStripHitSim
Definition: CSCDigitizer.h:80
CSCStripConditions * theConditions
Definition: CSCDigitizer.h:85