Skip to content

Commit cccd9c4

Browse files
committed
more fixes, tdcForToA
1 parent 194cbbd commit cccd9c4

File tree

9 files changed

+24
-7
lines changed

9 files changed

+24
-7
lines changed

HLTrigger/Configuration/python/HLT_75e33/psets/hgceeDigitizer_cfi.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import FWCore.ParameterSet.Config as cms
2+
from Configuration.Eras.Modifier_phase2_hgcalV19_cff import phase2_hgcalV19
23

34
hgceeDigitizer = cms.PSet(
45
NoiseGeneration_Method = cms.bool(True),
@@ -63,4 +64,6 @@
6364
tofDelay = cms.double(5),
6465
useAllChannels = cms.bool(True),
6566
verbosity = cms.untracked.uint32(0)
66-
)
67+
)
68+
69+
phase2_hgcalV19.toModify(hgceeDigitizer.digiCfg.feCfg, tdcForToAOnset_fC= cms.vdouble(12.,12.,12.,12.))

HLTrigger/Configuration/python/HLT_75e33/psets/hgchebackDigitizer_cfi.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import FWCore.ParameterSet.Config as cms
2+
from Configuration.Eras.Modifier_phase2_hgcalV19_cff import phase2_hgcalV19
23

34
hgchebackDigitizer = cms.PSet(
45
NoiseGeneration_Method = cms.bool(True),
@@ -61,4 +62,6 @@
6162
tofDelay = cms.double(1),
6263
useAllChannels = cms.bool(True),
6364
verbosity = cms.untracked.uint32(0)
64-
)
65+
)
66+
67+
phase2_hgcalV19.toModify(hgchebackDigitizer.digiCfg.feCfg, tdcForToAOnset_fC = cms.vdouble(12.,12.,12.,12.))

HLTrigger/Configuration/python/HLT_75e33/psets/hgchefrontDigitizer_cfi.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import FWCore.ParameterSet.Config as cms
2+
from Configuration.Eras.Modifier_phase2_hgcalV19_cff import phase2_hgcalV19
23

34
hgchefrontDigitizer = cms.PSet(
45
NoiseGeneration_Method = cms.bool(True),
@@ -62,4 +63,6 @@
6263
tofDelay = cms.double(5),
6364
useAllChannels = cms.bool(True),
6465
verbosity = cms.untracked.uint32(0)
65-
)
66+
)
67+
68+
phase2_hgcalV19.toModify(hgchefrontDigitizer.digiCfg.feCfg, tdcForToAOnset_fC = cms.vdouble(12.,12.,12.,12.))

SimCalorimetry/HGCalSimProducers/interface/HGCDigitizerBase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class HGCDigitizerBase {
8080
float keV2fC() const { return keV2fC_; }
8181
bool toaModeByEnergy() const { return (myFEelectronics_->toaMode() == HGCFEElectronics<DFr>::WEIGHTEDBYE); }
8282
float tdcOnset() const { return myFEelectronics_->getTDCOnset(); }
83-
std::array<float, 3> tdcForToAOnset() const { return myFEelectronics_->getTDCForToAOnset(); }
83+
std::array<float, 4> tdcForToAOnset() const { return myFEelectronics_->getTDCForToAOnset(); }
8484
DetId::Detector det() const { return det_; }
8585
ForwardSubdetector subdet() const { return subdet_; }
8686

SimCalorimetry/HGCalSimProducers/interface/HGCFEElectronics.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class HGCFEElectronics {
103103
float getMaxADC() { return adcSaturation_fC_; }
104104
float getMaxTDC() { return tdcSaturation_fC_; }
105105
float getTDCOnset() { return tdcOnset_fC_; }
106-
std::array<float, 3> getTDCForToAOnset() { return tdcForToAOnset_fC_; }
106+
std::array<float, 4> getTDCForToAOnset() { return tdcForToAOnset_fC_; }
107107
void setADClsb(float newLSB) { adcLSB_fC_ = newLSB; }
108108
void setTDCfsc(float newTDCfsc) {
109109
tdcSaturation_fC_ = newTDCfsc;
@@ -193,7 +193,7 @@ class HGCFEElectronics {
193193
//private members
194194
uint32_t fwVersion_;
195195
hgc_digi::FEADCPulseShape adcPulse_, pulseAvgT_;
196-
std::array<float, 3> tdcForToAOnset_fC_;
196+
std::array<float, 4> tdcForToAOnset_fC_;
197197
std::vector<float> tdcChargeDrainParameterisation_;
198198
float adcSaturation_fC_, adcLSB_fC_, tdcLSB_fC_, tdcSaturation_fC_, adcThreshold_fC_, tdcOnset_fC_, toaLSB_ns_,
199199
tdcResolutionInNs_;

SimCalorimetry/HGCalSimProducers/plugins/HGCDigitizer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ namespace {
119119
const float minCharge,
120120
const float maxCharge,
121121
bool setIfZero,
122-
const std::array<float, 3>& tdcForToAOnset,
122+
const std::array<float, 4>& tdcForToAOnset,
123123
const bool minbiasFlag,
124124
std::unordered_map<uint32_t, bool>& hitOrder_monitor,
125125
const unsigned int thisBx) {

SimCalorimetry/HGCalSimProducers/python/hgcROCParameters_cfi.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,7 @@
4343
-0.28, 27.14, 43.95,
4444
3.89048 )
4545
)
46+
47+
from Configuration.Eras.Modifier_phase2_hgcalV19_cff import phase2_hgcalV19
48+
phase2_hgcalV19.toModify(hgcROCSettings, tdcForToAOnset_fC = [12., 12., 12., 12.])
49+

SimCalorimetry/HGCalSimProducers/python/hgcalDigitizer_cfi.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,9 @@ def HGCal_disableNoise(process):
403403

404404
phase2_hgcalV19.toModify(HGCAL_noise_fC, values = [x*fC_per_ele for x in nonAgedNoises_v9_v19])
405405
phase2_hgcalV19.toModify(HFNose_noise_fC, values = [x*fC_per_ele for x in nonAgedNoises_v9_v19])
406+
phase2_hgcalV19.toModify(hgchebackDigitizer.digiCfg.feCfg, tdcForToAOnset_fC = cms.vdouble(12.,12.,12.,12.))
407+
408+
406409

407410
def HFNose_setEndOfLifeNoise(process,byDose=True,byDoseAlgo=0,byDoseFactor=1):
408411
"""includes all effects from radiation and gain choice"""

SimCalorimetry/HGCalSimProducers/src/HGCFEElectronics.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ HGCFEElectronics<DFr>::HGCFEElectronics(const edm::ParameterSet& ps)
7474
tdcOnset_fC_ = ps.getParameter<double>("tdcOnset_fC");
7575
if (ps.exists("tdcForToAOnset_fC")) {
7676
auto temp = ps.getParameter<std::vector<double> >("tdcForToAOnset_fC");
77+
std::cout << "temp " << temp.size() << " tdcForToaOnset " << tdcForToAOnset_fC_.size() << std::endl;
7778
if (temp.size() == tdcForToAOnset_fC_.size()) {
7879
std::copy_n(temp.begin(), temp.size(), tdcForToAOnset_fC_.begin());
7980
} else {

0 commit comments

Comments
 (0)