ATLAS Offline Software
|
Stand-alone bunch group tool knowing some static configurations. More...
#include <StaticBunchCrossingTool.h>
Public Types | |
enum | BeamType { Beam1 = 0, Beam2 = 1, Crossing = 2 } |
Types of the return values of the bcIntensity function. More... | |
enum | BunchCrossingType { Empty = 0, FirstEmpty = 1, MiddleEmpty = 2, Single = 100, Front = 200, Middle = 201, Tail = 202, Unpaired = 300 } |
Simplified type for a given bunch crossing. More... | |
enum | BunchDistanceType { NanoSec, BunchCrossings, FilledBunches } |
Enumeration specifying the units in which to expect the bunch distance type. More... | |
enum | BunchFillType { CollidingBunch = 0, UnpairedBunch = 1, EmptyBunch = 2, UnpairedBeam1 = 3, UnpairedBeam2 = 4 } |
Enumeration specifying what kind of bunch to use in the gap functions. More... | |
typedef unsigned int | bcid_type |
Declare the interface that this class provides. More... | |
Public Member Functions | |
StaticBunchCrossingTool (const std::string &name="StaticBunchCrossingTool") | |
Create a proper constructor for Athena. More... | |
virtual StatusCode | initialize () |
Function initialising the tool. More... | |
StatusCode | loadConfig (int bgkey) |
Load a hard-coded bunch group key. More... | |
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. More... | |
StatusCode | loadConfig (const std::vector< float > &bunches) |
Load the configuration specified by the user. More... | |
virtual void | print () const =0 |
Print the state of the tool. More... | |
virtual void | print () const |
Print the state of the tool. More... | |
virtual StatusCode | sysInitialize () |
Function initialising the tool in the correct way in Athena. More... | |
ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More... | |
const ServiceHandle< StoreGateSvc > & | evtStore () const |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More... | |
const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More... | |
virtual StatusCode | sysStart () override |
Handle START transition. More... | |
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
Return this algorithm's input handles. More... | |
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
Return this algorithm's output handles. More... | |
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
Declare a new Gaudi property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
Declare a new Gaudi property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
Declare a new Gaudi property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
Declare a new Gaudi property. More... | |
void | updateVHKA (Gaudi::Details::PropertyBase &) |
MsgStream & | msg () const |
MsgStream & | msg (const MSG::Level lvl) const |
bool | msgLvl (const MSG::Level lvl) const |
Protected Member Functions | |
StatusCode | loadSingleBunches (const std::vector< int > &bunches, const std::vector< float > &bunch_int1=std::vector< float >(), const std::vector< float > &bunch_int2=std::vector< float >()) |
Interpret the configuration for single bunches. More... | |
StatusCode | loadBunchTrains (const std::vector< int > &bunches, const std::vector< float > &bunch_int1=std::vector< float >(), const std::vector< float > &bunch_int2=std::vector< float >()) |
Interpret the configuration for bunch trains. More... | |
StatusCode | loadUnpairedBunches (const std::vector< int > &beam1, const std::vector< int > &beam2, const std::vector< float > &bunch_int1=std::vector< float >(), const std::vector< float > &bunch_int2=std::vector< float >()) |
Interpret the configuration for unpaired bunches. More... | |
void | printConfig () const |
Function printing the configuration of the tool. More... | |
void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
remove all handles from I/O resolution More... | |
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
Add StoreName to extra input/output deps as needed. More... | |
Private Types | |
typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
int | bunchSpacing (const std::vector< int > &bunches) const |
Get the apparent bunch spacing in the current configuration. More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
specialization for handling Gaudi::Property<SG::VarHandleKey> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
specialization for handling Gaudi::Property<SG::VarHandleBase> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More... | |
Private Attributes | |
int | m_bgkey |
Default key to be loaded. More... | |
std::map< int, std::vector< int > > | m_knownBGKeys |
All the hard-coded configs. More... | |
MetaStore_t | m_inputMetaStore |
Object accessing the input metadata store. More... | |
MetaStore_t | m_outputMetaStore |
Object accessing the output metadata store. More... | |
bool | m_beginInputFileCalled |
Flag helping to discover when the tool misses the opening of the first input file. More... | |
bool | m_useIncidents |
StoreGateSvc_t | m_evtStore |
Pointer to StoreGate (event store by default) More... | |
StoreGateSvc_t | m_detStore |
Pointer to StoreGate (detector store by default) More... | |
std::vector< SG::VarHandleKeyArray * > | m_vhka |
bool | m_varHandleArraysDeclared |
Callback functions helping in metadata reading/writing | |
void | setUseIncidents (const bool flag) |
virtual void | handle (const Incident &inc) |
Function receiving incidents from IncidentSvc/TEvent. More... | |
virtual StatusCode | beginInputFile () |
Function called when a new input file is opened. More... | |
virtual StatusCode | endInputFile () |
Function called when the currently open input file got completely processed. More... | |
virtual StatusCode | beginEvent () |
Function called when a new events is loaded. More... | |
virtual StatusCode | metaDataStop () |
Function called when the tool should write out its metadata. More... | |
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.
Definition at line 35 of file StaticBunchCrossingTool.h.
|
inherited |
Declare the interface that this class provides.
Convenience type definition
Definition at line 47 of file IBunchCrossingTool.h.
|
inherited |
Type of the metadata store object in Athena.
Definition at line 66 of file AsgMetadataTool.h.
|
inherited |
Type of the metadata store pointer in standalone mode.
Definition at line 68 of file AsgMetadataTool.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
|
inherited |
Types of the return values of the bcIntensity function.
The different information sources provide the "bunch intensity" information in quite different ways, and the information can mean different things actually. This enumeration is used to specify what exact type of information the user is looking for.
Enumerator | |
---|---|
Beam1 | The returned intensity should be for "beam 1". |
Beam2 | The returned intensity should be for "beam 2". |
Crossing | The returned intensity should describe the BC. |
Definition at line 118 of file IBunchCrossingTool.h.
|
inherited |
Simplified type for a given bunch crossing.
This enumeration can specify what kind of bunch crossing one BCID belongs to. The types could easily be extended later on.
Definition at line 145 of file IBunchCrossingTool.h.
|
inherited |
Enumeration specifying the units in which to expect the bunch distance type.
To make it clear for the following functions what units to interpret their return values in, it is possible to request their return values in different units.
Enumerator | |
---|---|
NanoSec | Distance in nanoseconds. |
BunchCrossings | Distance in units of 25 nanoseconds. |
FilledBunches | Distance in units of filled bunches (depends on filling scheme) |
Definition at line 174 of file IBunchCrossingTool.h.
|
inherited |
Enumeration specifying what kind of bunch to use in the gap functions.
The following functions can be used to calculate the gap before and after a specific BCID to some other bunch type. The gap can actually be wrt. two different types of bunches. The user may be interested between the space of two filled bunches, the space between an unpaired bunch and the previous filled bunch, the space between two unpaired bunches, or the space between a filled bunch and the previous unpaired bunch.
The empty type is just put here for completeness. Maybe once we'll be using 25 ns spacing in the bunch trains, this will be a useful parameter as well.
This enumeration helps in answeing all of these questions.
Definition at line 274 of file IBunchCrossingTool.h.
Trig::StaticBunchCrossingTool::StaticBunchCrossingTool | ( | const std::string & | name = "StaticBunchCrossingTool" | ) |
Create a proper constructor for Athena.
The constructor reads all the configurations out of "StaticConfigs.h" and sets up the tool using those.
Default constructor
Definition at line 17 of file StaticBunchCrossingTool.cxx.
|
virtualinherited |
Function returning the "intensity" of a given bunch crossing.
Implements Trig::IBunchCrossingTool.
Definition at line 106 of file BunchCrossingToolBase.cxx.
|
virtualinherited |
Get the type of the specific bunch crossing.
Implements Trig::IBunchCrossingTool.
Definition at line 166 of file BunchCrossingToolBase.cxx.
|
protectedvirtualinherited |
Function called when a new events is loaded.
Dummy implementation that can be overridden by the derived tool.
Reimplemented in AsgElectronEfficiencyCorrectionTool, TrigConf::xAODConfigTool, TauAnalysisTools::TauSelectionTool, TauAnalysisTools::DiTauSelectionTool, TauAnalysisTools::CommonSmearingTool, TauAnalysisTools::DiTauEfficiencyCorrectionsTool, Trig::TrigDecisionTool, TauAnalysisTools::TauEfficiencyCorrectionsTool, Trig::TrigConfBunchCrossingTool, xAODMaker::TriggerMenuMetaDataTool, and Trig::xAODBunchCrossingTool.
Definition at line 196 of file AsgMetadataTool.cxx.
|
protectedvirtualinherited |
Function called when a new input file is opened.
Dummy implementation that can be overridden by the derived tool.
Reimplemented in AsgElectronEfficiencyCorrectionTool, TrigConf::xAODConfigTool, PMGTools::PMGTruthWeightTool, BookkeeperTool, xAODMaker::FileMetaDataTool, BookkeeperDumperTool, Trig::TrigDecisionTool, xAODMaker::TriggerMenuMetaDataTool, xAODMaker::TruthMetaDataTool, Trig::xAODBunchCrossingTool, TauAnalysisTools::TauEfficiencyCorrectionsTool, and TauAnalysisTools::TauSmearingTool.
Definition at line 180 of file AsgMetadataTool.cxx.
|
virtualinherited |
Function returning whether the following bunches were filled, and how.
Implements Trig::IBunchCrossingTool.
Definition at line 734 of file BunchCrossingToolBase.cxx.
|
virtualinherited |
Function returning whether the previous bunches were filled, and how.
Implements Trig::IBunchCrossingTool.
Definition at line 718 of file BunchCrossingToolBase.cxx.
|
virtualinherited |
Function returning the intensities of the bunch crossings after the reference.
Implements Trig::IBunchCrossingTool.
Definition at line 781 of file BunchCrossingToolBase.cxx.
|
virtualinherited |
Function returning the intensities of the bunch crossings before the reference.
Implements Trig::IBunchCrossingTool.
Definition at line 750 of file BunchCrossingToolBase.cxx.
|
privateinherited |
Get the apparent bunch spacing in the current configuration.
This function tries to figure out what's the right bunch spacing for the current configuration, before the code would try to properly interpret the configuration.
This allows us to set a "MaxBunchSpacing" property of a relatively large number, but still be able to interpret configurations with very small gaps between bunch trains. (Like the 8b4e 2017 configurations.)
bunches | The filled bunches in the current configuration |
Definition at line 1225 of file BunchCrossingToolBase.cxx.
|
virtualinherited |
Get the bunch spacing in the trains.
Implements Trig::IBunchCrossingTool.
Definition at line 827 of file BunchCrossingToolBase.cxx.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>
Definition at line 199 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 259 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore
Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 95 of file AthCommonDataStore.h.
|
virtualinherited |
The distance of the specific bunch crossing from the front of the train.
This is one of the most tricky functions of this class.
When the user wants to ask the distance of a bunch crossing from the front of its train in units of nano seconds or bunch crossings, the main part of the logic is propagated to the algebra defined for the BunchCrossing class.
But when the user wants to know the distance in terms of filled bunches, the code has to treat 3 different bunch train configurations:
bunchtrain->begin()
.bunchtrain->train_front()
to bunchtrain->end()
, plus the filled bunches from bunchtrain->begin()
to the bcid in question.bunchtrain->train_front()
to the bcid in question.bcid | The bcid that should be checked |
type | The type of the requested return value |
Implements Trig::IBunchCrossingTool.
Definition at line 239 of file BunchCrossingToolBase.cxx.
|
virtualinherited |
The distance of the specific bunch crossing from the tail of the train.
This is one of the most tricky functions of this class.
When the user wants to ask the distance of a bunch crossing from the tail of its train in units of nano seconds or bunch crossings, the main part of the logic is propagated to the algebra defined for the BunchCrossing class.
But when the user wants to know the distance in terms of filled bunches, the code has to treat 3 different bunch train configurations:
bunchtrain->end()
.bunchtrain->end()
, plus the filled bunches from bunchtrain->begin()
to bunchtrain->train_back()
.bunchtrain->train_back()
.bcid | The bcid that should be checked |
type | The type of the requested return value |
Implements Trig::IBunchCrossingTool.
Definition at line 316 of file BunchCrossingToolBase.cxx.
|
protectedvirtualinherited |
Function called when the currently open input file got completely processed.
Dummy implementation that can be overridden by the derived tool.
Reimplemented in BookkeeperTool, xAODMaker::FileMetaDataTool, BookkeeperDumperTool, xAODMaker::TriggerMenuMetaDataTool, and xAODMaker::TruthMetaDataTool.
Definition at line 188 of file AsgMetadataTool.cxx.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 85 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 90 of file AthCommonDataStore.h.
|
protectedinherited |
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
|
virtualinherited |
Gap after a particular bunch.
The function creates a smart BunchCrossing out of the BCID provided, then it goes looking for the next bunch crossing of the specified type.
Finally it just calculates the distance between the two bunch crossings in the requested units. It can return the size of the gap either in nanoseconds or in BCIDs (25 ns steps).
bcid | The bcid that should be investigated |
dtype | The type of the requested return value |
ftype | The type of the previous bunch to consider |
Implements Trig::IBunchCrossingTool.
Definition at line 608 of file BunchCrossingToolBase.cxx.
|
virtualinherited |
Gap after the train this BCID is in.
The function first finds the train that the specified BCID is in.
Then it calculates the size of the gap after this train. It can return the size of the gap either in nanoseconds or in BCIDs (25 ns steps).
bcid | The bcid whose train should be investigated |
type | The type of the requested return value |
Implements Trig::IBunchCrossingTool.
Definition at line 429 of file BunchCrossingToolBase.cxx.
|
virtualinherited |
Gap before a particular bunch.
The function creates a smart BunchCrossing out of the BCID provided, then it goes looking for the previous bunch crossing of the specified type.
Finally it just calculates the distance between the two bunch crossings in the requested units. It can return the size of the gap either in nanoseconds or in BCIDs (25 ns steps).
bcid | The bcid that should be investigated |
dtype | The type of the requested return value |
ftype | The type of the previous bunch to consider |
Implements Trig::IBunchCrossingTool.
Definition at line 487 of file BunchCrossingToolBase.cxx.
|
virtualinherited |
Gap before the train this BCID is in.
The function first finds the train that the specified BCID is in.
Then it calculates the size of the gap before this train. It can return the size of the gap either in nanoseconds or in BCIDs (25 ns steps).
bcid | The bcid whose train should be investigated |
type | The type of the requested return value |
Implements Trig::IBunchCrossingTool.
Definition at line 374 of file BunchCrossingToolBase.cxx.
|
inherited |
Get the (hashed) key of an object that is in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the SG::sgkey_t
key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
ptr | The bare pointer to the object that the event store should know about |
Definition at line 119 of file AsgTool.cxx.
Get the name of an object that is / should be in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the std::string
name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
ptr | The bare pointer to the object that the event store should know about |
Definition at line 106 of file AsgTool.cxx.
Get one of the tool's properties.
|
protectedvirtualinherited |
Function receiving incidents from IncidentSvc/TEvent.
Reimplemented in Trig::TrigDecisionTool.
Definition at line 130 of file AsgMetadataTool.cxx.
|
virtual |
Function initialising the tool.
Reimplemented from asg::AsgTool.
Definition at line 34 of file StaticBunchCrossingTool.cxx.
|
overridevirtualinherited |
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
inherited |
|
virtualinherited |
Function deciding if there was a bunch from "beam 1" in this bunch crossing.
Implements Trig::IBunchCrossingTool.
Definition at line 66 of file BunchCrossingToolBase.cxx.
|
virtualinherited |
Function deciding if there was a bunch from "beam 2" in this bunch crossing.
Implements Trig::IBunchCrossingTool.
Definition at line 86 of file BunchCrossingToolBase.cxx.
|
virtualinherited |
The simplest query: Is the bunch crossing filled or not?
Implements Trig::IBunchCrossingTool.
Definition at line 32 of file BunchCrossingToolBase.cxx.
|
virtualinherited |
Function deciding if a given bunch crossing is in a filled train.
Implements Trig::IBunchCrossingTool.
Definition at line 42 of file BunchCrossingToolBase.cxx.
|
virtualinherited |
Function deciding if a given bunch crossing has an unpaired bunch.
Implements Trig::IBunchCrossingTool.
Definition at line 56 of file BunchCrossingToolBase.cxx.
|
protectedinherited |
Interpret the configuration for bunch trains.
This function takes care of identifying the bunch trains in the configuration.
The algorithm is quite simple. It starts off with all the filled bunches that have not been identified as single bunches by the loadSingleBunches(...) function. It takes the first available bunch crossing, then loops over the rest of them. When it finds a BC that's "close enough" to the current bunch train, then the bunch train is extended. From there on the algorithm continues with this extended bunch train. When the loop reaches the end of the available bunches, the created bunch train is added to the cache, and the algorithms starts again with the first still available bunch crossing.
The bunch intensity parameter is optional. If it's not specified, the code will assign an intensity of "1.0" to all the bunch crossings.
bunches | The filled bunch crossings |
bunch_int | The "intensities" of the paired bunches |
StatusCode::SUCCESS
if the interpretation was successful, StatusCode::FAILURE
otherwise Definition at line 986 of file BunchCrossingToolBase.cxx.
StatusCode Trig::StaticBunchCrossingTool::loadConfig | ( | const std::vector< float > & | bunches | ) |
Load the configuration specified by the user.
This helper function is here to make it possible to extract the bunch configuration from an MC file in an Athena environment, and then use that as a hardcoded configuration to initialise this tool.
In this case the argument is the intensities of the bunches. From which the code uses the same logic as MCBunchCrossingTool to find the filled bunches.
bunches | The intensities of the BCIDs. Starting with BCID 0. |
StatusCode::SUCCESS
if loading the configuration was successful, StatusCode::FAILURE
otherwise Definition at line 128 of file StaticBunchCrossingTool.cxx.
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 Definition at line 94 of file StaticBunchCrossingTool.cxx.
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 Definition at line 56 of file StaticBunchCrossingTool.cxx.
|
protectedinherited |
Interpret the configuration for single bunches.
This function takes care of selecting the single bunches from the paired bunches.
These will then not be taken into account in the train finding algorithm.
The bunch intensity parameter is optional. If it's not specified, the code will assign an intensity of "1.0" to all the bunch crossings.
bunches | The paired bunches |
bunch_int | The "intensities" of the paired bunches |
StatusCode::SUCCESS
if the interpretation was successful, StatusCode::FAILURE
otherwise Definition at line 870 of file BunchCrossingToolBase.cxx.
|
protectedinherited |
Interpret the configuration for unpaired bunches.
This function just caches the unpaired bunches internally.
It doesn't have to do anything as fancy as the other two load functions, it just takes the BCIDs as they are.
bunches | The unpaired bunch crossings |
bunch_int | The "intensities" of the unpaired bunches |
StatusCode::SUCCESS
if the caching was successful, StatusCode::FAILURE
otherwise Definition at line 1117 of file BunchCrossingToolBase.cxx.
|
protectedvirtualinherited |
Function called when the tool should write out its metadata.
Dummy implementation that can be overridden by the derived tool.
Reimplemented in xAODMaker::FileMetaDataTool, BookkeeperTool, BookkeeperDumperTool, xAODMaker::TriggerMenuMetaDataTool, and xAODMaker::TruthMetaDataTool.
Definition at line 204 of file AsgMetadataTool.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 27 of file AthCommonMsg.h.
|
inherited |
A deprecated function for getting the message level's name.
Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:
This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.
Definition at line 101 of file AsgTool.cxx.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
virtualinherited |
Get the number of the bunch trains in the current configuration.
Implements Trig::IBunchCrossingTool.
Definition at line 821 of file BunchCrossingToolBase.cxx.
|
virtualinherited |
Get the number of filled bunches in the current configuration.
Implements Trig::IBunchCrossingTool.
Definition at line 811 of file BunchCrossingToolBase.cxx.
|
virtualinherited |
Get the number of unpaired bunches in the current configuration.
Implements Trig::IBunchCrossingTool.
Definition at line 816 of file BunchCrossingToolBase.cxx.
|
overridevirtualinherited |
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
inherited |
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
Definition at line 131 of file AsgTool.cxx.
|
pure virtualinherited |
Print the state of the tool.
Implemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, asg::AsgTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
|
protectedinherited |
Function printing the configuration of the tool.
This function is used to print the overall configuration in a format very similar to how atlas-runqery.cern.ch started showing this information recently.
Definition at line 1199 of file BunchCrossingToolBase.cxx.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
Definition at line 132 of file AsgMetadataTool.h.
|
virtualinherited |
Function initialising the tool in the correct way in Athena.
This function is used to set up the callbacks from IncidentSvc in Athena at the right time during initialisation, without the user having to do anything special in his/her code.
Reimplemented from AthCommonDataStore< AthCommonMsg< AlgTool > >.
Definition at line 110 of file AsgMetadataTool.cxx.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
privateinherited |
Flag helping to discover when the tool misses the opening of the first input file.
Definition at line 126 of file AsgMetadataTool.h.
|
private |
Default key to be loaded.
Definition at line 63 of file StaticBunchCrossingTool.h.
|
protectedinherited |
Internal list of bunch trains.
Definition at line 156 of file BunchCrossingToolBase.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
protectedinherited |
List of colliding bunches.
Definition at line 150 of file BunchCrossingToolBase.h.
|
protectedinherited |
Length of the "front" of a bunch train.
Definition at line 166 of file BunchCrossingToolBase.h.
|
privateinherited |
Object accessing the input metadata store.
Definition at line 119 of file AsgMetadataTool.h.
|
private |
All the hard-coded configs.
Definition at line 66 of file StaticBunchCrossingTool.h.
|
protectedinherited |
The maximum bunch spacing that the tool should consider.
Definition at line 164 of file BunchCrossingToolBase.h.
|
privateinherited |
Object accessing the output metadata store.
Definition at line 121 of file AsgMetadataTool.h.
|
protectedinherited |
Internal list of single bunches.
Definition at line 152 of file BunchCrossingToolBase.h.
|
protectedinherited |
Length of the "tail" of a bunch train.
Definition at line 168 of file BunchCrossingToolBase.h.
|
protectedinherited |
Internal list of unpaired bunches.
Definition at line 154 of file BunchCrossingToolBase.h.
|
privateinherited |
Definition at line 128 of file AsgMetadataTool.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.