ATLAS Offline Software
TrigMuonEFInfoToMuonCnvAlg.icc
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 //
8 // TrigMuonEFInfoToMuonCnvAlg.icc
9 //
10 // Created by Mark Owen on 13/03/2014.
11 //
12 
13 namespace xAODMaker {
14  /// Utility function to record xAOD containers to the event store
15  template<class CONT, class AUXCONT>
16  inline
17  StatusCode TrigMuonEFInfoToMuonCnvAlg::recordxAODContainers(const std::string& containerName, const std::string& auxContainerName, CONT& xaod, AUXCONT& aux) {
18 
19  CHECK( evtStore()->record( &xaod, containerName ) );
20  CHECK( evtStore()->record( &aux, auxContainerName ) );
21  xaod.setStore( &aux );
22  ATH_MSG_DEBUG( "Recorded xAOD container with key: " << containerName );
23  return StatusCode::SUCCESS;
24  }
25 }//namespace xAODMaker