slic::LcioMcpPrinter Class Reference

#include <LcioMcpPrinter.hh>

Inheritance diagram for slic::LcioMcpPrinter:

Inheritance graph
slic::Module
[legend]
Collaboration diagram for slic::LcioMcpPrinter:

Collaboration graph
slic::Moduleslic::LogStreamslic::LogMessenger
[legend]

List of all members.


Detailed Description

Mcp printer, mostly for debugging output of MCParticle collection.

Definition at line 23 of file LcioMcpPrinter.hh.


Public Types

typedef std::vector< int > IdxVec
enum  ModuleStatus { eOkay = 0, eNotInitialized = 1, eBadState = 2, eFatalError = 3 }

Public Member Functions

 LcioMcpPrinter ()
virtual ~LcioMcpPrinter ()
void printMcpCollection (const std::string &collName, EVENT::LCCollection *coll)
const std::string & getName () const
const ModuleStatus getStatus () const
virtual void initialize ()
virtual void reset ()
virtual void cleanup ()
bool deleteOnExit ()
LogStreamlog ()
virtual void beginEvent (const G4Event *)
virtual void endEvent (const G4Event *)
virtual void beginRun (const G4Run *)
virtual void endRun (const G4Run *)
virtual void preTracking (const G4Track *)
virtual void postTracking (const G4Track *)
virtual void stepping (const G4Step *)
G4ClassificationOfNewTrack stackingClassifyNewTrack (const G4Track *)
void stackingNewStage ()
void stackingPrepareNewEvent ()

Public Attributes

ModuleStatus m_status
std::string m_name
LogStream m_log
bool m_deleteOnExit

Static Public Attributes

static const int idx_width = 4
static const int ptr_width = 10
static const int pdg_width = 5
static const int par_width = 15
static const int dau_width = 15
static const int mom_width = 20
static const int vtx_width = 20
static const int end_width = 20
static const int time_width = 6
static const int mass_width = 6
static const int chrg_width = 4
static const int e_width = 6
static const int stat_width = 5
static const int flags_width = 16

Protected Member Functions

void printMcpCollection ()
void printMcp (EVENT::MCParticle *mcp)
IdxVec findDaughterIndices (EVENT::MCParticle *mcp)
IdxVec findParentIndices (EVENT::MCParticle *mcp)
int findMcpIndex (EVENT::MCParticle *mcp)
void sep ()
void line ()
void head ()
void foot ()
void colLabels ()
void flagLabels ()

Static Protected Member Functions

static std::string makeDoubleArray3String (const double *)
static std::string makeFloatArray3String (const float *)
static std::string makeSimStatusCodesString (EVENT::MCParticle *mcp)
static std::string makeIdxVecString (const IdxVec &)

Private Attributes

EVENT::LCCollection * m_coll
std::string m_collName

Member Typedef Documentation

typedef std::vector<int> slic::LcioMcpPrinter::IdxVec

Definition at line 27 of file LcioMcpPrinter.hh.


Member Enumeration Documentation

enum slic::Module::ModuleStatus [inherited]

Enumerator:
eOkay 
eNotInitialized 
eBadState 
eFatalError 

Definition at line 29 of file Module.hh.


Constructor & Destructor Documentation

slic::LcioMcpPrinter::LcioMcpPrinter (  ) 

Definition at line 36 of file LcioMcpPrinter.cc.

slic::LcioMcpPrinter::~LcioMcpPrinter (  )  [virtual]

Definition at line 42 of file LcioMcpPrinter.cc.


Member Function Documentation

void slic::LcioMcpPrinter::printMcpCollection ( const std::string &  collName,
EVENT::LCCollection *  coll 
)

Definition at line 45 of file LcioMcpPrinter.cc.

References m_coll, m_collName, and printMcpCollection().

Referenced by slic::LcioMcpManager::printMcpCollection().

void slic::LcioMcpPrinter::printMcpCollection (  )  [protected]

Definition at line 52 of file LcioMcpPrinter.cc.

References colLabels(), LOG::debug, LOG::done, flagLabels(), foot(), head(), slic::Module::log(), m_coll, m_collName, and printMcp().

Referenced by printMcpCollection().

void slic::LcioMcpPrinter::printMcp ( EVENT::MCParticle *  mcp  )  [protected]

Definition at line 100 of file LcioMcpPrinter.cc.

References chrg_width, dau_width, LOG::debug, e_width, end_width, findDaughterIndices(), findMcpIndex(), findParentIndices(), slic::LogStream::getOutputStream(), idx_width, line(), slic::Module::log(), makeDoubleArray3String(), makeIdxVecString(), makeSimStatusCodesString(), mass_width, mom_width, par_width, pdg_width, ptr_width, sep(), time_width, and vtx_width.

Referenced by printMcpCollection().

std::string slic::LcioMcpPrinter::makeDoubleArray3String ( const double *  arr  )  [static, protected]

Definition at line 187 of file LcioMcpPrinter.cc.

Referenced by printMcp().

std::string slic::LcioMcpPrinter::makeFloatArray3String ( const float *  arr  )  [static, protected]

Definition at line 197 of file LcioMcpPrinter.cc.

std::string slic::LcioMcpPrinter::makeSimStatusCodesString ( EVENT::MCParticle *  mcp  )  [static, protected]

Definition at line 204 of file LcioMcpPrinter.cc.

Referenced by printMcp().

std::string slic::LcioMcpPrinter::makeIdxVecString ( const IdxVec idxVec  )  [static, protected]

Definition at line 215 of file LcioMcpPrinter.cc.

Referenced by printMcp().

LcioMcpPrinter::IdxVec slic::LcioMcpPrinter::findDaughterIndices ( EVENT::MCParticle *  mcp  )  [protected]

Definition at line 231 of file LcioMcpPrinter.cc.

References findMcpIndex().

Referenced by printMcp().

LcioMcpPrinter::IdxVec slic::LcioMcpPrinter::findParentIndices ( EVENT::MCParticle *  mcp  )  [protected]

Definition at line 244 of file LcioMcpPrinter.cc.

References findMcpIndex().

Referenced by printMcp().

int slic::LcioMcpPrinter::findMcpIndex ( EVENT::MCParticle *  mcp  )  [protected]

Definition at line 257 of file LcioMcpPrinter.cc.

References m_coll.

Referenced by findDaughterIndices(), findParentIndices(), and printMcp().

void slic::LcioMcpPrinter::sep (  )  [inline, protected]

Definition at line 280 of file LcioMcpPrinter.cc.

References LOG::debug, and slic::Module::log().

Referenced by colLabels(), and printMcp().

void slic::LcioMcpPrinter::line (  )  [inline, protected]

Definition at line 285 of file LcioMcpPrinter.cc.

References LOG::debug, LOG::done, and slic::Module::log().

Referenced by colLabels(), flagLabels(), foot(), head(), and printMcp().

void slic::LcioMcpPrinter::head (  )  [inline, protected]

Definition at line 290 of file LcioMcpPrinter.cc.

References LOG::debug, line(), and slic::Module::log().

Referenced by printMcpCollection().

void slic::LcioMcpPrinter::foot (  )  [inline, protected]

Definition at line 297 of file LcioMcpPrinter.cc.

References LOG::debug, line(), and slic::Module::log().

Referenced by printMcpCollection().

void slic::LcioMcpPrinter::colLabels (  )  [protected]

Definition at line 304 of file LcioMcpPrinter.cc.

References chrg_width, dau_width, LOG::debug, e_width, end_width, flags_width, slic::LogStream::getOutputStream(), idx_width, line(), slic::Module::log(), mass_width, mom_width, par_width, pdg_width, ptr_width, sep(), time_width, and vtx_width.

Referenced by printMcpCollection().

void slic::LcioMcpPrinter::flagLabels (  )  [protected]

Definition at line 90 of file LcioMcpPrinter.cc.

References LOG::debug, line(), and slic::Module::log().

Referenced by printMcpCollection().

const std::string& slic::Module::getName (  )  const [inline, inherited]

Definition at line 48 of file Module.hh.

References slic::Module::m_name.

Referenced by slic::ModuleRegistry::deregisterModule(), slic::Module::Module(), slic::ModuleRegistry::registerModule(), and slic::Module::~Module().

const ModuleStatus slic::Module::getStatus (  )  const [inline, inherited]

Definition at line 52 of file Module.hh.

References slic::Module::m_status.

virtual void slic::Module::initialize (  )  [inline, virtual, inherited]

Reimplemented in slic::SlicApplication.

Definition at line 56 of file Module.hh.

virtual void slic::Module::reset (  )  [inline, virtual, inherited]

Reimplemented in slic::EventSource, slic::EventSourceWithInputFile, slic::LcioManager, and slic::LcioMcpManager.

Definition at line 59 of file Module.hh.

virtual void slic::Module::cleanup ( void   )  [inline, virtual, inherited]

Definition at line 62 of file Module.hh.

bool slic::Module::deleteOnExit (  )  [inline, inherited]

Definition at line 65 of file Module.hh.

References slic::Module::m_deleteOnExit.

LogStream& slic::Module::log (  )  [inline, inherited]

Definition at line 70 of file Module.hh.

References slic::Module::m_log.

Referenced by slic::PhysicsListFactory::addBuilder(), slic::EventDebugger::addDebugEvent(), slic::LcioHitsCollectionBuilder::addMcpContribs(), slic::StdHepToLcioConvertor::addMcpDaughter(), slic::StdHepToLcioConvertor::addMcpParent(), slic::TrajectoryManager::addTrackIDToTrajectoryLink(), slic::EventAction::BeginOfEventAction(), slic::EventSourceWithInputFile::beginRun(), slic::StdHepToLcioConvertor::checkParentage(), colLabels(), slic::TrajectoryManager::copySecondaryTrackInformationFromParent(), slic::PhysicsListFactory::create(), slic::LcioMcpFactory::createDaughtersFromPrimary(), slic::EventSourceManager::createEventSource(), slic::LcioHitsCollectionBuilder::createHit(), slic::LcioHitsCollectionBuilder::createHitCollections(), slic::LcioMcpManager::createMcpCollection(), slic::LcioMcpFactory::createMcpFromInitialAndPrimary(), slic::StdHepToLcioConvertor::createMcpFromStdHep(), slic::StdHepLoader::dumpCurrentEvent(), slic::StdHepEventSource::dumpCurrentEvent(), slic::ParticleGunEventSource::dumpCurrentEvent(), slic::LcioEventSource::dumpCurrentEvent(), slic::GPSEventSource::dumpCurrentEvent(), slic::EventDebugger::execCleanupMacro(), slic::EventDebugger::execDebugMacro(), slic::StdHepToLcioConvertor::fillCurrentMcpCollectionFromStdHep(), slic::TrajectoryManager::fillTrackIDToTrajectoryMap(), slic::LcioMcpFilter::filterSimParticles(), slic::LcioHitsCollectionBuilder::findMcpHitContribByTrackID(), slic::TrajectoryManager::findTrajectory(), flagLabels(), foot(), slic::G4MagIntegratorStepperFactory::G4MagIntegratorStepperFactory(), slic::EventSourceManager::generate(), slic::LcioEventSource::getCurrentMcpLCCollection(), slic::LcioFileNamer::getFieldValue(), slic::TrajectoryManager::getNumberOfSecondariesAtEnd(), slic::EventSourceManager::getSourceTypeFromFileExtension(), slic::TrajectoryManager::handleSecondaryTrack(), head(), slic::SlicApplication::initialize(), slic::PhysicsListManager::initializePhysicsList(), slic::SlicApplication::initializeUI(), line(), slic::SlicMain::main(), slic::LcioManager::makeAutoname(), slic::StdHepToLcioConvertor::makeIndexVec(), slic::Module::Module(), slic::LcioEventSource::open(), slic::LcioManager::openLcioFile(), slic::StdHepLoader::openStdHepFile(), slic::TrajectoryManager::postTracking(), slic::TrajectoryManager::preTracking(), slic::ModuleRegistry::print(), slic::PhysicsListFactory::printAvailableLists(), slic::PrimaryGeneratorAction::printBeginEventMessage(), slic::RunAction::printBeginOfRunMessage(), slic::StdHepToLcioConvertor::printDaughters(), slic::EventAction::printEndEventMessage(), slic::RunAction::printEndOfRunMessage(), slic::StdHepToLcioConvertor::printIndex(), slic::LcioMcpMaps::printInitMcpToMcpMap(), slic::LcioMcpMaps::printMaps(), printMcp(), printMcpCollection(), slic::LcioMcpManager::printMcpCollection(), slic::LcioMcpMaps::printMcpToPrimaryMap(), slic::StdHepToLcioConvertor::printMothers(), slic::EventSourceManager::printNumEventsGenerated(), slic::CommandLineProcessor::printOptions(), slic::CommandQueue::printOut(), slic::TrajectoryManager::printPhysVolDbg(), slic::TrajectoryManager::printSecondaries(), slic::SlicApplication::printSplashScreen(), slic::TrajectoryManager::printStatusFlags(), slic::TrajectoryManager::printTrack(), slic::StdHepToLcioConvertor::printTrack(), slic::TrajectoryManager::printTrackIDToTrajectoryMap(), slic::LcioMcpMaps::printTrackToMcpMap(), slic::TrajectoryManager::printTrajectory(), slic::CommandLineProcessor::printUsage(), slic::CommandLineProcessor::printVersion(), slic::CommandLineProcessor::process(), slic::StdHepLoader::readNextEvent(), slic::LcioMcpManager::registerMcpCollection(), slic::ModuleRegistry::registerModule(), slic::SlicApplication::run(), sep(), slic::PhysicsListManager::setCurrentListName(), slic::LcioManager::setDetectorName(), slic::LcioManager::setFileExistsAction(), slic::EventSourceWithInputFile::setFilename(), slic::LcioHitsCollectionBuilder::setLongFlag(), slic::SlicApplicationMessenger::SetNewValue(), slic::PhysicsMessenger::SetNewValue(), slic::GeneratorMessenger::SetNewValue(), slic::FieldMessenger::SetNewValue(), slic::LcioHitsCollectionBuilder::setPDGFlag(), slic::LcioManager::setRunNumber(), slic::TrajectoryManager::setTrajectoryFinalStatus(), slic::StdHepToLcioConvertor::setupDaughters(), slic::EventSourceManager::setupEventSource(), slic::PhysicsListManager::setupOpticalProcesses(), slic::StdHepToLcioConvertor::setupParents(), slic::PhysicsListManager::setupUserLimitsProcesses(), slic::SlicApplication::SlicApplication(), slic::EventAction::startEventTimer(), slic::RunAction::startRunTimer(), slic::EventAction::stopEventTimer(), slic::RunAction::stopRunTimer(), slic::Module::~Module(), and slic::SlicApplication::~SlicApplication().

virtual void slic::Module::beginEvent ( const G4Event *   )  [inline, virtual, inherited]

Reimplemented in slic::EventDebugger, slic::EventSource, slic::EventSourceManager, slic::EventSourceWithInputFile, slic::LcioEventSource, slic::LcioMcpManager, slic::StdHepEventSource, and slic::TrajectoryManager.

Definition at line 75 of file Module.hh.

virtual void slic::Module::endEvent ( const G4Event *   )  [inline, virtual, inherited]

Reimplemented in slic::EventDebugger, slic::EventSource, slic::EventSourceManager, slic::LcioManager, and slic::LcioMcpManager.

Definition at line 78 of file Module.hh.

virtual void slic::Module::beginRun ( const G4Run *   )  [inline, virtual, inherited]

Reimplemented in slic::EventDebugger, slic::EventSource, slic::EventSourceManager, slic::EventSourceWithInputFile, slic::LcioEventSource, slic::LcioManager, and slic::StdHepEventSource.

Definition at line 81 of file Module.hh.

virtual void slic::Module::endRun ( const G4Run *   )  [inline, virtual, inherited]

Reimplemented in slic::EventSource, slic::EventSourceManager, and slic::LcioManager.

Definition at line 84 of file Module.hh.

virtual void slic::Module::preTracking ( const G4Track *   )  [inline, virtual, inherited]

Reimplemented in slic::TrajectoryManager.

Definition at line 87 of file Module.hh.

virtual void slic::Module::postTracking ( const G4Track *   )  [inline, virtual, inherited]

Reimplemented in slic::TrajectoryManager.

Definition at line 90 of file Module.hh.

virtual void slic::Module::stepping ( const G4Step *   )  [inline, virtual, inherited]

Reimplemented in slic::TrajectoryManager.

Definition at line 93 of file Module.hh.

G4ClassificationOfNewTrack slic::Module::stackingClassifyNewTrack ( const G4Track *   )  [inline, inherited]

Definition at line 96 of file Module.hh.

void slic::Module::stackingNewStage (  )  [inline, inherited]

Definition at line 103 of file Module.hh.

void slic::Module::stackingPrepareNewEvent (  )  [inline, inherited]

Definition at line 106 of file Module.hh.


Member Data Documentation

const int slic::LcioMcpPrinter::idx_width = 4 [static]

Definition at line 72 of file LcioMcpPrinter.hh.

Referenced by colLabels(), and printMcp().

const int slic::LcioMcpPrinter::ptr_width = 10 [static]

Definition at line 73 of file LcioMcpPrinter.hh.

Referenced by colLabels(), and printMcp().

const int slic::LcioMcpPrinter::pdg_width = 5 [static]

Definition at line 74 of file LcioMcpPrinter.hh.

Referenced by colLabels(), and printMcp().

const int slic::LcioMcpPrinter::par_width = 15 [static]

Definition at line 75 of file LcioMcpPrinter.hh.

Referenced by colLabels(), and printMcp().

const int slic::LcioMcpPrinter::dau_width = 15 [static]

Definition at line 76 of file LcioMcpPrinter.hh.

Referenced by colLabels(), and printMcp().

const int slic::LcioMcpPrinter::mom_width = 20 [static]

Definition at line 77 of file LcioMcpPrinter.hh.

Referenced by colLabels(), and printMcp().

const int slic::LcioMcpPrinter::vtx_width = 20 [static]

Definition at line 78 of file LcioMcpPrinter.hh.

Referenced by colLabels(), and printMcp().

const int slic::LcioMcpPrinter::end_width = 20 [static]

Definition at line 79 of file LcioMcpPrinter.hh.

Referenced by colLabels(), and printMcp().

const int slic::LcioMcpPrinter::time_width = 6 [static]

Definition at line 80 of file LcioMcpPrinter.hh.

Referenced by colLabels(), and printMcp().

const int slic::LcioMcpPrinter::mass_width = 6 [static]

Definition at line 81 of file LcioMcpPrinter.hh.

Referenced by colLabels(), and printMcp().

const int slic::LcioMcpPrinter::chrg_width = 4 [static]

Definition at line 82 of file LcioMcpPrinter.hh.

Referenced by colLabels(), and printMcp().

const int slic::LcioMcpPrinter::e_width = 6 [static]

Definition at line 83 of file LcioMcpPrinter.hh.

Referenced by colLabels(), and printMcp().

const int slic::LcioMcpPrinter::stat_width = 5 [static]

Definition at line 84 of file LcioMcpPrinter.hh.

const int slic::LcioMcpPrinter::flags_width = 16 [static]

Definition at line 85 of file LcioMcpPrinter.hh.

Referenced by colLabels().

EVENT::LCCollection* slic::LcioMcpPrinter::m_coll [private]

Definition at line 89 of file LcioMcpPrinter.hh.

Referenced by findMcpIndex(), and printMcpCollection().

std::string slic::LcioMcpPrinter::m_collName [private]

Definition at line 90 of file LcioMcpPrinter.hh.

Referenced by printMcpCollection().

ModuleStatus slic::Module::m_status [inherited]

Definition at line 110 of file Module.hh.

Referenced by slic::Module::getStatus().

std::string slic::Module::m_name [inherited]

Reimplemented in slic::EventSource.

Definition at line 111 of file Module.hh.

Referenced by slic::Module::getName(), and slic::Module::Module().

LogStream slic::Module::m_log [inherited]

Definition at line 112 of file Module.hh.

Referenced by slic::Module::log(), and slic::Module::Module().

bool slic::Module::m_deleteOnExit [inherited]

Definition at line 113 of file Module.hh.

Referenced by slic::Module::deleteOnExit().


The documentation for this class was generated from the following files:
Generated on Thu Nov 15 15:24:41 2007 for Simulator for the Linear Collider by  doxygen 1.5.4