00001 #ifndef UTIL_LCTOOLS_H 00002 #define UTIL_LCTOOLS_H 1 00003 00004 #include <iostream> 00005 00006 #include "EVENT/LCEvent.h" 00007 #include "EVENT/MCParticle.h" 00008 #include "EVENT/SimTrackerHit.h" 00009 #include "EVENT/LCParameters.h" 00010 #include "EVENT/LCRunHeader.h" 00011 00012 namespace UTIL{ 00013 00020 class LCTOOLS{ 00021 00022 public: 00023 00024 00029 static void dumpEvent(const EVENT::LCEvent* evt) ; 00030 00034 static void dumpEventDetailed(const EVENT::LCEvent* evt) ; 00035 00038 static void dumpRunHeader(const EVENT::LCRunHeader* run) ; 00039 00042 static void printMCParticles(const EVENT::LCCollection* col ) ; 00043 00046 static void printSimTrackerHits(const EVENT::LCCollection* col ) ; 00047 00050 static void printTPCHits(const EVENT::LCCollection* col ) ; 00051 00054 static void printTrackerRawData(const EVENT::LCCollection* col ) ; 00055 00058 static void printTrackerData(const EVENT::LCCollection* col ) ; 00059 00062 static void printTrackerPulse(const EVENT::LCCollection* col ) ; 00063 00066 static void printTrackerHits(const EVENT::LCCollection* col ) ; 00067 00070 static void printTrackerHitPlane(const EVENT::LCCollection* col ) ; 00071 00074 static void printTrackerHitZCylinder(const EVENT::LCCollection* col ) ; 00075 00078 static void printSimCalorimeterHits(const EVENT::LCCollection* col ) ; 00079 00082 static void printCalorimeterHits(const EVENT::LCCollection* col ) ; 00083 00086 static void printRawCalorimeterHits(const EVENT::LCCollection* col ) ; 00087 00090 static void printLCFloatVecs( const EVENT::LCCollection* col ) ; 00091 00094 static void printLCIntVecs( const EVENT::LCCollection* col ) ; 00095 00098 static void printLCStrVecs( const EVENT::LCCollection* col ) ; 00099 00102 static void printTracks( const EVENT::LCCollection* col ) ; 00103 00106 static void printClusters( const EVENT::LCCollection* col ) ; 00107 00110 static void printVertices( const EVENT::LCCollection* col ) ; 00111 00114 static void printReconstructedParticles( const EVENT::LCCollection* col ) ; 00115 00118 static void printLCGenericObjects( const EVENT::LCCollection* col ) ; 00119 00122 static void printRelation( const EVENT::LCCollection* col ) ; 00123 00126 static void printParameters( const EVENT::LCParameters& params ); 00127 00132 static std::string getSimulatorStatusString(const EVENT::MCParticle* mcp=0) ; 00133 00134 static int printDaughterParticles(const EVENT::MCParticle* part, int index) ; 00135 00136 00141 static std::string getQualityBits(const EVENT::SimTrackerHit* sth=0); 00142 00143 }; // class 00144 00145 } // namespace UTIL 00146 00147 #endif /* ifndef UTILL_LCTOOLS_H */