ATLAS Offline Software
Loading...
Searching...
No Matches
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
9#include "GaudiKernel/ServiceHandle.h"
10#include "GaudiKernel/StatusCode.h"
12#include <boost/property_tree/ptree.hpp>
13
15class IMessageSvc;
16
26public:
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
62private:
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
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_ */
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
This class is a collection of AttributeLists where each one is associated with a channel number.
Validity Range object.
Definition IOVRange.h:30
StatusCode setIOVRange(IOVRange &iovRange) const
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 @...
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...
StatusCode updateProxy(SOR *sor) const
coral::AttributeList getAttrList ATLAS_NOT_THREAD_SAFE() const
void setRunNumber(unsigned int run)
Overwrite run number from RunParams @params run New run number.
ServiceHandle< StoreGateSvc > m_detStore
CondAttrListCollection SOR
unsigned long long m_sorTime_ns
StatusCode fillSOR(const EventContext &ctx) const
Fill SOR record in Detector Store, reusing if present or creating new one otherwise/ @params ctx Even...
StatusCode createSOR ATLAS_NOT_THREAD_SAFE() const
EventIDBase eventID() const
Create an EventIDBase filled with the value from rparams.
const boost::property_tree::ptree & m_rparams
Definition run.py:1