ATLAS Offline Software
Loading...
Searching...
No Matches
G4InputLoader.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
6// G4InputLoader.cxx
7// Implementation file for class G4InputLoader
9
10#include "G4InputLoader.h"
11
12#include "Gaudi/Property.h"
13
16
17G4InputLoader::G4InputLoader( const std::string& name,
18 ISvcLocator* pSvcLocator ) :
19 ::AthAlgorithm( name, pSvcLocator ), m_mcTruth("GEN_EVENT")
20{
21 declareProperty( "McTruth", m_mcTruth="GEN_EVENT" );
22}
23
24
26{
27 ATH_MSG_DEBUG ("Executing " << name() << "...");
28
29 const McEventCollection* genEvt = 0;
30 CHECK(evtStore()->retrieve(genEvt, m_mcTruth));
31
33
34 return StatusCode::SUCCESS;
35}
#define ATH_MSG_DEBUG(x)
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
virtual StatusCode execute()
std::string m_mcTruth
G4InputLoader(const std::string &name, ISvcLocator *pSvcLocator)
This defines the McEventCollection, which is really just an ObjectVector of McEvent objectsFile: Gene...
-event-from-file