Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More flexibility in noise treatment #23

Merged
merged 1 commit into from
Feb 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ double NoiseCaloCellsFromFileTool::getNoiseConstantPerCell(int64_t aCellId) {
}

// Total noise: electronics noise + pileup
double totalNoise = sqrt(pow(elecNoise, 2) + pow(pileupNoise, 2));
double totalNoise = sqrt(pow(elecNoise, 2) + pow(pileupNoise, 2)) * m_scaleFactor;

if (totalNoise < 1e-3) {
debug() << "Zero noise: cell eta " << cellEta << " layer " << cellLayer << " noise " << totalNoise << endmsg;
Expand Down
2 changes: 2 additions & 0 deletions RecCalorimeter/src/components/NoiseCaloCellsFromFileTool.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ class NoiseCaloCellsFromFileTool : public GaudiTool, virtual public INoiseCaloCe
Gaudi::Property<bool> m_useSeg{this, "useSegmentation", true, "Specify if segmentation is used to determine cell position."};
/// Name of the file with noise constants
Gaudi::Property<std::string> m_noiseFileName{this, "noiseFileName", "", "Name of the file with noise constants"};
/// Factor to apply to the noise values to get them in GeV if e.g. they were produced in MeV
Gaudi::Property<float> m_scaleFactor{this, "scaleFactor", 1, "Factor to apply to the noise values"};
/// Name of the detector readout
Gaudi::Property<std::string> m_readoutName{this, "readoutName", "ECalHitsPhiEta", "Name of the detector readout"};
/// Name of active layers for sampling calorimeter
Expand Down