ATLAS Offline Software
TrigConfBunchCrossingTool.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: TrigConfBunchCrossingTool.h 748399 2016-05-19 14:55:47Z krasznaa $
8 #ifndef TRIGBUNCHCROSSINGTOOL_TRIGCONFBUNCHCROSSINGTOOL_H
9 #define TRIGBUNCHCROSSINGTOOL_TRIGCONFBUNCHCROSSINGTOOL_H
10 
11 // Gaudi/Athena include(s):
12 #ifndef XAOD_STANDALONE
13 # include "GaudiKernel/ServiceHandle.h"
14 #endif // not XAOD_STANDALONE
15 #include "AsgTools/ToolHandle.h"
16 
17 // Trigger include(s):
18 #ifndef XAOD_STANDALONE
20 #endif // not XAOD_STANDALONE
22 
23 // Local include(s):
26 
27 namespace Trig {
28 
49 
54 
55  public:
57  TrigConfBunchCrossingTool( const std::string& name =
58  "TrigConfBunchCrossingTool" );
59 
61  virtual StatusCode initialize();
62 
64  virtual configid_type configID() const;
66  virtual std::vector< float > configuredIntensitiesBeam1() const;
68  virtual std::vector< float > configuredIntensitiesBeam2() const;
70  virtual std::vector< float > configuredUnpairedIntensitiesBeam1() const;
72  virtual std::vector< float > configuredUnpairedIntensitiesBeam2() const;
73 
74  protected:
76  virtual StatusCode beginEvent();
77 
78  private:
82  void printBunchGroups( const TrigConf::IILVL1ConfigSvc* svc ) const;
83 
85  unsigned int m_bgId;
86 
87 #ifndef XAOD_STANDALONE
90 #endif // not XAOD_STANDALONE
91 
93  ToolHandle< TrigConf::ITrigConfigTool > m_configTool;
94 
95  }; // class TrigConfBunchCrossingTool
96 
97 } // namespace Trig
98 
99 #endif // TRIGBUNCHCROSSINGTOOL_TRIGCONFBUNCHCROSSINGTOOL_H
Trig::BunchCrossingToolBase
Base class for all BunchCrossingTool implementations.
Definition: BunchCrossingToolBase.h:41
BunchCrossingToolBase.h
Trig::TrigConfBunchCrossingTool::m_bgId
unsigned int m_bgId
DB ID of the BunchGroups settings which was loaded last.
Definition: TrigConfBunchCrossingTool.h:85
Trig::IBunchCrossingTool
Interface for all the bunch crossing tools.
Definition: IBunchCrossingTool.h:40
Trig::TrigConfBunchCrossingTool
The trigger config implementation of IBunchCrossingTool.
Definition: TrigConfBunchCrossingTool.h:48
Trig
The common trigger namespace for trigger analysis tools.
Definition: CaloTowerVecMon.h:44
ITrigConfigTool.h
ASG_TOOL_CLASS2
#define ASG_TOOL_CLASS2(CLASSNAME, INT1, INT2)
Definition: AsgToolMacros.h:77
Trig::TrigConfBunchCrossingTool::configuredUnpairedIntensitiesBeam2
virtual std::vector< float > configuredUnpairedIntensitiesBeam2() const
Override the default implementation because this tool doesn't provide this info.
Definition: TrigConfBunchCrossingTool.cxx:166
TrigConf::IILVL1ConfigSvc
Interface for all services/tools that provide LVL1 menu configuration information.
Definition: IILVL1ConfigSvc.h:36
Trig::IBunchCrossingConfProvider
Inteface for providing the bunch structure information.
Definition: IBunchCrossingConfProvider.h:53
Trig::BunchCrossingConfProviderBase
Common implementation of the IBunchCrossingConfProvider interface.
Definition: BunchCrossingConfProviderBase.h:31
Trig::IBunchCrossingConfProvider::configid_type
unsigned int configid_type
Declare the interface that this class provides.
Definition: IBunchCrossingConfProvider.h:60
BunchCrossingConfProviderBase.h
Trig::TrigConfBunchCrossingTool::m_configSvc
ServiceHandle< TrigConf::ILVL1ConfigSvc > m_configSvc
The config service handle.
Definition: TrigConfBunchCrossingTool.h:89
ILVL1ConfigSvc.h
Trig::TrigConfBunchCrossingTool::configuredUnpairedIntensitiesBeam1
virtual std::vector< float > configuredUnpairedIntensitiesBeam1() const
Override the default implementation because this tool doesn't provide this info.
Definition: TrigConfBunchCrossingTool.cxx:151
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
Trig::TrigConfBunchCrossingTool::beginEvent
virtual StatusCode beginEvent()
Function called when a new event is loaded.
Definition: TrigConfBunchCrossingTool.cxx:92
Trig::TrigConfBunchCrossingTool::configuredIntensitiesBeam2
virtual std::vector< float > configuredIntensitiesBeam2() const
Override the default implementation because this tool doesn't provide this info.
Definition: TrigConfBunchCrossingTool.cxx:136
Trig::TrigConfBunchCrossingTool::configuredIntensitiesBeam1
virtual std::vector< float > configuredIntensitiesBeam1() const
Override the default implementation because this tool doesn't provide this info.
Definition: TrigConfBunchCrossingTool.cxx:121
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
Trig::TrigConfBunchCrossingTool::configID
virtual configid_type configID() const
Unique identifier for the current configuration.
Definition: TrigConfBunchCrossingTool.cxx:106
Trig::TrigConfBunchCrossingTool::loadConfig
StatusCode loadConfig()
Make sure that the latest/correct configuration is loaded.
Definition: TrigConfBunchCrossingTool.cxx:184
ToolHandle.h
Trig::TrigConfBunchCrossingTool::printBunchGroups
void printBunchGroups(const TrigConf::IILVL1ConfigSvc *svc) const
Print the "raw" configuration for debugging.
Definition: TrigConfBunchCrossingTool.cxx:277
Trig::TrigConfBunchCrossingTool::m_configTool
ToolHandle< TrigConf::ITrigConfigTool > m_configTool
The config tool handle.
Definition: TrigConfBunchCrossingTool.h:93
asg::AsgTool::initialize
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: AsgTool.h:133
ServiceHandle< TrigConf::ILVL1ConfigSvc >