Skip to content

Commit

Permalink
code-checks code-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni Franzoni committed Jul 13, 2020
1 parent 8e2a45d commit 92964ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion SimCalorimetry/HGCalSimAlgos/test/HGCSiNoiseMapAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ HGCSiNoiseMapAnalyzer::HGCSiNoiseMapAnalyzer(const edm::ParameterSet &iConfig) {
//configure the dose map
std::string doseMapURL(iConfig.getParameter<std::string>("doseMap"));
unsigned int doseMapAlgo(iConfig.getParameter<unsigned int>("doseMapAlgo"));
double scaleByDoseFactor = iConfig.getParameter<edm::ParameterSet>("noise_fC").getParameter<double>("scaleByDoseFactor");
double scaleByDoseFactor =
iConfig.getParameter<edm::ParameterSet>("noise_fC").getParameter<double>("scaleByDoseFactor");
std::vector<double> ileakParam(
iConfig.getParameter<edm::ParameterSet>("ileakParam").template getParameter<std::vector<double>>("ileakParam"));
std::vector<double> cceParamFine(
Expand Down
6 changes: 2 additions & 4 deletions SimCalorimetry/HGCalSimProducers/src/HGCDigitizerBase.cc
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ void HGCDigitizerBase<DFr>::runSimple(std::unique_ptr<HGCDigitizerBase::DColl>&

template <class DFr>
void HGCDigitizerBase<DFr>::updateOutput(std::unique_ptr<HGCDigitizerBase::DColl>& coll, const DFr& rawDataFrame) {

// 9th is the sample of hte intime amplitudes
int itIdx(9);
if (rawDataFrame.size() <= itIdx + 2)
Expand All @@ -201,16 +200,15 @@ void HGCDigitizerBase<DFr>::updateOutput(std::unique_ptr<HGCDigitizerBase::DColl

// if in time amplitude is above threshold
// , then don't push back the dataframe
if ( (! rawDataFrame[itIdx].threshold() ) ) {
if ((!rawDataFrame[itIdx].threshold())) {
return;
}
}

for (int it = 0; it < 5; it++) {
dataFrame.setSample(it, rawDataFrame[itIdx - 2 + it]);
}

coll->push_back(dataFrame);

}

// cause the compiler to generate the appropriate code
Expand Down

0 comments on commit 92964ef

Please sign in to comment.