Skip to content

Commit

Permalink
HGCalSiNoiseMap: remove maxADC, legacy (unused) variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni Franzoni committed Nov 12, 2019
1 parent 21f9737 commit 3865030
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SimCalorimetry/HGCalSimAlgos/interface/HGCalSiNoiseMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class HGCalSiNoiseMap : public HGCalRadiationMap {
SiCellOpCharacteristics()
: lnfluence(0.), fluence(0.), ileak(0.), cce(1.), noise(0.), mipfC(0), gain(0), mipADC(0), thrADC(0) {}
double lnfluence, fluence, ileak, cce, noise, mipfC;
unsigned int gain, mipADC, thrADC, maxADC;
unsigned int gain, mipADC, thrADC;
};

HGCalSiNoiseMap();
Expand Down
9 changes: 5 additions & 4 deletions SimCalorimetry/HGCalSimAlgos/src/HGCalSiNoiseMap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

//
HGCalSiNoiseMap::HGCalSiNoiseMap() : encpScale_(840.), encCommonNoiseSub_(sqrt(1.25)), qe2fc_(1.60217646E-4) {
encsParam_.push_back({636., 15.6, 0.0328}); //q80fC
maxADCPerGain_.push_back(80.);
encsParam_.push_back({1045., 8.74, 0.0685}); //q160fC
encsParam_.push_back({636., 15.6, 0.0328}); // q80fC
maxADCPerGain_.push_back(80.); // the num of fC (charge) which corresponds to the max ADC value
encsParam_.push_back({1045., 8.74, 0.0685}); // q160fC
maxADCPerGain_.push_back(160.);
encsParam_.push_back({1915., 2.79, 0.0878}); //q320fC
encsParam_.push_back({1915., 2.79, 0.0878}); // q320fC
maxADCPerGain_.push_back(320.);

for (auto i : maxADCPerGain_)
Expand Down Expand Up @@ -94,6 +94,7 @@ HGCalSiNoiseMap::SiCellOpCharacteristics HGCalSiNoiseMap::getSiCellOpCharacteris
gain = HGCalSiNoiseMap::q160fC;
if (gainIdx == 2)
gain = HGCalSiNoiseMap::q320fC;
// move computation to ROC level (one day)
}

//fill in the parameters of the struct
Expand Down

0 comments on commit 3865030

Please sign in to comment.