1 #ifndef SLIC_LCIOMANAGER_HH_
2 #define SLIC_LCIOMANAGER_HH_ 1
5 #include "lcdd/detectors/SensitiveDetector.hh"
6 #include "lcdd/hits/CalorimeterHit.hh"
7 #include "lcdd/hits/TrackerHit.hh"
15 #include "IO/LCWriter.h"
16 #include "EVENT/MCParticle.h"
17 #include "IMPL/SimCalorimeterHitImpl.h"
18 #include "IMPL/SimTrackerHitImpl.h"
19 #include "IMPL/LCCollectionVec.h"
20 #include "IMPL/LCEventImpl.h"
21 #include "IMPL/LCRunHeaderImpl.h"
22 #include "IMPL/MCParticleImpl.h"
26 #include "G4PrimaryParticle.hh"
33 class G4VHitsCollection;
78 void setPath(
const std::string& path);
120 void endRun(
const G4Run* run);
141 void addCollection(EVENT::LCEvent* lcevent, EVENT::LCCollection* collection,
const std::string&
name);
153 void endEvent(
const G4Event* anEvent);
Automatically name LCIO output files according to input settings.
Builds Lcio hits collections from G4/SLIC event data.
void setStoreMomentum(bool storeMomentum=true)
Singleton manager class of LCIO configuration and output file operations.
std::vector< std::string > m_currentAutonameFields
LcioHitsCollectionBuilder * getHitsCollectionBuilder()
void endRun(const G4Run *run)
void setCurrentLCEvent(IMPL::LCEventImpl *anLCEvent)
void setFileExistsAction(EFileExistsAction fea)
LcioFileNamer * getFileNamer()
LcioHitsCollectionBuilder * m_HCBuilder
std::string getFullOutputPath(bool withExtension=false)
void enableDumpEvent(bool p=true)
void setRunNumber(int runNumber)
void createHitsCollections()
static EFileExistsAction getFileExistsActionFromString(const std::string &fileExists)
void setFilename(const std::string &filename)
LcioMessenger * m_messenger
void addActiveSubdetectors()
void setAutonameFields(const std::vector< std::string > &fields)
IMPL::LCEventImpl * getCurrentLCEvent()
void setPath(const std::string &path)
EFileExistsAction getFileExistsAction()
void setWriteCompleteEvent(G4bool writeCompleteEvent)
void endEvent(const G4Event *anEvent)
void setStoreMomentum(bool s=true)
void beginRun(const G4Run *run)
static std::string m_defaultFileName
G4bool getWriteCompleteEvent()
IMPL::LCEventImpl * m_currentLCEvent
void addCollection(EVENT::LCEvent *lcevent, EVENT::LCCollection *collection, const std::string &name)
EFileExistsAction m_fileExistsAction
IMPL::LCEventImpl * createLCEvent()
void createRunHeader(const G4Run *run)
IMPL::LCRunHeaderImpl * m_runHdr
G4UIcommand class for LCIO commands.
Base class for slic code modules that provides common functionality, such as logging to an output str...