LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
UTIL::LCTOOLS Class Reference

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 &params)
 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...
 

Detailed Description

Provides some basic functions for printing event data.

Author
gaede
Version
Mar 10, 2003
See Also
LCEvent

Definition at line 20 of file LCTOOLS.h.

Member Function Documentation

void UTIL::LCTOOLS::dumpEvent ( const EVENT::LCEvent evt)
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().

void UTIL::LCTOOLS::dumpEventDetailed ( const EVENT::LCEvent evt)
static
void UTIL::LCTOOLS::dumpRunHeader ( const EVENT::LCRunHeader run)
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().

std::string UTIL::LCTOOLS::getQualityBits ( const EVENT::SimTrackerHit sth = 0)
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().

std::string UTIL::LCTOOLS::getSimulatorStatusString ( const EVENT::MCParticle mcp = 0)
static
void UTIL::LCTOOLS::printCalorimeterHits ( const EVENT::LCCollection col)
static
void UTIL::LCTOOLS::printClusters ( const EVENT::LCCollection col)
static
int UTIL::LCTOOLS::printDaughterParticles ( const EVENT::MCParticle part,
int  index 
)
static
void UTIL::LCTOOLS::printLCFloatVecs ( const EVENT::LCCollection col)
static
void UTIL::LCTOOLS::printLCGenericObjects ( const EVENT::LCCollection col)
static
void UTIL::LCTOOLS::printLCIntVecs ( const EVENT::LCCollection col)
static
void UTIL::LCTOOLS::printLCStrVecs ( const EVENT::LCCollection col)
static
void UTIL::LCTOOLS::printMCParticles ( const EVENT::LCCollection col)
static
void UTIL::LCTOOLS::printParameters ( const EVENT::LCParameters params)
static
void UTIL::LCTOOLS::printRawCalorimeterHits ( const EVENT::LCCollection col)
static
void UTIL::LCTOOLS::printReconstructedParticles ( const EVENT::LCCollection col)
static
void UTIL::LCTOOLS::printRelation ( const EVENT::LCCollection col)
static
void UTIL::LCTOOLS::printSimCalorimeterHits ( const EVENT::LCCollection col)
static
void UTIL::LCTOOLS::printSimTrackerHits ( const EVENT::LCCollection col)
static
void UTIL::LCTOOLS::printTPCHits ( const EVENT::LCCollection col)
static
void UTIL::LCTOOLS::printTrackerData ( const EVENT::LCCollection col)
static
void UTIL::LCTOOLS::printTrackerHitPlane ( const EVENT::LCCollection col)
static
void UTIL::LCTOOLS::printTrackerHits ( const EVENT::LCCollection col)
static
void UTIL::LCTOOLS::printTrackerHitZCylinder ( const EVENT::LCCollection col)
static
void UTIL::LCTOOLS::printTrackerPulse ( const EVENT::LCCollection col)
static
void UTIL::LCTOOLS::printTrackerRawData ( const EVENT::LCCollection col)
static
void UTIL::LCTOOLS::printTracks ( const EVENT::LCCollection col)
static
void UTIL::LCTOOLS::printVertices ( const EVENT::LCCollection col)
static

The documentation for this class was generated from the following files: