CMS 3D CMS Logo

ETLElectronicsSim.h
Go to the documentation of this file.
1 #ifndef __SimFastTiming_FastTimingCommon_ETLElectronicsSim_h__
2 #define __SimFastTiming_FastTimingCommon_ETLElectronicsSim_h__
3 
5 
8 
11 
14 
18 
19 namespace mtd = mtd_digitizer;
20 
21 namespace CLHEP {
22  class HepRandomEngine;
23 }
24 
26 public:
28 
29  void getEvent(const edm::Event& evt) {}
30 
31  void getEventSetup(const edm::EventSetup& evt);
32 
33  void run(const mtd::MTDSimHitDataAccumulator& input, ETLDigiCollection& output, CLHEP::HepRandomEngine* hre) const;
34 
35  void runTrivialShaper(ETLDataFrame& dataFrame,
36  const mtd::MTDSimHitData& chargeColl,
37  const mtd::MTDSimHitData& toa,
38  const uint8_t row,
39  const uint8_t column) const;
40 
41  void updateOutput(ETLDigiCollection& coll, const ETLDataFrame& rawDataFrame) const;
42 
43  static constexpr int dfSIZE = 5;
44 
45 private:
48 
49  const bool debug_;
50  const float bxTime_;
51  const float integratedLum_;
55 
56  // adc/tdc bitwidths
57  const uint32_t adcNbits_, tdcNbits_;
58 
59  // synthesized adc/tdc information
60  const float adcSaturation_MIP_;
61  const float adcLSB_MIP_;
62  const uint32_t adcBitSaturation_;
63  const float adcThreshold_MIP_;
64  const float toaLSB_ns_;
65  const uint32_t tdcBitSaturation_;
66 };
67 
68 #endif
ETLElectronicsSim::bxTime_
const float bxTime_
Definition: ETLElectronicsSim.h:50
ETLElectronicsSim::getEvent
void getEvent(const edm::Event &evt)
Definition: ETLElectronicsSim.h:29
FTLDigiCollections.h
ETLElectronicsSim::integratedLum_
const float integratedLum_
Definition: ETLElectronicsSim.h:51
ETLElectronicsSim::timeRes2_
const reco::FormulaEvaluator timeRes2_
Definition: ETLElectronicsSim.h:54
input
static const std::string input
Definition: EdmProvDump.cc:48
PixelTopology.h
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:72
ETLElectronicsSim::adcThreshold_MIP_
const float adcThreshold_MIP_
Definition: ETLElectronicsSim.h:63
ETLElectronicsSim::tdcNbits_
const uint32_t tdcNbits_
Definition: ETLElectronicsSim.h:57
MTDGeometry.h
ETLElectronicsSim::toaLSB_ns_
const float toaLSB_ns_
Definition: ETLElectronicsSim.h:64
MTDDigiGeometryRecord.h
edm::SortedCollection
Definition: SortedCollection.h:49
ETLElectronicsSim::updateOutput
void updateOutput(ETLDigiCollection &coll, const ETLDataFrame &rawDataFrame) const
Definition: ETLElectronicsSim.cc:126
MTDDigitizerTypes.h
ETLElectronicsSim::fluence_
const reco::FormulaEvaluator fluence_
Definition: ETLElectronicsSim.h:52
reco::FormulaEvaluator
Definition: FormulaEvaluator.h:67
mtd_digitizer::MTDSimHitData
std::array< MTDSimData_t, nSamples > MTDSimHitData
Definition: MTDDigitizerTypes.h:15
PSimHit.h
ETLElectronicsSim::debug_
const bool debug_
Definition: ETLElectronicsSim.h:49
CLHEP
Definition: CocoaGlobals.h:27
ETLElectronicsSim::ETLElectronicsSim
ETLElectronicsSim(const edm::ParameterSet &pset, edm::ConsumesCollector iC)
Definition: ETLElectronicsSim.cc:9
ETLElectronicsSim
Definition: ETLElectronicsSim.h:25
edm::ParameterSet
Definition: ParameterSet.h:47
ETLElectronicsSim::runTrivialShaper
void runTrivialShaper(ETLDataFrame &dataFrame, const mtd::MTDSimHitData &chargeColl, const mtd::MTDSimHitData &toa, const uint8_t row, const uint8_t column) const
Definition: ETLElectronicsSim.cc:92
Event.h
FormulaEvaluator.h
ETLElectronicsSim::adcLSB_MIP_
const float adcLSB_MIP_
Definition: ETLElectronicsSim.h:61
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord >
ETLElectronicsSim::adcSaturation_MIP_
const float adcSaturation_MIP_
Definition: ETLElectronicsSim.h:60
ETLElectronicsSim::adcNbits_
const uint32_t adcNbits_
Definition: ETLElectronicsSim.h:57
ETLElectronicsSim::getEventSetup
void getEventSetup(const edm::EventSetup &evt)
Definition: ETLElectronicsSim.cc:27
MTDGeometry
Definition: MTDGeometry.h:14
FTLDataFrameT
Readout digi for HGC.
Definition: FTLDataFrameT.h:14
ETLElectronicsSim::tdcBitSaturation_
const uint32_t tdcBitSaturation_
Definition: ETLElectronicsSim.h:65
ETLElectronicsSim::lgadGain_
const reco::FormulaEvaluator lgadGain_
Definition: ETLElectronicsSim.h:53
mtd_digitizer::MTDSimHitDataAccumulator
std::unordered_map< MTDCellId, MTDCellInfo > MTDSimHitDataAccumulator
Definition: MTDDigitizerTypes.h:39
ETLElectronicsSim::geom_
const MTDGeometry * geom_
Definition: ETLElectronicsSim.h:47
ETLElectronicsSim::adcBitSaturation_
const uint32_t adcBitSaturation_
Definition: ETLElectronicsSim.h:62
EventSetup.h
ETLElectronicsSim::geomToken_
const edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord > geomToken_
Definition: ETLElectronicsSim.h:46
ParameterSet.h
mtd_digitizer
Definition: MTDDigitizer.h:34
edm::Event
Definition: Event.h:73
ETLElectronicsSim::run
void run(const mtd::MTDSimHitDataAccumulator &input, ETLDigiCollection &output, CLHEP::HepRandomEngine *hre) const
Definition: ETLElectronicsSim.cc:29
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
ETLElectronicsSim::dfSIZE
static constexpr int dfSIZE
Definition: ETLElectronicsSim.h:43