Trig::StaticBunchCrossingTool Class Reference

Stand-alone bunch group tool knowing some static configurations. More...

#include <StaticBunchCrossingTool.h>

Inheritance diagram for Trig::StaticBunchCrossingTool:
Trig::BunchCrossingToolBase Trig::IBunchCrossingTool asg::AsgMetadataTool asg::IAsgTool asg::AsgTool asg::IAsgTool

List of all members.

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.

Detailed Description

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.

Author:
Attila Krasznahorkay <Attila.Krasznahorkay@cern.ch>
Revision
618331
Date
2014-09-24 13:55:26 +0200 (Wed, 24 Sep 2014)

Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Parameters:
bunches The filled bunches which should be interpreted
intensities The intensities of these filled bunches (optional)
Returns:
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.

Parameters:
bgkey Bunch group key of the requested configuration
Returns:
StatusCode::SUCCESS if loading the configuration was successful, StatusCode::FAILURE otherwise

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1