Skip to content

Add type for HGC/CALOROC output #101

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
21 changes: 21 additions & 0 deletions edm4eic.yaml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having just fixed a whole bunch of signed/unsigned comparisons, can we please use unsigned ints where appropriate?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! Most of these can be uint32_ts...

Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,27 @@ datatypes:
## ==========================================================================
## Calorimetry
## ==========================================================================

edm4eic::RawCALOROCHit:
Description: "Raw hit from a CALOROC/HGCROC chip"
Author: "D. Anderson, S. Joosten, N. Novitzky"
Members:
- uint32_t type // Chip type, 0 - type 1A, 1 - type 1B
- uint64_t cellID // Detector specific (geometrical) cell id
- int32_t samplePhase // Phase of samples in [# samples], for synchronizing across chips
- int32_t timeStamp // [TDC counts]
VectorMembers:
- uint32_t amplitude // Iff type == 0, amplitudes of waveform are stored here [ADC counts]
- uint32_t lowGainAmplitude // Iff type == 1, low gain amplitudes of waveform are stored here [ADC counts]
- uint32_t highGainAmplitude // Iff type == 1, high gain amplitudes of waveform are stored here [ADC counts]
- int32_t timeOfArrival // Calculated times of arrival [TDC counts]
- int32_t timeOverThreshold // Calculated times over threshold [TDC counts]
ExtraCode:
declaration: "
bool isType1A() const {return getType() == 0;}\n
bool isType1B() const {return getType() == 1;}\n
"

edm4eic::CalorimeterHit:
Description: "Calorimeter hit"
Author: "W. Armstrong, S. Joosten"
Expand Down