CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 class CSCDigitizer : public boost::noncopyable
38 {
39 public:
41 
43  explicit CSCDigitizer(const edm::ParameterSet & p);
44 
45  ~CSCDigitizer();
46 
50  CSCWireDigiCollection & wireDigis,
51  CSCStripDigiCollection & stripDigis,
52  CSCComparatorDigiCollection & comparators,
53  DigiSimLinks & wireDigiSimLinks,
54  DigiSimLinks & stripDigiSimLinks);
55 
58 
60  void setMagneticField(const MagneticField * field);
61 
63 
64  void setParticleDataTable(const ParticleDataTable * pdt);
65 
66  void setRandomEngine(CLHEP::HepRandomEngine& engine);
67 
68 private:
70  const CSCLayer * findLayer(int detId) const;
71 
73  std::list<int> layersMissing(const CSCStripDigiCollection & stripDigis) const;
74 
83  unsigned int theLayersNeeded;
85 };
86 
87 #endif
88 
CSCDriftSim * theDriftSim
Definition: CSCDigitizer.h:75
unsigned int theLayersNeeded
Definition: CSCDigitizer.h:83
edm::DetSetVector< StripDigiSimLink > DigiSimLinks
Definition: CSCDigitizer.h:40
HepPDT::ParticleDataTable ParticleDataTable
const CSCLayer * findLayer(int detId) const
finds the layer in the geometry associated with this det ID
std::list< int > layersMissing(const CSCStripDigiCollection &stripDigis) const
finds which layers, 1-6, aren&#39;t in the current list
void setRandomEngine(CLHEP::HepRandomEngine &engine)
bool digitizeBadChambers_
Definition: CSCDigitizer.h:84
CSCStripElectronicsSim * theStripElectronicsSim
Definition: CSCDigitizer.h:79
CSCDigitizer(const edm::ParameterSet &p)
configurable parameters
Definition: CSCDigitizer.cc:16
CSCNeutronReader * theNeutronReader
Definition: CSCDigitizer.h:80
const CSCGeometry * theCSCGeometry
Definition: CSCDigitizer.h:81
void doAction(MixCollection< PSimHit > &simHits, CSCWireDigiCollection &wireDigis, CSCStripDigiCollection &stripDigis, CSCComparatorDigiCollection &comparators, DigiSimLinks &wireDigiSimLinks, DigiSimLinks &stripDigiSimLinks)
Definition: CSCDigitizer.cc:45
void setStripConditions(CSCStripConditions *cond)
CSCWireHitSim * theWireHitSim
Definition: CSCDigitizer.h:76
tuple simHits
Definition: trackerHits.py:16
void setParticleDataTable(const ParticleDataTable *pdt)
CSCWireElectronicsSim * theWireElectronicsSim
Definition: CSCDigitizer.h:78
void setGeometry(const CSCGeometry *geom)
sets geometry
Definition: CSCDigitizer.h:57
void setMagneticField(const MagneticField *field)
sets the magnetic field
CSCStripHitSim * theStripHitSim
Definition: CSCDigitizer.h:77
CSCStripConditions * theConditions
Definition: CSCDigitizer.h:82