-
Notifications
You must be signed in to change notification settings - Fork 513
AFIT-80 - Implementation of configurable parameters for FV0 reconstruction #15881
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
base: dev
Are you sure you want to change the base?
Changes from all commits
8027826
1c13b43
084748c
21b8265
4a654e8
c50cc47
209dc51
b74dc60
efc7113
e8860b5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| // Copyright 2019-2020 CERN and copyright holders of ALICE O2. | ||
| // See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. | ||
| // All rights not expressly granted are reserved. | ||
| // | ||
| // This software is distributed under the terms of the GNU General Public | ||
| // License v3 (GPL Version 3), copied verbatim in the file "COPYING". | ||
| // | ||
| // In applying this license CERN does not waive the privileges and immunities | ||
| // granted to it by virtue of its status as an Intergovernmental Organization | ||
| // or submit itself to any jurisdiction. | ||
|
|
||
| #ifndef ALICEO2_FV0_DIGIT_FILTER_PARAM | ||
| #define ALICEO2_FV0_DIGIT_FILTER_PARAM | ||
|
|
||
| #include "CommonUtils/ConfigurableParamHelper.h" | ||
| #include "DataFormatsFV0/ChannelData.h" | ||
|
|
||
| namespace o2::fv0 | ||
| { | ||
| struct FV0RecoConfig : o2::conf::ConfigurableParamHelper<FV0RecoConfig> { | ||
| double AmplitudeLowerThreshold = 24; // only channels with amplitude higher will participate in calibration and collision time | ||
| double AmplitudeThreholdForMeanTime = 5; // Charge threshold, only above which the time is taken into account in calculating the mean time of all qualifying channels | ||
| double TimeUpperThershold = 1000.0; // only channels with time below will participate in calibration and collision time | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typo in "Threshold". Let's correct this so that the configurable parameter name is consistent.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, any specific reason to change the type of the 3 parameters to double ? |
||
| uint8_t mValidPmInputFlagMask = static_cast<uint8_t>(~(1u << ChannelData::kNumberADC)); | ||
| uint8_t mValidPmInputFlags = static_cast<uint8_t>((1u << ChannelData::kIsCFDinADCgate) | (1u << ChannelData::kIsEventInTVDC)); | ||
|
|
||
| bool areChannelDataFlagsGood(uint8_t flags) const | ||
| { | ||
| return (flags & mValidPmInputFlagMask) == mValidPmInputFlags; | ||
| } | ||
| O2ParamDef(FV0RecoConfig, "FV0RecoConfig"); | ||
| ClassDefNV(FV0RecoConfig, 1); | ||
| }; | ||
|
|
||
| } // namespace o2::fv0 | ||
|
|
||
| #endif | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| // Copyright 2019-2020 CERN and copyright holders of ALICE O2. | ||
| // See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. | ||
| // All rights not expressly granted are reserved. | ||
| // | ||
| // This software is distributed under the terms of the GNU General Public | ||
| // License v3 (GPL Version 3), copied verbatim in the file "COPYING". | ||
| // | ||
| // In applying this license CERN does not waive the privileges and immunities | ||
| // granted to it by virtue of its status as an Intergovernmental Organization | ||
| // or submit itself to any jurisdiction. | ||
|
|
||
| #include "DataFormatsFV0/FV0RecoConfig.h" | ||
|
|
||
| using namespace o2::fv0; | ||
| O2ParamImpl(FV0RecoConfig); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The header was renamed to FV0RecoConfig.h, but the guard still refers to "FV0_DIGIT_FILTER_PARAM"
Could we rename it, for e.g. ALICEO2_FV0_RECO_CONFIG to avoid name clash ?