Stand-alone bunch group tool knowing some static configurations. More...
#include <StaticBunchCrossingTool.h>
Public Member Functions | |
StaticBunchCrossingTool (const std::string &name="StaticBunchCrossingTool") | |
Create a proper constructor for Athena. | |
virtual StatusCode | initialize () |
Function initialising the tool. | |
StatusCode | loadConfig (int bgkey) |
Load a hard-coded bunch group key. | |
StatusCode | loadConfig (const std::vector< int > &filledBunches, const std::vector< float > &filledIntensities=std::vector< float >(), const std::vector< int > &unpairedBunches=std::vector< int >(), const std::vector< float > &unpairedIntensities=std::vector< float >()) |
Load a configuration specified by the user. |
Stand-alone bunch group tool knowing some static configurations.
This tool can be used out of the box to get information about some of the bunch layouts which were used to take data. It takes its knowledge from the "StaticConfigs.h" file.
It can be used in a standalone analysis code to analyse ntuples for instance.
Trig::StaticBunchCrossingTool::StaticBunchCrossingTool | ( | const std::string & | name = "StaticBunchCrossingTool" |
) |
Create a proper constructor for Athena.
Default constructor
The constructor reads all the configurations out of "StaticConfigs.h" and sets up the tool using those.
StatusCode Trig::StaticBunchCrossingTool::loadConfig | ( | const std::vector< int > & | filledBunches, | |
const std::vector< float > & | filledIntensities = std::vector< float >() , |
|||
const std::vector< int > & | unpairedBunches = std::vector< int >() , |
|||
const std::vector< float > & | unpairedIntensities = std::vector< float >() | |||
) |
Load a configuration specified by the user.
To make it possible to quickly try out new configurations, this public function configures the underlying tool from a list of bunches (and optionally bunch intensities) given by the user.
Only used for testing at the moment.
bunches | The filled bunches which should be interpreted | |
intensities | The intensities of these filled bunches (optional) |
StatusCode::SUCCESS
if loading the configuration was successful, StatusCode::FAILURE
otherwise StatusCode Trig::StaticBunchCrossingTool::loadConfig | ( | int | bgkey | ) |
Load a hard-coded bunch group key.
This function tries to load one of the pre-defined configurations. The code knows about all the bunch-group settings up to BGKey=105 at the moment.
bgkey | Bunch group key of the requested configuration |
StatusCode::SUCCESS
if loading the configuration was successful, StatusCode::FAILURE
otherwise