![]() |
ATLAS Offline Software
|
ByteStream converter for the L1TopoRDOCollection. More...
#include <L1TopoByteStreamCnv.h>
Public Member Functions | |
L1TopoByteStreamCnv (ISvcLocator *svcloc) | |
Standard constructor. More... | |
~L1TopoByteStreamCnv () | |
Standard destructor. More... | |
virtual StatusCode | initialize () |
Function connecting to all the needed services/tools. More... | |
virtual StatusCode | createObjConst (IOpaqueAddress *pAddr, DataObject *&pObj) const |
Function creating the L1TopoRDOCollection object from a L1Topo ROB fragment. More... | |
virtual StatusCode | createRepConst (DataObject *pObj, IOpaqueAddress *&pAddr) const |
Function creating the L1Topo ROB fragment from a L1TopoRDOCollection object. More... | |
virtual long | repSvcType () const |
Function needed by the framework. More... | |
virtual StatusCode | createObj (IOpaqueAddress *pAddress, DataObject *&refpObject) override final |
Create the transient representation of an object. More... | |
virtual StatusCode | createRep (DataObject *pObject, IOpaqueAddress *&refpAddress) override final |
Convert the transient object to the requested representation. More... | |
const std::string & | name () const |
void | addTrack (TIDA::Track *t) |
const std::vector< TIDA::Track * > & | tracks () const |
void | clear () |
void | selectTracks (const TrigInDetTrackCollection *trigtracks) |
void | selectTracks (const Rec::TrackParticleContainer *trigtracks) |
void | selectTracks (const Analysis::MuonContainer *muontracks) |
bool | msgLvl (const MSG::Level lvl) const |
Test the output level. More... | |
MsgStream & | msg () const |
The standard message stream. More... | |
MsgStream & | msg (const MSG::Level lvl) const |
The standard message stream. More... | |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
Static Public Member Functions | |
static long | storageType () |
Function needed by the framework. More... | |
static const CLID & | classID () |
Function needed by the framework. More... | |
Protected Member Functions | |
double | phiCorr (double phi) |
void | ipCorr (double d0, double z0, double &d0c, double &z0c, double phi0, double eta, double pt) |
Protected Attributes | |
double | m_beamX |
double | m_beamY |
double | m_beamZ |
std::vector< TIDA::Track * > | m_tracks |
Private Member Functions | |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
ToolHandle< L1TopoByteStreamTool > | m_tool |
Tool doing the actual conversion. More... | |
L1TopoSrcIdMap * | m_srcIdMap |
Object storing the various IDs of the CTP fragment. More... | |
ServiceHandle< IROBDataProviderSvc > | m_robDataProvider |
Service used when reading the BS data. More... | |
ServiceHandle< IByteStreamEventAccess > | m_ByteStreamEventAccess |
Service used when writing the BS data. More... | |
std::string | m_name |
std::string | m_nm |
Message source name. More... | |
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
MsgStream instance (a std::cout like with print-out levels) More... | |
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
MessageSvc pointer. More... | |
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
Current logging level. More... | |
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
Messaging initialized (initMessaging) More... | |
ByteStream converter for the L1TopoRDOCollection.
This is a quite standard BS converter for the output sent from L1Topo to its ROS. It uses a separate tool (L1TopoByteStreamTool) to do the actual work of the conversion, this converter is just to communicate with the framework. It was based on CTPByteStreamCnv by David Berge and the L1Calo converters by Alan Watson and Peter Faulkner.
Definition at line 40 of file L1TopoByteStreamCnv.h.
L1TopoByteStreamCnv::L1TopoByteStreamCnv | ( | ISvcLocator * | svcloc | ) |
Standard constructor.
The constructor sets up all the ToolHandle and ServiceHandle objects and initialises the base class in the correct way.
Definition at line 28 of file L1TopoByteStreamCnv.cxx.
L1TopoByteStreamCnv::~L1TopoByteStreamCnv | ( | ) |
Standard destructor.
The destructor actually does some cleanup, it deletes the L1TopoSrcIdMap object that is created in the initialize() function.
Definition at line 39 of file L1TopoByteStreamCnv.cxx.
|
inlineinherited |
Definition at line 45 of file Converter.h.
Function needed by the framework.
Function telling the framework the Class ID of the object that this converter is for (L1TopoRDOCollection).
Definition at line 50 of file L1TopoByteStreamCnv.cxx.
|
inlineinherited |
Definition at line 53 of file Converter.h.
|
finaloverridevirtualinherited |
Create the transient representation of an object.
Non-const version; just calls the const version.
Definition at line 44 of file AthConstConverter.cxx.
|
virtual |
Function creating the L1TopoRDOCollection object from a L1Topo ROB fragment.
This function creates the L1TopoRDO collection from the BS data.
It requests the ROB fragments with the ROB IDs of the L1Topo DAQ modules and gives these fragments to the L1TopoByteStreamTool for conversion.
Reimplemented from AthConstConverter.
Definition at line 118 of file L1TopoByteStreamCnv.cxx.
|
finaloverridevirtualinherited |
Convert the transient object to the requested representation.
Non-const version; just calls the const version.
Definition at line 56 of file AthConstConverter.cxx.
|
virtual |
Function creating the L1Topo ROB fragment from a L1TopoRDOCollection object.
This function receives a L1TopoRDO object as input, and adds the ROB fragment of the L1Topo to the current raw event using the IByteStreamEventAccess interface.
Reimplemented from AthConstConverter.
Definition at line 147 of file L1TopoByteStreamCnv.cxx.
|
virtual |
Function connecting to all the needed services/tools.
Init method gets all necessary services etc.
Definition at line 61 of file L1TopoByteStreamCnv.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inlineprotectedinherited |
Definition at line 257 of file Converter.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
lvl | The message level to test against |
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
|
inlineinherited |
Definition at line 67 of file AthConstConverter.h.
|
inlineprotectedinherited |
|
inlinevirtual |
Function needed by the framework.
Definition at line 60 of file L1TopoByteStreamCnv.h.
|
inlineinherited |
Definition at line 177 of file Converter.h.
|
inlineinherited |
Definition at line 111 of file Converter.h.
|
inlineinherited |
Definition at line 56 of file Converter.h.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
|
static |
Function needed by the framework.
Definition at line 54 of file L1TopoByteStreamCnv.cxx.
|
inlineinherited |
Definition at line 50 of file Converter.h.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
protectedinherited |
Definition at line 320 of file Converter.h.
|
protectedinherited |
Definition at line 320 of file Converter.h.
|
protectedinherited |
Definition at line 320 of file Converter.h.
|
private |
Service used when writing the BS data.
Definition at line 76 of file L1TopoByteStreamCnv.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Definition at line 71 of file AthConstConverter.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
private |
Service used when reading the BS data.
Definition at line 74 of file L1TopoByteStreamCnv.h.
|
private |
Object storing the various IDs of the CTP fragment.
Definition at line 71 of file L1TopoByteStreamCnv.h.
|
private |
Tool doing the actual conversion.
Definition at line 68 of file L1TopoByteStreamCnv.h.
|
protectedinherited |
Definition at line 321 of file Converter.h.