CEDViewer  1.12.0
GenericViewer.h
1 #ifndef VIEWERAR_H
2 #define VIEWERAR_H 1
3 
4 #include "marlin/Processor.h"
5 #include "EVENT/MCParticle.h"
6 #include "lcio.h"
7 #include <string>
8 #include <vector>
9 
10 using namespace lcio ;
11 using namespace marlin ;
12 
13 
72 class GenericViewer : public Processor {
73 
74  public:
75 
76  virtual Processor* newProcessor() { return new GenericViewer ; }
77 
78 
79  GenericViewer() ;
80 
81  virtual void init() ;
82 
83  virtual void processRunHeader( LCRunHeader* run ) ;
84 
85  virtual void processEvent( LCEvent * evt ) ;
86 
87  virtual void check( LCEvent * evt ) ;
88 
89  virtual void end() ;
90 
91 
92  protected:
93 
94  int _nRun ;
95  int _nEvt ;
96 
97  std::vector<std::string> _caloHitCollections;
98  std::vector<std::string> _simCaloHitCollections;
99  std::vector<std::string> _trackerHitCollections;
100  std::vector<std::string> _simTrackerHitCollections;
101  std::string _trueClustersCollection;
102  std::string _trueTracksCollection;
103  std::string _clustersCollection;
104  std::string _tracksCollection;
105  std::string _particleCollection;
106 
107  int _layerCaloHit;
108  int _layerSimCaloHit;
109  int _layerTrackerHit;
110  int _layerSimTrackerHit;
111  int _layerTrueClusters;
112  int _layerTrueTracks;
113  int _layerClusters;
114  int _layerTracks;
115  int _layerMCP;
116  int _layerBosons;
117  int _layerReco;
118 
119  int _detModel;
120 
121  int _waitForKeyboard;
122 
123  std::map<MCParticle *, int > _mcpList;
124 
125  int returnColor(int counter);
126 
127  float _bField;
128 
129 
130 } ;
131 
132 #endif
133 
134 
135 
Viewer Processor This processor displays collections of LCIO objects, including SimCalorimeterHit...
Definition: GenericViewer.h:72