LCIO
02.17
|
Provides some basic functions for printing event data. More...
#include <LCTOOLS.h>
Static Public Member Functions | |
static void | dumpEvent (const EVENT::LCEvent *evt) |
Simple function to dump event contents to the screen. More... | |
static void | dumpEventDetailed (const EVENT::LCEvent *evt) |
Dumps the whole event to the screen, using the dedicated print functions for the different collection types. More... | |
static void | dumpRunHeader (const EVENT::LCRunHeader *run) |
Simple function to dump the run header to the screen. More... | |
static void | printMCParticles (const EVENT::LCCollection *col) |
Complete printout of all MCParticles in the collection. More... | |
static void | printSimTrackerHits (const EVENT::LCCollection *col) |
Complete printout of all SimTrackerHits in the collection. More... | |
static void | printTPCHits (const EVENT::LCCollection *col) |
Complete printout of all TPCHits in the collection. More... | |
static void | printTrackerRawData (const EVENT::LCCollection *col) |
Complete printout of all TrackerRawData objects in the collection. More... | |
static void | printTrackerData (const EVENT::LCCollection *col) |
Complete printout of all TrackerData objects in the collection. More... | |
static void | printTrackerPulse (const EVENT::LCCollection *col) |
Complete printout of all TrackerPulse objects in the collection. More... | |
static void | printTrackerHits (const EVENT::LCCollection *col) |
Complete printout of all TrackerHits in the collection. More... | |
static void | printTrackerHitPlane (const EVENT::LCCollection *col) |
Complete printout of all TrackerHits in the collection. More... | |
static void | printTrackerHitZCylinder (const EVENT::LCCollection *col) |
Complete printout of all TrackerHits in the collection. More... | |
static void | printSimCalorimeterHits (const EVENT::LCCollection *col) |
Complete printout of all SimCalorimeterHits in the collection. More... | |
static void | printCalorimeterHits (const EVENT::LCCollection *col) |
Complete printout of all CalorimeterHits in the collection. More... | |
static void | printRawCalorimeterHits (const EVENT::LCCollection *col) |
Complete printout of all RawCalorimeterHits in the collection. More... | |
static void | printLCFloatVecs (const EVENT::LCCollection *col) |
Print LCFloatVec user extension vectors in the collection. More... | |
static void | printLCIntVecs (const EVENT::LCCollection *col) |
Print LCIntVecs user extension vectors in the collection. More... | |
static void | printLCStrVecs (const EVENT::LCCollection *col) |
Print LCStrVecs user extension vectors in the collection. More... | |
static void | printTracks (const EVENT::LCCollection *col) |
Complete printout of all Tracks in the collection. More... | |
static void | printClusters (const EVENT::LCCollection *col) |
Complete printout of all Clusters in the collection. More... | |
static void | printVertices (const EVENT::LCCollection *col) |
Complete printout of all Vertices in the collection. More... | |
static void | printReconstructedParticles (const EVENT::LCCollection *col) |
Complete printout of all ReconstructedParticles in the collection. More... | |
static void | printLCGenericObjects (const EVENT::LCCollection *col) |
Complete printout of all LCGenericObjects in the collection. More... | |
static void | printRelation (const EVENT::LCCollection *col) |
Print the relation. More... | |
static void | printParameters (const EVENT::LCParameters ¶ms) |
Print the parameters. More... | |
static std::string | getSimulatorStatusString (const EVENT::MCParticle *mcp=0) |
Returns a string describing the simulator flag bits set for this particle. More... | |
static int | printDaughterParticles (const EVENT::MCParticle *part, int index) |
static std::string | getQualityBits (const EVENT::SimTrackerHit *sth=0) |
Returns a string describing the quality flag bits set for this SimTrackerHit. More... | |
Provides some basic functions for printing event data.
|
static |
Simple function to dump event contents to the screen.
Also demonstrates the access to event data through the EVENT interface. This is only a short format - one line per collection.
Definition at line 51 of file LCTOOLS.cc.
References std::vector< T >::begin(), std::vector< T >::end(), std::endl(), EVENT::LCEvent::getCollection(), EVENT::LCEvent::getCollectionNames(), EVENT::LCEvent::getDetectorName(), EVENT::LCEvent::getEventNumber(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCEvent::getRunNumber(), EVENT::LCCollection::getTypeName(), std::left(), and std::right().
Referenced by dumpEvent().
|
static |
Dumps the whole event to the screen, using the dedicated print functions for the different collection types.
Definition at line 83 of file LCTOOLS.cc.
References std::vector< T >::begin(), std::vector< T >::end(), std::endl(), EVENT::LCEvent::getCollection(), EVENT::LCEvent::getCollectionNames(), EVENT::LCEvent::getDetectorName(), EVENT::LCEvent::getEventNumber(), EVENT::LCEvent::getParameters(), EVENT::LCEvent::getRunNumber(), EVENT::LCEvent::getTimeStamp(), EVENT::LCCollection::getTypeName(), and EVENT::LCEvent::getWeight().
|
static |
Simple function to dump the run header to the screen.
Definition at line 1383 of file LCTOOLS.cc.
References std::endl(), EVENT::LCRunHeader::getDescription(), EVENT::LCRunHeader::getDetectorName(), and EVENT::LCRunHeader::getRunNumber().
Referenced by Scheduler::processRunHeader().
|
static |
Returns a string describing the quality flag bits set for this SimTrackerHit.
If no SimTrackerHit is given a string describing the bits is returned:
Definition at line 1458 of file LCTOOLS.cc.
References std::endl(), EVENT::SimTrackerHit::getQuality(), EVENT::SimTrackerHit::isOverlay(), EVENT::SimTrackerHit::isProducedBySecondary(), and std::stringstream::str().
|
static |
Returns a string describing the simulator flag bits set for this particle.
If no MCParticle given a string describing the bits is returned:
Definition at line 1395 of file LCTOOLS.cc.
References std::endl(), EVENT::MCParticle::getSimulatorStatus(), EVENT::MCParticle::hasLeftDetector(), EVENT::MCParticle::isBackscatter(), EVENT::MCParticle::isCreatedInSimulation(), EVENT::MCParticle::isDecayedInCalorimeter(), EVENT::MCParticle::isDecayedInTracker(), EVENT::MCParticle::isOverlay(), EVENT::MCParticle::isStopped(), std::stringstream::str(), and EVENT::MCParticle::vertexIsNotEndpointOfParent().
|
static |
Complete printout of all CalorimeterHits in the collection.
Definition at line 753 of file LCTOOLS.cc.
References std::dec(), std::endl(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getParameters(), EVENT::LCCollection::getTypeName(), UTIL::header(), std::hex(), UTIL::MAX_HITS, and UTIL::tail().
|
static |
Complete printout of all Clusters in the collection.
Definition at line 834 of file LCTOOLS.cc.
References std::vector< T >::begin(), std::dec(), std::vector< T >::end(), std::endl(), UTIL::PIDHandler::getAlgorithmIDs(), UTIL::PIDHandler::getAlgorithmName(), EVENT::ParticleID::getAlgorithmType(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::ParticleID::getLikelihood(), EVENT::LCCollection::getNumberOfElements(), UTIL::PIDHandler::getParameterNames(), EVENT::ParticleID::getParameters(), EVENT::LCCollection::getParameters(), EVENT::Cluster::getParticleIDs(), EVENT::ParticleID::getPDG(), EVENT::ParticleID::getType(), EVENT::LCCollection::getTypeName(), UTIL::header(), std::hex(), EVENT::LCObject::id(), UTIL::MAX_HITS, std::printf(), std::vector< T >::size(), and UTIL::tail().
|
static |
Definition at line 1281 of file LCTOOLS.cc.
References std::endl(), EVENT::MCParticle::getCharge(), EVENT::MCParticle::getDaughters(), EVENT::MCParticle::getEndpoint(), EVENT::MCParticle::getEnergy(), EVENT::MCParticle::getGeneratorStatus(), EVENT::MCParticle::getMass(), EVENT::MCParticle::getMomentum(), EVENT::MCParticle::getPDG(), EVENT::MCParticle::getSimulatorStatus(), EVENT::MCParticle::getVertex(), and std::vector< T >::size().
|
static |
Print LCFloatVec user extension vectors in the collection.
Definition at line 652 of file LCTOOLS.cc.
References std::dec(), std::endl(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getParameters(), EVENT::LCCollection::getTypeName(), UTIL::header(), std::hex(), UTIL::MAX_HITS, and UTIL::tail().
|
static |
Complete printout of all LCGenericObjects in the collection.
Definition at line 1095 of file LCTOOLS.cc.
References std::dec(), std::endl(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getParameters(), EVENT::LCParameters::getStringVal(), EVENT::LCCollection::getTypeName(), UTIL::header(), std::hex(), UTIL::MAX_HITS, and UTIL::tail().
|
static |
Print LCIntVecs user extension vectors in the collection.
Definition at line 683 of file LCTOOLS.cc.
References std::dec(), std::endl(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getParameters(), EVENT::LCCollection::getTypeName(), UTIL::header(), std::hex(), UTIL::MAX_HITS, and UTIL::tail().
|
static |
Print LCStrVecs user extension vectors in the collection.
Definition at line 604 of file LCTOOLS.cc.
References std::dec(), std::endl(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getParameters(), EVENT::LCCollection::getTypeName(), std::hex(), UTIL::MAX_HITS, std::vector< T >::size(), and std::size().
|
static |
Complete printout of all MCParticles in the collection.
Definition at line 1133 of file LCTOOLS.cc.
References std::dec(), std::endl(), EVENT::MCParticle::getCharge(), EVENT::MCParticle::getColorFlow(), EVENT::MCParticle::getDaughters(), EVENT::LCCollection::getElementAt(), EVENT::MCParticle::getEndpoint(), EVENT::MCParticle::getEnergy(), EVENT::LCCollection::getFlag(), EVENT::MCParticle::getGeneratorStatus(), EVENT::MCParticle::getMass(), EVENT::MCParticle::getMomentum(), EVENT::MCParticle::getMomentumAtEndpoint(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getParameters(), EVENT::MCParticle::getParents(), EVENT::MCParticle::getPDG(), EVENT::MCParticle::getSpin(), EVENT::LCCollection::getTypeName(), EVENT::MCParticle::getVertex(), std::hex(), EVENT::LCObject::id(), std::printf(), std::vector< T >::push_back(), and std::vector< T >::size().
|
static |
Print the parameters.
Definition at line 1317 of file LCTOOLS.cc.
References std::endl(), EVENT::LCParameters::getDoubleKeys(), EVENT::LCParameters::getDoubleVals(), EVENT::LCParameters::getFloatKeys(), EVENT::LCParameters::getFloatVals(), EVENT::LCParameters::getIntKeys(), EVENT::LCParameters::getIntVals(), EVENT::LCParameters::getStringKeys(), EVENT::LCParameters::getStringVals(), and std::vector< T >::size().
|
static |
Complete printout of all RawCalorimeterHits in the collection.
Definition at line 794 of file LCTOOLS.cc.
References std::dec(), std::endl(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getParameters(), EVENT::LCCollection::getTypeName(), UTIL::header(), std::hex(), UTIL::MAX_HITS, and UTIL::tail().
|
static |
Complete printout of all ReconstructedParticles in the collection.
Definition at line 976 of file LCTOOLS.cc.
References std::vector< T >::begin(), std::dec(), std::vector< T >::end(), std::endl(), UTIL::PIDHandler::getAlgorithmIDs(), UTIL::PIDHandler::getAlgorithmName(), EVENT::ParticleID::getAlgorithmType(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::ParticleID::getLikelihood(), EVENT::LCCollection::getNumberOfElements(), UTIL::PIDHandler::getParameterNames(), EVENT::ParticleID::getParameters(), EVENT::LCCollection::getParameters(), EVENT::ReconstructedParticle::getParticleIDs(), EVENT::ParticleID::getPDG(), EVENT::ParticleID::getType(), EVENT::LCCollection::getTypeName(), UTIL::header(), std::hex(), EVENT::LCObject::id(), UTIL::MAX_HITS, std::printf(), std::vector< T >::size(), and UTIL::tail().
|
static |
Print the relation.
Definition at line 1246 of file LCTOOLS.cc.
References std::dec(), std::endl(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getParameters(), EVENT::LCParameters::getStringVal(), EVENT::LCCollection::getTypeName(), UTIL::header(), std::hex(), and UTIL::tail().
|
static |
Complete printout of all SimCalorimeterHits in the collection.
Definition at line 713 of file LCTOOLS.cc.
References std::dec(), std::endl(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getParameters(), EVENT::LCCollection::getTypeName(), UTIL::header(), std::hex(), UTIL::MAX_HITS, and UTIL::tail().
|
static |
Complete printout of all SimTrackerHits in the collection.
Definition at line 262 of file LCTOOLS.cc.
References std::dec(), std::endl(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getParameters(), EVENT::LCCollection::getTypeName(), UTIL::header(), std::hex(), UTIL::MAX_HITS, and UTIL::tail().
|
static |
Complete printout of all TPCHits in the collection.
Definition at line 535 of file LCTOOLS.cc.
References std::dec(), std::endl(), EVENT::TPCHit::getCellID(), EVENT::TPCHit::getCharge(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::TPCHit::getNRawDataWords(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getParameters(), EVENT::TPCHit::getQuality(), EVENT::TPCHit::getRawDataWord(), EVENT::TPCHit::getTime(), EVENT::LCCollection::getTypeName(), std::hex(), EVENT::LCObject::id(), UTIL::MAX_HITS, and std::printf().
|
static |
Complete printout of all TrackerData objects in the collection.
Definition at line 462 of file LCTOOLS.cc.
References std::dec(), std::endl(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getParameters(), EVENT::LCCollection::getTypeName(), UTIL::header(), std::hex(), UTIL::MAX_HITS, and UTIL::tail().
|
static |
Complete printout of all TrackerHits in the collection.
Definition at line 340 of file LCTOOLS.cc.
References std::dec(), std::endl(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getParameters(), EVENT::LCCollection::getTypeName(), UTIL::header(), std::hex(), UTIL::MAX_HITS, and UTIL::tail().
|
static |
Complete printout of all TrackerHits in the collection.
Definition at line 297 of file LCTOOLS.cc.
References std::dec(), std::endl(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getParameters(), EVENT::LCCollection::getTypeName(), UTIL::header(), std::hex(), UTIL::MAX_HITS, and UTIL::tail().
|
static |
Complete printout of all TrackerHits in the collection.
Definition at line 383 of file LCTOOLS.cc.
References std::dec(), std::endl(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getParameters(), EVENT::LCCollection::getTypeName(), UTIL::header(), std::hex(), UTIL::MAX_HITS, and UTIL::tail().
|
static |
Complete printout of all TrackerPulse objects in the collection.
Definition at line 498 of file LCTOOLS.cc.
References std::dec(), std::endl(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getParameters(), EVENT::LCCollection::getTypeName(), UTIL::header(), std::hex(), UTIL::MAX_HITS, and UTIL::tail().
|
static |
Complete printout of all TrackerRawData objects in the collection.
Definition at line 426 of file LCTOOLS.cc.
References std::dec(), std::endl(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getParameters(), EVENT::LCCollection::getTypeName(), UTIL::header(), std::hex(), UTIL::MAX_HITS, and UTIL::tail().
|
static |
Complete printout of all Tracks in the collection.
Definition at line 229 of file LCTOOLS.cc.
References std::dec(), std::endl(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getParameters(), EVENT::LCCollection::getTypeName(), UTIL::header(), std::hex(), UTIL::MAX_HITS, and UTIL::tail().
|
static |
Complete printout of all Vertices in the collection.
Definition at line 951 of file LCTOOLS.cc.
References std::endl(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getParameters(), EVENT::LCCollection::getTypeName(), UTIL::header(), UTIL::lcshort(), UTIL::MAX_HITS, and UTIL::tail().