The trigger config implementation of IBunchCrossingTool. More...
#include <TrigConfBunchCrossingTool.h>
Public Member Functions | |
TrigConfBunchCrossingTool (const std::string &type, const std::string &name, const IInterface *parent) | |
Standard AlgTool constructor. | |
virtual StatusCode | initialize () |
Regular AlgTool initialization function. | |
virtual void | handle (const Incident &inc) |
Function called when a registered incident happens. | |
virtual configid_type | configID () const |
Unique identifier for the current configuration. | |
virtual std::vector< float > | configuredIntensitiesBeam1 () const |
Override the default implementation because this tool doesn't provide this info. | |
virtual std::vector< float > | configuredIntensitiesBeam2 () const |
Override the default implementation because this tool doesn't provide this info. | |
virtual std::vector< float > | configuredUnpairedIntensitiesBeam1 () const |
Override the default implementation because this tool doesn't provide this info. | |
virtual std::vector< float > | configuredUnpairedIntensitiesBeam2 () const |
Override the default implementation because this tool doesn't provide this info. |
The trigger config implementation of IBunchCrossingTool.
This implementation should be used primarily to get information about the bunch pattern for data files. It retrieves the bunch pattern configuration using the trigger configuration service. So in principle it can itself get the configuration from a few different places. (Currently TrigConf::LVL1ConfigSvc and TrigConf::DSConfigSvc provide this information.)
It also acts as a bunch crossing configuration provider, implementing the Trig::IBunchCrossingConfProvider interface.
IBunchCrossingConfProvider::configid_type Trig::TrigConfBunchCrossingTool::configID | ( | ) | const [virtual] |
Unique identifier for the current configuration.
This specialization of the function just returns the BGKey of the currently loaded configuration. This is the simplest implementation for this function...
Implements Trig::IBunchCrossingConfProvider.
std::vector< float > Trig::TrigConfBunchCrossingTool::configuredIntensitiesBeam1 | ( | ) | const [virtual] |
Override the default implementation because this tool doesn't provide this info.
This function will always return an empty vector, because this tool doesn't provide this sort of information. While saving the default 1.0 values for all the filled bunches would have the same result right now, the tools may handle the absence of the intensity information in different ways in the future.
Reimplemented from Trig::BunchCrossingConfProviderBase.
std::vector< float > Trig::TrigConfBunchCrossingTool::configuredIntensitiesBeam2 | ( | ) | const [virtual] |
Override the default implementation because this tool doesn't provide this info.
This function will always return an empty vector, because this tool doesn't provide this sort of information. While saving the default 1.0 values for all the filled bunches would have the same result right now, the tools may handle the absence of the intensity information in different ways in the future.
Reimplemented from Trig::BunchCrossingConfProviderBase.
std::vector< float > Trig::TrigConfBunchCrossingTool::configuredUnpairedIntensitiesBeam1 | ( | ) | const [virtual] |
Override the default implementation because this tool doesn't provide this info.
This function will always return an empty vector, because this tool doesn't provide this sort of information. While saving the default 1.0 values for all the unpaired bunches would have the same result right now, the tools may handle the absence of the intensity information in different ways in the future.
Reimplemented from Trig::BunchCrossingConfProviderBase.
std::vector< float > Trig::TrigConfBunchCrossingTool::configuredUnpairedIntensitiesBeam2 | ( | ) | const [virtual] |
Override the default implementation because this tool doesn't provide this info.
This function will always return an empty vector, because this tool doesn't provide this sort of information. While saving the default 1.0 values for all the unpaired bunches would have the same result right now, the tools may handle the absence of the intensity information in different ways in the future.
Reimplemented from Trig::BunchCrossingConfProviderBase.
void Trig::TrigConfBunchCrossingTool::handle | ( | const Incident & | inc | ) | [virtual] |
Function called when a registered incident happens.
The function checks if it received the expected type of incident, and then instructs the tool to check if its configuration needs to be changed.
Reimplemented from asg::AsgMetadataTool.