27 for(
int i = 0;
i < BGK_CONF_N; ++
i ) {
28 for(
int j = 0; j < BGK_CONF_NUM[
i ]; ++j ) {
44 return StatusCode::SUCCESS;
61 std::map< int, std::vector< int > >::const_iterator bgset;
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;