CMS 3D CMS Logo

BTLElectronicsSim.h
Go to the documentation of this file.
1 #ifndef __SimFastTiming_FastTimingCommon_BTLElectronicsSim_h__
2 #define __SimFastTiming_FastTimingCommon_BTLElectronicsSim_h__
3 
6 
9 
12 
14 
15 namespace mtd = mtd_digitizer;
16 
17 namespace CLHEP {
18  class HepRandomEngine;
19 }
20 
22 public:
24 
25  void getEvent(const edm::Event& evt) {}
26 
27  void getEventSetup(const edm::EventSetup& evt) {}
28 
29  void run(const mtd::MTDSimHitDataAccumulator& input, BTLDigiCollection& output, CLHEP::HepRandomEngine* hre) const;
30 
31  void runTrivialShaper(BTLDataFrame& dataFrame,
32  const mtd::MTDSimHitData& chargeColl,
33  const mtd::MTDSimHitData& toa1,
34  const mtd::MTDSimHitData& toa2,
35  const uint8_t row,
36  const uint8_t col) const;
37 
38  void updateOutput(BTLDigiCollection& coll, const BTLDataFrame& rawDataFrame) const;
39 
40  static constexpr int dfSIZE = 2;
41 
42 private:
43  float sigma2_pe(const float& Q, const float& R) const;
44 
45  const bool debug_;
46 
47  const float bxTime_;
48  const float testBeamMIPTimeRes_;
49  const float ScintillatorRiseTime_;
51  const float ChannelTimeOffset_;
53 
54  const float EnergyThreshold_;
55  const float TimeThreshold1_;
56  const float TimeThreshold2_;
57  const float ReferencePulseNpe_;
58 
60  const float DarkCountRate_;
61  const float SigmaElectronicNoise_;
62  const float SigmaClock_;
64  const float Npe_to_pC_;
65  const float Npe_to_V_;
66 
67  // adc/tdc bitwidths
68  const uint32_t adcNbits_, tdcNbits_;
69 
70  // synthesized adc/tdc information
71  const float adcSaturation_MIP_;
72  const uint32_t adcBitSaturation_;
73  const float adcLSB_MIP_;
74  const float adcThreshold_MIP_;
75  const float toaLSB_ns_;
76  const uint32_t tdcBitSaturation_;
77 
78  const float CorrCoeff_;
79  const float cosPhi_;
80  const float sinPhi_;
81 
84  const float SPTR2_;
85  const float DCRxRiseTime_;
87  const float SigmaClock2_;
88 
90 };
91 
92 #endif
BTLElectronicsSim::smearTimeForOOTtails_
const bool smearTimeForOOTtails_
Definition: BTLElectronicsSim.h:63
FTLDigiCollections.h
BTLElectronicsSim::smearChannelTimeOffset_
const float smearChannelTimeOffset_
Definition: BTLElectronicsSim.h:52
BTLElectronicsSim::updateOutput
void updateOutput(BTLDigiCollection &coll, const BTLDataFrame &rawDataFrame) const
Definition: BTLElectronicsSim.cc:198
BTLElectronicsSim::DarkCountRate_
const float DarkCountRate_
Definition: BTLElectronicsSim.h:60
input
static const std::string input
Definition: EdmProvDump.cc:48
BTLElectronicsSim::SigmaClock2_
const float SigmaClock2_
Definition: BTLElectronicsSim.h:87
BTLElectronicsSim::adcThreshold_MIP_
const float adcThreshold_MIP_
Definition: BTLElectronicsSim.h:74
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:32
BTLElectronicsSim::Npe_to_pC_
const float Npe_to_pC_
Definition: BTLElectronicsSim.h:64
cuy.col
col
Definition: cuy.py:1010
BTLElectronicsSim::adcLSB_MIP_
const float adcLSB_MIP_
Definition: BTLElectronicsSim.h:73
BTLElectronicsSim::DCRxRiseTime_
const float DCRxRiseTime_
Definition: BTLElectronicsSim.h:85
BTLElectronicsSim::bxTime_
const float bxTime_
Definition: BTLElectronicsSim.h:47
edm::SortedCollection
Definition: SortedCollection.h:49
BTLElectronicsSim::SigmaClock_
const float SigmaClock_
Definition: BTLElectronicsSim.h:62
BTLElectronicsSim::sinPhi_
const float sinPhi_
Definition: BTLElectronicsSim.h:80
BTLElectronicsSim::runTrivialShaper
void runTrivialShaper(BTLDataFrame &dataFrame, const mtd::MTDSimHitData &chargeColl, const mtd::MTDSimHitData &toa1, const mtd::MTDSimHitData &toa2, const uint8_t row, const uint8_t col) const
Definition: BTLElectronicsSim.cc:158
BTLElectronicsSim::cosPhi_
const float cosPhi_
Definition: BTLElectronicsSim.h:79
MTDDigitizerTypes.h
BTLPulseShape
Definition: BTLPulseShape.h:6
class-composition.Q
Q
Definition: class-composition.py:82
BTLElectronicsSim::ScintillatorDecayTimeInv_
const float ScintillatorDecayTimeInv_
Definition: BTLElectronicsSim.h:83
BTLElectronicsSim::adcSaturation_MIP_
const float adcSaturation_MIP_
Definition: BTLElectronicsSim.h:71
mtd_digitizer::MTDSimHitData
std::array< MTDSimData_t, nSamples > MTDSimHitData
Definition: MTDDigitizerTypes.h:15
PSimHit.h
BTLElectronicsSim::dfSIZE
static constexpr int dfSIZE
Definition: BTLElectronicsSim.h:40
BTLElectronicsSim::ScintillatorDecayTime2_
const float ScintillatorDecayTime2_
Definition: BTLElectronicsSim.h:82
BTLPulseShape.h
BTLElectronicsSim::TimeThreshold2_
const float TimeThreshold2_
Definition: BTLElectronicsSim.h:56
BTLElectronicsSim::Npe_to_V_
const float Npe_to_V_
Definition: BTLElectronicsSim.h:65
BTLElectronicsSim::sigma2_pe
float sigma2_pe(const float &Q, const float &R) const
Definition: BTLElectronicsSim.cc:213
CLHEP
Definition: CocoaGlobals.h:27
BTLElectronicsSim::SigmaElectronicNoise_
const float SigmaElectronicNoise_
Definition: BTLElectronicsSim.h:61
BTLElectronicsSim::tdcNbits_
const uint32_t tdcNbits_
Definition: BTLElectronicsSim.h:68
BTLElectronicsSim::toaLSB_ns_
const float toaLSB_ns_
Definition: BTLElectronicsSim.h:75
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
BTLElectronicsSim::SigmaElectronicNoise2_
const float SigmaElectronicNoise2_
Definition: BTLElectronicsSim.h:86
BTLElectronicsSim::debug_
const bool debug_
Definition: BTLElectronicsSim.h:45
BTLElectronicsSim::btlPulseShape_
const BTLPulseShape btlPulseShape_
Definition: BTLElectronicsSim.h:89
BTLElectronicsSim::CorrCoeff_
const float CorrCoeff_
Definition: BTLElectronicsSim.h:78
edm::EventSetup
Definition: EventSetup.h:57
BTLElectronicsSim::adcBitSaturation_
const uint32_t adcBitSaturation_
Definition: BTLElectronicsSim.h:72
BTLElectronicsSim::BTLElectronicsSim
BTLElectronicsSim(const edm::ParameterSet &pset)
Definition: BTLElectronicsSim.cc:10
BTLElectronicsSim::EnergyThreshold_
const float EnergyThreshold_
Definition: BTLElectronicsSim.h:54
FTLDataFrameT
Readout digi for HGC.
Definition: FTLDataFrameT.h:14
BTLElectronicsSim::TimeThreshold1_
const float TimeThreshold1_
Definition: BTLElectronicsSim.h:55
BTLElectronicsSim::ChannelTimeOffset_
const float ChannelTimeOffset_
Definition: BTLElectronicsSim.h:51
BTLElectronicsSim::ScintillatorRiseTime_
const float ScintillatorRiseTime_
Definition: BTLElectronicsSim.h:49
mtd_digitizer::MTDSimHitDataAccumulator
std::unordered_map< MTDCellId, MTDCellInfo > MTDSimHitDataAccumulator
Definition: MTDDigitizerTypes.h:39
BTLElectronicsSim::SinglePhotonTimeResolution_
const float SinglePhotonTimeResolution_
Definition: BTLElectronicsSim.h:59
BTLElectronicsSim::ReferencePulseNpe_
const float ReferencePulseNpe_
Definition: BTLElectronicsSim.h:57
EventSetup.h
BTLElectronicsSim::tdcBitSaturation_
const uint32_t tdcBitSaturation_
Definition: BTLElectronicsSim.h:76
BTLElectronicsSim::getEvent
void getEvent(const edm::Event &evt)
Definition: BTLElectronicsSim.h:25
BTLElectronicsSim
Definition: BTLElectronicsSim.h:21
ParameterSet.h
BTLElectronicsSim::getEventSetup
void getEventSetup(const edm::EventSetup &evt)
Definition: BTLElectronicsSim.h:27
mtd_digitizer
Definition: MTDDigitizer.h:35
BTLElectronicsSim::adcNbits_
const uint32_t adcNbits_
Definition: BTLElectronicsSim.h:68
BTLElectronicsSim::SPTR2_
const float SPTR2_
Definition: BTLElectronicsSim.h:84
edm::Event
Definition: Event.h:73
dttmaxenums::R
Definition: DTTMax.h:29
BTLElectronicsSim::run
void run(const mtd::MTDSimHitDataAccumulator &input, BTLDigiCollection &output, CLHEP::HepRandomEngine *hre) const
Definition: BTLElectronicsSim.cc:47
BTLElectronicsSim::ScintillatorDecayTime_
const float ScintillatorDecayTime_
Definition: BTLElectronicsSim.h:50
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
BTLElectronicsSim::testBeamMIPTimeRes_
const float testBeamMIPTimeRes_
Definition: BTLElectronicsSim.h:48