ATLAS Offline Software
Loading...
Searching...
No Matches
VP1SGAccessHelper.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5
7// //
8// Implementation of class VP1SGAccessHelper //
9// //
10// Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
11// Initial version: March 2008 //
12// //
14
17#include "VP1Base/IVP1System.h"
18
19//____________________________________________________________________
21public:
22 Imp(IVP1System * sys,const bool detStore)
23 : sgcontents(sys,detStore),sg(sys?(detStore?sys->detectorStore():sys->storeGate()):0) {}
24 Imp(StoreGateSvc * the_sg)
25 : sgcontents(the_sg), sg(the_sg) {}
28};
29
30
31
32//____________________________________________________________________
34 : VP1HelperClassBase(sys,"VP1SGAccessHelper"), m_d(new Imp(sys,detStore))
35{
36 if (!sys)
37 message("ERROR: Received null system pointer (won't be able to get StoreGate pointer either)");
38 else if (!m_d->sg)
39 message("ERROR: Could not get "+QString(detStore?"storeGate":"detectorStore")+" pointer from system");
40}
41
42
43//____________________________________________________________________
45 : VP1HelperClassBase(0,"VP1SGContentsHelper"), m_d(new Imp(sg))
46{
47 if (!sg)
48 message("ERROR: Received null storegate pointer");
49}
50
51//____________________________________________________________________
56
57//____________________________________________________________________
59{
60 return m_d->sg;
61}
62
63//____________________________________________________________________
64bool VP1SGAccessHelper::contains(const CLID& id, const QString& key) const
65{
66 return m_d->sgcontents.contains(id,key);
67}
uint32_t CLID
The Class ID type.
The Athena Transient Store API.
VP1HelperClassBase(IVP1System *sys=0, QString helpername="")
void message(const QString &) const
Imp(StoreGateSvc *the_sg)
VP1SGContentsHelper sgcontents
Imp(IVP1System *sys, const bool detStore)
StoreGateSvc * storeGate() const
bool contains(const CLID &id, const QString &) const
VP1SGAccessHelper(IVP1System *, const bool detStore=false)