ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
HLT
Trigger
TrigControl
TrigServices
src
TrigSORFromPtreeHelper.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef TRIGSORFROMPTREEHELPER_H_
5
#define TRIGSORFROMPTREEHELPER_H_
6
7
#include "
AthenaBaseComps/AthMessaging.h
"
8
#include "
AthenaPoolUtilities/CondAttrListCollection.h
"
9
#include "GaudiKernel/ServiceHandle.h"
10
#include "GaudiKernel/StatusCode.h"
11
#include "
StoreGate/StoreGateSvc.h
"
12
#include <boost/property_tree/ptree.hpp>
13
14
class
CondAttrListCollection
;
15
class
IMessageSvc;
16
25
class
TrigSORFromPtreeHelper
:
public
AthMessaging
{
26
public
:
27
typedef
CondAttrListCollection
SOR
;
28
36
TrigSORFromPtreeHelper
(IMessageSvc* msgSvc,
const
ServiceHandle<StoreGateSvc>
& detStore,
37
const
std::string& sorpath,
const
boost::property_tree::ptree& rparams);
38
43
void
setRunNumber
(
unsigned
int
run
) {
m_runNumber
=
run
; }
44
49
void
setSORtime_ns
(
unsigned
long
long
sorTime_ns) {
m_sorTime_ns
= sorTime_ns; }
50
55
StatusCode
fillSOR
(
const
EventContext& ctx)
const
;
56
60
EventIDBase
eventID
()
const
;
61
62
private
:
63
StatusCode createSOR
ATLAS_NOT_THREAD_SAFE
()
const
;
64
coral::AttributeList getAttrList
ATLAS_NOT_THREAD_SAFE
()
const
;
65
StatusCode
setIOVRange
(
IOVRange
& iovRange)
const
;
66
StatusCode
updateProxy
(
SOR
* sor)
const
;
67
68
ServiceHandle<StoreGateSvc>
m_detStore
;
69
std::string
m_sorpath
;
70
const
boost::property_tree::ptree&
m_rparams
;
71
unsigned
int
m_runNumber
{0};
72
unsigned
long
long
m_sorTime_ns
{0};
73
};
74
75
#endif
/* TRIGSORFROMPTREEHELPER_H_ */
AthMessaging.h
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
StoreGateSvc.h
AthMessaging::AthMessaging
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Definition
AthMessaging.cxx:13
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number.
Definition
CondAttrListCollection.h:51
IOVRange
Validity Range object.
Definition
IOVRange.h:30
ServiceHandle
Definition
ClusterMakerTool.h:36
TrigSORFromPtreeHelper::setIOVRange
StatusCode setIOVRange(IOVRange &iovRange) const
Definition
TrigSORFromPtreeHelper.cxx:165
TrigSORFromPtreeHelper::TrigSORFromPtreeHelper
TrigSORFromPtreeHelper(IMessageSvc *msgSvc, const ServiceHandle< StoreGateSvc > &detStore, const std::string &sorpath, const boost::property_tree::ptree &rparams)
Create the SOR helper @params msgSvc Pointer to MessageSvc @params detStore Handle to DetectorStore @...
Definition
TrigSORFromPtreeHelper.cxx:23
TrigSORFromPtreeHelper::setSORtime_ns
void setSORtime_ns(unsigned long long sorTime_ns)
Overwrite SOR time from RunParams @params sorTime_ns New start of run time in nanoseconds since epoch...
Definition
TrigSORFromPtreeHelper.h:49
TrigSORFromPtreeHelper::updateProxy
StatusCode updateProxy(SOR *sor) const
Definition
TrigSORFromPtreeHelper.cxx:178
TrigSORFromPtreeHelper::m_runNumber
unsigned int m_runNumber
Definition
TrigSORFromPtreeHelper.h:71
TrigSORFromPtreeHelper::ATLAS_NOT_THREAD_SAFE
coral::AttributeList getAttrList ATLAS_NOT_THREAD_SAFE() const
TrigSORFromPtreeHelper::setRunNumber
void setRunNumber(unsigned int run)
Overwrite run number from RunParams @params run New run number.
Definition
TrigSORFromPtreeHelper.h:43
TrigSORFromPtreeHelper::m_detStore
ServiceHandle< StoreGateSvc > m_detStore
Definition
TrigSORFromPtreeHelper.h:68
TrigSORFromPtreeHelper::SOR
CondAttrListCollection SOR
Definition
TrigSORFromPtreeHelper.h:27
TrigSORFromPtreeHelper::m_sorpath
std::string m_sorpath
Definition
TrigSORFromPtreeHelper.h:69
TrigSORFromPtreeHelper::m_sorTime_ns
unsigned long long m_sorTime_ns
Definition
TrigSORFromPtreeHelper.h:72
TrigSORFromPtreeHelper::fillSOR
StatusCode fillSOR(const EventContext &ctx) const
Fill SOR record in Detector Store, reusing if present or creating new one otherwise/ @params ctx Even...
Definition
TrigSORFromPtreeHelper.cxx:49
TrigSORFromPtreeHelper::ATLAS_NOT_THREAD_SAFE
StatusCode createSOR ATLAS_NOT_THREAD_SAFE() const
TrigSORFromPtreeHelper::eventID
EventIDBase eventID() const
Create an EventIDBase filled with the value from rparams.
Definition
TrigSORFromPtreeHelper.cxx:76
TrigSORFromPtreeHelper::m_rparams
const boost::property_tree::ptree & m_rparams
Definition
TrigSORFromPtreeHelper.h:70
run
int run(int argc, char *argv[])
Definition
ttree2hdf5.cxx:28
Generated on
for ATLAS Offline Software by
1.17.0