-
Notifications
You must be signed in to change notification settings - Fork 510
AFIT-80 - Implementation of configurable parameters for FV0 reconstruction #15676
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
wpierozak
wants to merge
7
commits into
AliceO2Group:dev
Choose a base branch
from
wpierozak:AFIT-80
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+61
−5
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
8027826
created fv0::TimeFilter and fv0::ChargeFilter classes for reco config…
1c13b43
replaced Digit configuration opitons with ChargeFilter and TimeFilter…
084748c
clang-format
21b8265
prefixed FV0 reco configuration structure with 'FV0Reco'
4a654e8
Merged Charge and Time fileters to one Fv0RecoConfig
c50cc47
Renamed files
209dc51
Fixed typo in FV0 CMakeLists
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
36 changes: 36 additions & 0 deletions
36
DataFormats/Detectors/FIT/FV0/include/DataFormatsFV0/FV0RecoConfig.h
This file contains hidden or 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,36 @@ | ||
| // 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 | ||
| uint8_t mValidPmInputFlagMask = ~(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"); | ||
| }; | ||
|
|
||
| } // namespace o2::fv0 | ||
|
|
||
| #endif |
This file contains hidden or 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 hidden or 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,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); |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think this might also be needed.