-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Calorimeter hit digi simplification (#794)
### Briefly, what does this PR introduce? This applies the #666 treatment to the CalorimeterHitDigi algorithms: - put all configuration in a single configuration struct for use with WithPodConfig mixin, - update the unit tests that are affected, - create a templated factory-factory to use in the plugins, - replace all old explicit RawCalorimeterHit factories with the new factory-factory. ### What kind of change does this PR introduce? - [ ] Bug fix (issue #__) - [x] New feature (issue #__) - [ ] Documentation update - [ ] Other: __ ### Please check if this PR fulfills the following: - [ ] Tests for the changes have been added - [ ] Documentation has been added / updated - [x] Changes have been communicated to collaborators @veprbl @nathanwbrei ### Does this PR introduce breaking changes? What changes might users need to make to their code? No. ### Does this PR change default behavior? No. --------- Co-authored-by: Dmitry Kalinkin <[email protected]>
- Loading branch information
Showing
32 changed files
with
438 additions
and
1,563 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// SPDX-License-Identifier: LGPL-3.0-or-later | ||
// Copyright (C) 2023 Wouter Deconinck | ||
|
||
#pragma once | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
namespace eicrecon { | ||
|
||
struct CalorimeterHitDigiConfig { | ||
|
||
std::vector<double> eRes; | ||
double tRes; | ||
|
||
// single hit energy deposition threshold | ||
double threshold{1.0*dd4hep::keV}; | ||
|
||
// digitization settings | ||
unsigned int capADC{1}; | ||
double capTime{1000}; // dynamic range in ns | ||
double dyRangeADC{1}; | ||
unsigned int pedMeanADC{0}; | ||
double pedSigmaADC{0}; | ||
double resolutionTDC{1}; | ||
double corrMeanScale{1}; | ||
|
||
// signal sums | ||
std::string readout{""}; | ||
std::vector<std::string> fields{}; | ||
|
||
}; | ||
|
||
} // eicrecon |
Oops, something went wrong.