44 return StatusCode::SUCCESS;
63 ATH_MSG_ERROR(
"Couldn't find configuration for bunch group key: "
65 return StatusCode::FAILURE;
74 std::vector< int >() ) );
79 return StatusCode::SUCCESS;
95 loadConfig(
const std::vector< int >& filledBunches,
96 const std::vector< float >& filledIntensities,
97 const std::vector< int >& unpairedBunches,
98 const std::vector< float >& unpairedIntensities ) {
107 unpairedIntensities ) );
112 return StatusCode::SUCCESS;
129 loadConfig(
const std::vector< float >& bunches ) {
132 if( ! bunches.size() ) {
134 return StatusCode::FAILURE;
138 std::vector< int > filled_bunches;
139 std::vector< float > filled_intensities;
142 static const float MIN_BUNCH_INTENSITY = 0.1;
154 const int pos1 = i % bunches.size();
155 const int pos2 = bunches.size() - 1 - ( i % bunches.size() );
156 if( bunches[ pos1 ] > MIN_BUNCH_INTENSITY ) {
157 filled_bunches.push_back( i );
158 filled_intensities.push_back( bunches[ pos1 ] );
160 if( bunches[ pos2 ] > MIN_BUNCH_INTENSITY ) {
162 filled_intensities.push_back( bunches[ pos2 ] );
173 const int pos = i % bunches.size();
174 if( bunches[ pos ] > MIN_BUNCH_INTENSITY ) {
175 filled_bunches.push_back( i );
176 filled_intensities.push_back( bunches[ pos ] );
188 std::vector< int >() ) );
194 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
static const int BGK_CONF_KEY[BGK_CONF_N]
static const int BGK_CONF_NUM[BGK_CONF_N]
static const int *const BGK_CONF[BGK_CONF_N]
static const int BGK_CONF_N
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
static const int MAX_BCID
The maximum number of bunches that can be in the LHC.
The common trigger namespace for trigger analysis tools.