Repository navigation
AFIT-11 - Implementation of FEE configuration object #15888
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
93263cb
734c2be
cf7aa81
7b1adf6
2f84eea
2174edf
7152c6e
1575a23
967fe04
ee61e3d
3142db3
9323b44
d173b88
abd01f2
4ce8011
f1efb89
a1a512a
ccef6c4
201810c
02737d6
355d969
581a9f2
2d2eb2d
d054cc4
5ce8687
34e7cab
159c731
347489f
9cdce47
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,42 @@ | ||
| // 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 O2_FDD_FEE_CONFIGURATION | ||
| #define O2_FDD_FEE_CONFIGURATION | ||
|
|
||
| #include "DataFormatsFIT/Configuration.h" | ||
|
|
||
| namespace o2::fdd | ||
| { | ||
| struct TriggersConfig { | ||
| float vertexTimeLowThreshold{o2::fit::config_helpers::DefaultValue}; | ||
| float vertexTimeHighThreshold{o2::fit::config_helpers::DefaultValue}; | ||
| uint16_t semicentralA{o2::fit::config_helpers::DefaultValue}; | ||
| uint16_t semicentralC{o2::fit::config_helpers::DefaultValue}; | ||
| uint16_t centralA{o2::fit::config_helpers::DefaultValue}; | ||
| uint16_t centralC{o2::fit::config_helpers::DefaultValue}; | ||
| uint8_t sidesCombinationMode{o2::fit::config_helpers::DefaultValue}; | ||
|
|
||
| ClassDefNV(TriggersConfig, 1); | ||
| }; | ||
|
|
||
| struct FddFeeConfiguration { | ||
| static constexpr int NChannels = 16; | ||
| TriggersConfig triggers; | ||
| o2::fit::ChannelsConfig<NChannels> channels; | ||
| o2::fit::TcmConfig tcm; | ||
| o2::fit::PmConfig pmA[10]; | ||
| o2::fit::PmConfig pmC[10]; | ||
|
|
||
| ClassDefNV(FddFeeConfiguration, 1); | ||
| }; | ||
| } // namespace o2::fdd | ||
| #endif | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| // 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 O2_FDD_HV_CONFIGURATION | ||
| #define O2_FDD_HV_CONFIGURATION | ||
|
|
||
| #include "DataFormatsFIT/Configuration.h" | ||
| #include <Rtypes.h> | ||
|
|
||
| namespace o2::fdd | ||
| { | ||
| struct FddHvConfiguration { | ||
| static constexpr int NChannels = 16; | ||
| o2::fit::HvChannelsConfig<NChannels> channels; | ||
| ClassDefNV(FddHvConfiguration, 1); | ||
| }; | ||
| } // namespace o2::fdd | ||
| #endif |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| // 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 O2_FT0_FEE_CONFIGURATION | ||
| #define O2_FT0_FEE_CONFIGURATION | ||
|
|
||
| #include "CommonUtils/ConfigurableParamHelper.h" | ||
| #include "DataFormatsFIT/Configuration.h" | ||
| #include <Rtypes.h> | ||
|
|
||
| namespace o2::ft0 | ||
| { | ||
| struct TriggersConfig { | ||
| int16_t vertexTimeLowThreshold{o2::fit::config_helpers::DefaultValue}; | ||
| int16_t vertexTimeHighThreshold{o2::fit::config_helpers::DefaultValue}; | ||
|
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. Just cross-check the data types.. |
||
| uint16_t semicentralA{o2::fit::config_helpers::DefaultValue}; | ||
| uint16_t semicentralC{o2::fit::config_helpers::DefaultValue}; | ||
| uint16_t centralA{o2::fit::config_helpers::DefaultValue}; | ||
| uint16_t centralC{o2::fit::config_helpers::DefaultValue}; | ||
| uint8_t sidesCombinationMode{o2::fit::config_helpers::DefaultValue}; | ||
| ClassDefNV(TriggersConfig, 1); | ||
| }; | ||
|
|
||
| struct Ft0FeeConfiguration { | ||
| static constexpr int NChannels = 208; | ||
| TriggersConfig triggers; | ||
| o2::fit::ChannelsConfig<NChannels> channels; | ||
| o2::fit::TcmConfig tcm; | ||
| o2::fit::PmConfig pmA[10]; | ||
| o2::fit::PmConfig pmC[10]; | ||
| ClassDefNV(Ft0FeeConfiguration, 1); | ||
| }; | ||
| } // namespace o2::ft0 | ||
| #endif | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| // 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 O2_FT0_HV_CONFIGURATION | ||
| #define O2_FT0_HV_CONFIGURATION | ||
|
|
||
| #include "CommonUtils/ConfigurableParamHelper.h" | ||
| #include "DataFormatsFIT/Configuration.h" | ||
| #include <Rtypes.h> | ||
|
|
||
| namespace o2::ft0 | ||
| { | ||
| struct Ft0HvConfiguration { | ||
| static constexpr int NChannels = 208; | ||
| o2::fit::HvChannelsConfig<NChannels> channels; | ||
| ClassDefNV(Ft0HvConfiguration, 1); | ||
| }; | ||
| } // namespace o2::ft0 | ||
| #endif |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| // 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 O2_FV0_FEE_CONFIGURATION | ||
| #define O2_FV0_FEE_CONFIGURATION | ||
|
|
||
| #include "DataFormatsFIT/Configuration.h" | ||
|
|
||
| namespace o2::fv0 | ||
| { | ||
| struct TriggersConfig { | ||
| uint16_t nChannels{o2::fit::config_helpers::DefaultValue}; | ||
| uint16_t innerRings{o2::fit::config_helpers::DefaultValue}; | ||
| uint16_t charge{o2::fit::config_helpers::DefaultValue}; | ||
| uint16_t outerRings{o2::fit::config_helpers::DefaultValue}; | ||
| uint8_t sidesCombinationMode{o2::fit::config_helpers::DefaultValue}; | ||
|
|
||
| ClassDefNV(TriggersConfig, 1); | ||
| }; | ||
|
|
||
| struct Fv0FeeConfiguration { | ||
| static constexpr int NChannels = 48; | ||
| TriggersConfig triggers; | ||
| o2::fit::ChannelsConfig<NChannels> channels; | ||
| o2::fit::TcmConfig tcm; | ||
| o2::fit::PmConfig pmA[10]; | ||
|
|
||
| ClassDefNV(Fv0FeeConfiguration, 1); | ||
| }; | ||
| } // namespace o2::fv0 | ||
| #endif |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| // 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 O2_FV0_HV_CONFIGURATION | ||
| #define O2_FV0_HV_CONFIGURATION | ||
|
|
||
| #include "DataFormatsFIT/Configuration.h" | ||
| #include <Rtypes.h> | ||
|
|
||
| namespace o2::fv0 | ||
| { | ||
| struct Fv0HvConfiguration { | ||
| static constexpr int NChannels = 48; | ||
| o2::fit::HvChannelsConfig<NChannels> channels; | ||
| ClassDefNV(Fv0HvConfiguration, 1); | ||
| }; | ||
| } // namespace o2::fv0 | ||
| #endif |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,4 +40,8 @@ | |
| #pragma link C++ class o2::fv0::FV0CalibrationInfoObject + ; | ||
| #pragma link C++ class o2::fv0::FV0ChannelTimeCalibrationObject + ; | ||
|
|
||
| #pragma link C++ struct o2::fv0::Fv0FeeConfiguration + ; | ||
| #pragma link C++ struct o2::fit::ChannelsConfig < 48> + ; | ||
| #pragma link C++ struct o2::fv0::Fv0HvConfiguration + ; | ||
| #pragma link C++ struct o2::fit::HvChannelsConfig < 48> + ; | ||
|
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. Missing ?? |
||
| #endif | ||
Uh oh!
There was an error while loading. Please reload this page.