ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
TrigSerializeConvHelper Class Reference

#include <TrigSerializeConvHelper.h>

Inheritance diagram for TrigSerializeConvHelper:
Collaboration diagram for TrigSerializeConvHelper:

Public Member Functions

 TrigSerializeConvHelper (const std::string &name, const std::string &type, const IInterface *parent)
 
virtual ~TrigSerializeConvHelper ()
 
StatusCode createObj (const std::string &clname, IOpaqueAddress *iAddr, void *&ptr, bool isxAOD=false)
 
StatusCode createRep (const std::string &clname, void *ptr, std::vector< uint32_t > &out, bool isxAOD=false)
 
StatusCode initialize ()
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

ToolHandle< ITrigSerializerToolBasem_serializerTool
 
ToolHandle< TrigSerTPToolm_TPTool
 
ToolHandle< ITrigSerializeGuidHelperm_guidTool
 
bool m_doTP
 
std::map< std::string, std::string > m_oldEDMmap
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

it is the worker class for templated converters non templated code should be concentrated here to avoid massive recompilation of the templated code

Author
Jiri Masik Jiri..nosp@m.Masi.nosp@m.k@cer.nosp@m.n.ch

Definition at line 29 of file TrigSerializeConvHelper.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TrigSerializeConvHelper()

TrigSerializeConvHelper::TrigSerializeConvHelper ( const std::string &  name,
const std::string &  type,
const IInterface *  parent 
)

Definition at line 18 of file TrigSerializeConvHelper.cxx.

18  :
20  m_serializerTool("TrigTSerializer/TrigTSerializer"),
21  m_TPTool("TrigSerTPTool/TrigSerTPTool"),
22  m_guidTool("TrigSerializeGuidHelper/TrigSerializeGuidHelper"),
23  m_doTP(true)
24 {
25  declareInterface<ITrigSerializeConvHelper>( this );
26  declareProperty("doTP", m_doTP, "allows to serialize/deserialize transient classes");
27 }

◆ ~TrigSerializeConvHelper()

TrigSerializeConvHelper::~TrigSerializeConvHelper ( )
virtual

Definition at line 29 of file TrigSerializeConvHelper.cxx.

29  {
30 }

Member Function Documentation

◆ createObj()

StatusCode TrigSerializeConvHelper::createObj ( const std::string &  clname,
IOpaqueAddress *  iAddr,
void *&  ptr,
bool  = false 
)
virtual
Returns
StatusCode

Implements ITrigSerConvHelperBase.

Definition at line 117 of file TrigSerializeConvHelper.cxx.

117  {
118  ptr = 0;
119  ATH_MSG_DEBUG("in TrigSerializeConvHelper::createObj for clname " << clname << " is xAOD? " << (isxAOD?"yes":"no"));
120 
121  //could alse get DATA (perhaps as std::any) from the IOA
122  TrigStreamAddress *addr = dynamic_cast<TrigStreamAddress*>(iAddr);
123  if (!addr) {
124  ATH_MSG_WARNING("createObj cast failed");
125  return StatusCode::FAILURE;
126  }
127 
128  ITrigSerializerToolBase* serializer = m_serializerTool.operator->();
129  serializer->reset();
130 
131  std::vector<uint32_t> v = addr->get();
132 
133  //we need to find the name of the ob
134  std::string cl = clname;
135 
136  if (m_doTP and !isxAOD)
137  cl = m_TPTool->persClassName(clname);
138 
139  uint32_t guid[4];
140 
141  bool versionChange = false;
142 
143  if (cl!=""){
144  StatusCode scid;
145  scid = serializer->peekCLID(v, guid);
146  if (scid.isFailure()){
147  //BS has no hint on the pers class - use the original table
148  ATH_MSG_DEBUG("BS does not hint on payload object " << cl);
149  if (m_oldEDMmap.find(clname)!=m_oldEDMmap.end()){
150  if (cl!=m_oldEDMmap[clname]){
151  ATH_MSG_DEBUG("Using backward compatibility map with " << m_oldEDMmap[clname]
152  << " instead of " << cl);
153  cl = m_oldEDMmap[clname];
154  }
155  }
156  } else {
157  //get the pers version from the BS
158  std::string nclass = cl;
159  StatusCode ai = m_guidTool->IntsToClassName(guid, nclass);
160  if (ai.isFailure()) {
161  //better do not decode
162  return StatusCode::FAILURE;
163  }
164  if (cl != nclass){
165  cl = nclass;
166  ATH_MSG_DEBUG("Got hint of " << cl << " different persistent class from the BS payload. Name from GUID: " << nclass);
167 
168  if(isxAOD){
169  ATH_MSG_DEBUG("This is an xAOD so probably the BS version is an older version of the xAOD type.");
170  }
171  versionChange = true;
172  }
173  }
174 
175  // Many variables in this class were changed from double to float.
176  // However, we wrote data in the past which contained values
177  // that were valid doubles but which were out of range for floats.
178  // So we can get FPEs when we read them.
179  // Disable FPEs when we're reading an instance of this class.
180  CxxUtils::FPControl fpcontrol;
181  if (cl == "xAOD::BTaggingTrigAuxContainer_v1") {
182  fpcontrol.holdExceptions();
183  }
184 
185  ptr = serializer->deserialize(cl, v);
186 
187  ATH_MSG_DEBUG(cl << " deserialized to " << ptr << " version change detected: " << (versionChange ? "yes":"no"));
188  }
189 
190  // T/P separation
191  bool isViewVector = cl.substr(0, 11) == "ViewVector<";
192  if (m_doTP and (!isxAOD or versionChange) and !isViewVector){
193  std::string transclass;
194 
195  ATH_MSG_DEBUG("converting with pername " << cl);
196 
197  void *transObj = m_TPTool->convertPT(cl,ptr, transclass);
198 
199  ATH_MSG_DEBUG("was converted to " << transclass << " at " << transObj);
200 
201  //persistent object not needed anymore
202  RootType persClObj(cl);
203  persClObj.Destruct(ptr);
204 
205  ptr = transObj;
206  }
207 
208  return StatusCode::SUCCESS;
209 }

◆ createRep()

StatusCode TrigSerializeConvHelper::createRep ( const std::string &  clname,
void *  ptr,
std::vector< uint32_t > &  out,
bool  = false 
)
virtual
Returns
StatusCode

Implements ITrigSerConvHelperBase.

Definition at line 213 of file TrigSerializeConvHelper.cxx.

214  {
215 
216  StatusCode sc(StatusCode::SUCCESS);
217 
218  ATH_MSG_DEBUG("in TrigSerializeConvHelper::createRep for clname" << clname << " is xAOD? " << (isxAOD?"yes":"no"));
219 
220  std::string cl = clname;
221  void *pObj = ptr;
222 
223  // T/P separation
224  if (m_doTP and !isxAOD){
225  std::string persclass("");
226  pObj = m_TPTool->convertTP(clname,ptr, persclass);
227  cl = persclass;
228  }
229 
230  ATH_MSG_DEBUG("convertTP: " << pObj << " of " << cl);
231 
232  //void *serptr(0);
233  //
234  ITrigSerializerToolBase* serializer = m_serializerTool.operator->();
235  serializer->reset();
236 
237  ATH_MSG_VERBOSE("About to get GUID for " << cl);
238 
239  //opposite from string to class
240  uint32_t irep[4];
241  StatusCode ai = m_guidTool->ClassNameToInts(cl, irep);
242  if (ai.isFailure()){
243  ATH_MSG_WARNING("Cannot store class identification for " << cl << " to BS");
244  }
245 
246  ATH_MSG_VERBOSE("got GUID: " << irep[0] << "-" << irep[1] << "-" << irep[2] << "-" << irep[3]);
247 
248  if (cl != "" && pObj){
249  serializer->setCLID(irep);
250  serializer->serialize(cl, pObj, out);
251  } else {
252  ATH_MSG_WARNING("did not serialize " << ptr << " of " << clname);
253  }
254 
255  if (m_doTP and !isxAOD){
256  //we don't need the persistent object anymore
257  RootType persClObj(cl);
258  persClObj.Destruct(pObj);
259  }
260 
261  ATH_MSG_DEBUG("pObj: " << pObj << " of " << cl << " payload: " << out.size());
262 
263  return sc;
264 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ initialize()

StatusCode TrigSerializeConvHelper::initialize ( )

Definition at line 32 of file TrigSerializeConvHelper.cxx.

32  {
33 
34  StatusCode sc = m_serializerTool.retrieve();
35 
36  if (!sc.isSuccess()){
37  ATH_MSG_DEBUG("m_serializer not retrieved");
38  return sc;
39  } else {
40  ATH_MSG_DEBUG("m_serializer retrieved");
41  /*
42  if (m_serializerTool->initialize().isSuccess()){
43  ATH_MSG_DEBUG( "serializer initialized" );
44  }
45  */
46  }
47 
48  StatusCode sctp = m_TPTool.retrieve();
49  if (!sctp.isSuccess()){
50  ATH_MSG_DEBUG( "m_TPTool not retrieved" );
51  return sctp;
52  } else {
53  ATH_MSG_DEBUG( "m_TPTool retrieved" );
54  /*
55  if (m_TPTool->initialize().isSuccess())
56  ATH_MSG_DEBUG( "m_TPTool initialized" );
57  */
58  }
59 
60  StatusCode scg = m_guidTool.retrieve();
61  if (!scg.isSuccess()){
62  ATH_MSG_DEBUG( m_guidTool << " not retrieved" );
63  return scg;
64  } else {
65  ATH_MSG_DEBUG( m_guidTool << "retrieved" );
66  }
67 
68  m_oldEDMmap[ "TrigRoiDescriptor" ] = "TrigRoiDescriptorCollection_tlp1";
69  m_oldEDMmap[ "TrigOperationalInfo" ] = "TrigOperationalInfoCollection_tlp1";
70  m_oldEDMmap[ "TrigInDetTrackCollection" ] = "TrigInDetTrackCollection_tlp1";
71  m_oldEDMmap[ "MuonFeature" ] = "MuonFeatureContainer_tlp1";
72  m_oldEDMmap[ "IsoMuonFeature" ] = "IsoMuonFeatureContainer_tlp1";
73  m_oldEDMmap[ "CombinedMuonFeature" ] = "CombinedMuonFeatureContainer_tlp1";
74  m_oldEDMmap[ "TileMuFeature" ] = "TileMuFeatureContainer_tlp1";
75  m_oldEDMmap[ "TileTrackMuFeature" ] = "TileTrackMuFeatureContainer_tlp1";
76  m_oldEDMmap[ "TrigEMCluster" ] = "TrigEMClusterContainer_tlp1";
77  //m_oldEDMmap[ "TrigEMCluster" ] = "TrigEMClusterContainer_tlp2";
78  m_oldEDMmap[ "RingerRings" ] = "RingerRingsContainer_tlp1";
79  m_oldEDMmap[ "TrigTauCluster" ] = "TrigTauClusterContainer_tlp1";
80  m_oldEDMmap[ "TrigTauClusterDetails" ] = "TrigTauClusterDetailsContainer_tlp1";
81  m_oldEDMmap[ "TrigTauTracksInfo" ] = "TrigTauTracksInfoCollection_tlp1";
82  m_oldEDMmap[ "TrigT2Jet" ] = "TrigT2JetContainer_tlp1";
83  m_oldEDMmap[ "TrigElectronContainer" ] = "TrigElectronContainer_tlp2";
84  m_oldEDMmap[ "TrigPhotonContainer" ] = "TrigPhotonContainer_tlp2";
85  m_oldEDMmap[ "TrigTau" ] = "TrigTauContainer_tlp1";
86  m_oldEDMmap[ "TrigL2BjetContainer" ] = "TrigL2BjetContainer_tlp2";
87  m_oldEDMmap[ "TrigMissingET" ] = "TrigMissingETContainer_tlp1";
88  m_oldEDMmap[ "TrigT2MbtsBits" ] = "TrigT2MbtsBitsContainer_tlp1";
89  m_oldEDMmap[ "TrigSpacePointCounts" ] = "TrigSpacePointCountsCollection_tlp1";
90  m_oldEDMmap[ "TrigTrtHitCounts" ] = "TrigTrtHitCountsCollection_tlp1";
91  m_oldEDMmap[ "CosmicMuonCollection" ] = "CosmicMuonCollection_tlp1";
92  m_oldEDMmap[ "MdtTrackSegmentCollection" ] = "MdtTrackSegmentCollection_tlp1";
93  m_oldEDMmap[ "TrigVertexCollection" ] = "TrigVertexCollection_tlp1";
94  m_oldEDMmap[ "TrigL2BphysContainer" ] = "TrigL2BphysContainer_tlp1";
95  m_oldEDMmap[ "TrigEFBphysContainer" ] = "TrigEFBphysContainer_tlp1";
96  m_oldEDMmap[ "TrigEFBjetContainer" ] = "TrigEFBjetContainer_tlp2";
97  m_oldEDMmap[ "JetCollection" ] = "JetCollection_tlp2";
98  m_oldEDMmap[ "CaloClusterContainer" ] = "CaloClusterContainer_p4";
99  m_oldEDMmap[ "CaloShowerContainer" ] = "CaloShowerContainer_p2";
100  //m_oldEDMmap[ "CaloTowerContainer" ] = "CaloTowerContainer_p1";
101  m_oldEDMmap[ "TrigMuonEFContainer" ] = "TrigMuonEFContainer_tlp1";
102  m_oldEDMmap[ "TrigMuonEFInfoContainer" ] = "TrigMuonEFInfoContainer_tlp1";
103  m_oldEDMmap[ "egDetailContainer" ] = "egDetailContainer_p1";
104  m_oldEDMmap[ "egammaContainer" ] = "egammaContainer_p1";
105  m_oldEDMmap[ "Analysis::TauJetContainer" ] = "TauJetContainer_p3";
106  m_oldEDMmap[ "TrigTrackCounts" ] = "TrigTrackCountsCollection_tlp1";
107  m_oldEDMmap[ "TrackCollection" ] = "Trk::TrackCollection_tlp2";
108  m_oldEDMmap[ "Rec::TrackParticleContainer" ] = "Rec::TrackParticleContainer_tlp1";
109  m_oldEDMmap[ "Analysis::TauDetailsContainer" ] ="TauDetailsContainer_tlp1";
110  m_oldEDMmap[ "VxContainer" ] = "";
111  m_oldEDMmap[ "CaloCellContainer" ] = "CaloCompactCellContainer";
112 
113 
114  return StatusCode::SUCCESS;
115 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ interfaceID()

static const InterfaceID& ITrigSerializeConvHelper::interfaceID ( )
inlinestaticinherited

Definition at line 52 of file ITrigSerConvHelper.h.

52 { return IID_ITrigSerConvHelper; }

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_doTP

bool TrigSerializeConvHelper::m_doTP
private

Definition at line 43 of file TrigSerializeConvHelper.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_guidTool

ToolHandle<ITrigSerializeGuidHelper> TrigSerializeConvHelper::m_guidTool
private

Definition at line 42 of file TrigSerializeConvHelper.h.

◆ m_oldEDMmap

std::map<std::string,std::string> TrigSerializeConvHelper::m_oldEDMmap
private

Definition at line 44 of file TrigSerializeConvHelper.h.

◆ m_serializerTool

ToolHandle< ITrigSerializerToolBase > TrigSerializeConvHelper::m_serializerTool
private

Definition at line 40 of file TrigSerializeConvHelper.h.

◆ m_TPTool

ToolHandle<TrigSerTPTool> TrigSerializeConvHelper::m_TPTool
private

Definition at line 41 of file TrigSerializeConvHelper.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
TrigSerializeConvHelper::m_TPTool
ToolHandle< TrigSerTPTool > m_TPTool
Definition: TrigSerializeConvHelper.h:41
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
ITrigSerializer::serialize
virtual void serialize(const std::string &nameOfClass, const void *instance, std::vector< uint32_t > &v)=0
serializes an object of a class nameOfClass pointed to by instance and recursively also other objects...
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
isxAOD
Definition: TrigSerializeConverter.h:48
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
dbg::ptr
void * ptr(T *p)
Definition: SGImplSvc.cxx:74
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
TrigStreamAddress::get
const std::vector< uint32_t > & get() const
Definition: TrigStreamAddress.cxx:32
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
ITrigSerializer::reset
virtual void reset()=0
clean internal serializer state.
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
pool_uuid.guid
guid
Definition: pool_uuid.py:112
ITrigSerializer::deserialize
virtual void * deserialize(const std::string &nameOfClass, const std::vector< uint32_t > &v)=0
deserializes an object of a class nameOfClass (and recursively other objects) found in std::vector<ui...
ITrigSerializer::setCLID
virtual void setCLID(const uint32_t *guid)=0
access clid of the payload virtual CLID getCLID() const = 0;
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
TrigSerializeConvHelper::m_oldEDMmap
std::map< std::string, std::string > m_oldEDMmap
Definition: TrigSerializeConvHelper.h:44
python.hypoToolDisplay.toolname
def toolname(tool)
Definition: hypoToolDisplay.py:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
python.PyAthena.v
v
Definition: PyAthena.py:154
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
TrigSerializeConvHelper::m_guidTool
ToolHandle< ITrigSerializeGuidHelper > m_guidTool
Definition: TrigSerializeConvHelper.h:42
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TrigSerializeConvHelper::m_doTP
bool m_doTP
Definition: TrigSerializeConvHelper.h:43
TrigStreamAddress
IOpaqueAddress for TrigSerializenCnvSvc.
Definition: TrigStreamAddress.h:23
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
ITrigSerializerToolBase
Definition: ITrigSerializerToolBase.h:88
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
TrigSerializeConvHelper::m_serializerTool
ToolHandle< ITrigSerializerToolBase > m_serializerTool
Definition: TrigSerializeConvHelper.h:40
ITrigSerializer::peekCLID
virtual StatusCode peekCLID(const std::vector< uint32_t > &v, uint32_t *guid) const =0
access clid of the payload (stored in BS)
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition: dq_make_web_display.py:26
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
fitman.k
k
Definition: fitman.py:528
TScopeAdapter
Definition: RootType.h:119