LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LCTOOLS.h
Go to the documentation of this file.
1 #ifndef UTIL_LCTOOLS_H
2 #define UTIL_LCTOOLS_H 1
3 
4 #include <iostream>
5 
6 #include "EVENT/LCEvent.h"
7 #include "EVENT/MCParticle.h"
8 #include "EVENT/SimTrackerHit.h"
9 #include "EVENT/LCParameters.h"
10 #include "EVENT/LCRunHeader.h"
11 
12 namespace UTIL{
13 
20  class LCTOOLS{
21 
22  public:
23 
24 
29  static void dumpEvent(const EVENT::LCEvent* evt) ;
30 
34  static void dumpEventDetailed(const EVENT::LCEvent* evt) ;
35 
38  static void dumpRunHeader(const EVENT::LCRunHeader* run) ;
39 
42  static void printMCParticles(const EVENT::LCCollection* col ) ;
43 
46  static void printSimTrackerHits(const EVENT::LCCollection* col ) ;
47 
50  static void printTPCHits(const EVENT::LCCollection* col ) ;
51 
54  static void printTrackerRawData(const EVENT::LCCollection* col ) ;
55 
58  static void printTrackerData(const EVENT::LCCollection* col ) ;
59 
62  static void printTrackerPulse(const EVENT::LCCollection* col ) ;
63 
66  static void printTrackerHits(const EVENT::LCCollection* col ) ;
67 
70  static void printTrackerHitPlane(const EVENT::LCCollection* col ) ;
71 
74  static void printTrackerHitZCylinder(const EVENT::LCCollection* col ) ;
75 
78  static void printSimCalorimeterHits(const EVENT::LCCollection* col ) ;
79 
82  static void printCalorimeterHits(const EVENT::LCCollection* col ) ;
83 
86  static void printRawCalorimeterHits(const EVENT::LCCollection* col ) ;
87 
90  static void printLCFloatVecs( const EVENT::LCCollection* col ) ;
91 
94  static void printLCIntVecs( const EVENT::LCCollection* col ) ;
95 
98  static void printLCStrVecs( const EVENT::LCCollection* col ) ;
99 
102  static void printTracks( const EVENT::LCCollection* col ) ;
103 
106  static void printClusters( const EVENT::LCCollection* col ) ;
107 
110  static void printVertices( const EVENT::LCCollection* col ) ;
111 
114  static void printReconstructedParticles( const EVENT::LCCollection* col ) ;
115 
118  static void printLCGenericObjects( const EVENT::LCCollection* col ) ;
119 
122  static void printRelation( const EVENT::LCCollection* col ) ;
123 
126  static void printParameters( const EVENT::LCParameters& params );
127 
133 
134  static int printDaughterParticles(const EVENT::MCParticle* part, int index) ;
135 
136 
141  static std::string getQualityBits(const EVENT::SimTrackerHit* sth=0);
142 
143  }; // class
144 
145 } // namespace UTIL
146 
147 #endif /* ifndef UTILL_LCTOOLS_H */
static void printTrackerHitZCylinder(const EVENT::LCCollection *col)
Complete printout of all TrackerHits in the collection.
Definition: LCTOOLS.cc:383
static void printReconstructedParticles(const EVENT::LCCollection *col)
Complete printout of all ReconstructedParticles in the collection.
Definition: LCTOOLS.cc:976
static void printClusters(const EVENT::LCCollection *col)
Complete printout of all Clusters in the collection.
Definition: LCTOOLS.cc:834
static void printLCIntVecs(const EVENT::LCCollection *col)
Print LCIntVecs user extension vectors in the collection.
Definition: LCTOOLS.cc:683
static void printTrackerHitPlane(const EVENT::LCCollection *col)
Complete printout of all TrackerHits in the collection.
Definition: LCTOOLS.cc:340
Provides some basic functions for printing event data.
Definition: LCTOOLS.h:20
Interface for the run header.
Definition: LCRunHeader.h:23
A generic simulated tracker hit.
Definition: SimTrackerHit.h:23
static void dumpEvent(const EVENT::LCEvent *evt)
Simple function to dump event contents to the screen.
Definition: LCTOOLS.cc:51
static void printSimTrackerHits(const EVENT::LCCollection *col)
Complete printout of all SimTrackerHits in the collection.
Definition: LCTOOLS.cc:262
static void printTrackerHits(const EVENT::LCCollection *col)
Complete printout of all TrackerHits in the collection.
Definition: LCTOOLS.cc:297
static void printSimCalorimeterHits(const EVENT::LCCollection *col)
Complete printout of all SimCalorimeterHits in the collection.
Definition: LCTOOLS.cc:713
static void dumpEventDetailed(const EVENT::LCEvent *evt)
Dumps the whole event to the screen, using the dedicated print functions for the different collection...
Definition: LCTOOLS.cc:83
STL class.
static void printLCGenericObjects(const EVENT::LCCollection *col)
Complete printout of all LCGenericObjects in the collection.
Definition: LCTOOLS.cc:1095
Simple interface to store generic named parameters of type int, float and string. ...
Definition: LCParameters.h:28
static void printLCStrVecs(const EVENT::LCCollection *col)
Print LCStrVecs user extension vectors in the collection.
Definition: LCTOOLS.cc:604
static void printTracks(const EVENT::LCCollection *col)
Complete printout of all Tracks in the collection.
Definition: LCTOOLS.cc:229
The LCIO Monte Carlo particle.
Definition: MCParticle.h:27
static std::string getQualityBits(const EVENT::SimTrackerHit *sth=0)
Returns a string describing the quality flag bits set for this SimTrackerHit.
Definition: LCTOOLS.cc:1458
static void printLCFloatVecs(const EVENT::LCCollection *col)
Print LCFloatVec user extension vectors in the collection.
Definition: LCTOOLS.cc:652
static void printTrackerRawData(const EVENT::LCCollection *col)
Complete printout of all TrackerRawData objects in the collection.
Definition: LCTOOLS.cc:426
static void dumpRunHeader(const EVENT::LCRunHeader *run)
Simple function to dump the run header to the screen.
Definition: LCTOOLS.cc:1383
The main event interface.
Definition: LCEvent.h:31
static void printCalorimeterHits(const EVENT::LCCollection *col)
Complete printout of all CalorimeterHits in the collection.
Definition: LCTOOLS.cc:753
static void printRelation(const EVENT::LCCollection *col)
Print the relation.
Definition: LCTOOLS.cc:1246
The generic collection used in LCIO.
Definition: LCCollection.h:29
static void printRawCalorimeterHits(const EVENT::LCCollection *col)
Complete printout of all RawCalorimeterHits in the collection.
Definition: LCTOOLS.cc:794
static void printParameters(const EVENT::LCParameters &params)
Print the parameters.
Definition: LCTOOLS.cc:1317
static void printTPCHits(const EVENT::LCCollection *col)
Complete printout of all TPCHits in the collection.
Definition: LCTOOLS.cc:535
static std::string getSimulatorStatusString(const EVENT::MCParticle *mcp=0)
Returns a string describing the simulator flag bits set for this particle.
Definition: LCTOOLS.cc:1395
static void printVertices(const EVENT::LCCollection *col)
Complete printout of all Vertices in the collection.
Definition: LCTOOLS.cc:951
static void printMCParticles(const EVENT::LCCollection *col)
Complete printout of all MCParticles in the collection.
Definition: LCTOOLS.cc:1133
static int printDaughterParticles(const EVENT::MCParticle *part, int index)
Definition: LCTOOLS.cc:1281
static void printTrackerData(const EVENT::LCCollection *col)
Complete printout of all TrackerData objects in the collection.
Definition: LCTOOLS.cc:462
static void printTrackerPulse(const EVENT::LCCollection *col)
Complete printout of all TrackerPulse objects in the collection.
Definition: LCTOOLS.cc:498