CEDViewer  1.12.0
DSTViewer.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 
22 class DSTViewer : public Processor {
23 
24  public:
25 
26  virtual Processor* newProcessor() { return new DSTViewer ; }
27 
28  DSTViewer() ;
29 
30  virtual void init() ;
31 
32  virtual void processRunHeader( LCRunHeader* run ) ;
33 
34  virtual void processEvent( LCEvent * evt ) ;
35 
36  virtual void check( LCEvent * evt ) ;
37 
38  virtual void end() ;
39 
40 
41  protected:
42 
43  int _nRun ;
44  int _nEvt ;
45  // bool dispHelix;
46 
47 // std::vector<std::string> _caloHitCollections;
48 // std::vector<std::string> _simCaloHitCollections;
49 // std::vector<std::string> _trackerHitCollections;
50 // std::vector<std::string> _simTrackerHitCollections;
51 // std::string _trueClustersCollection;
52 // std::string _trueTracksCollection;
53 // std::string _clustersCollection;
54 // std::string _tracksCollection;
55  std::string _particleCollection;
56 
57  StringVec _jetCollections;
58 
59  int _layerCaloHit;
60  int _layerSimCaloHit;
61  int _layerTrackerHit;
62  int _layerSimTrackerHit;
63  int _layerTrueClusters;
64  int _layerTrueTracks;
65  int _layerClusters;
66  int _layerTracks;
67  int _layerMCP;
68  int _layerBosons;
69  int _layerReco;
70 
71 
72  int _detModel;
73 
74  int _waitForKeyboard;
75 
76  std::map<MCParticle *, int > _mcpList;
77 
78  int returnTrackColor(int type);
79 
91  int returnClusterColor(float eneCluster, float cutoff_min, float cutoff_max);
92 
107  void showLegendSpectrum(const unsigned int color_steps, char scale, int colorMap, float ene_min, float ene_max, unsigned int ticks);
108 
109  int returnRGBClusterColor(float eneCluster, float cutoff_min, float cutoff_max, int color_steps, char scale, int colorMap);
110 
111  int returnClusterSize(float eneCluster, float cutoff_min, float cutoff_max);
112 
113  int returnTrackSize(float type);
114 
115  int returnJetLayer(std::string jetColName);
116 
117  int returnIpLayer(std::string jetColName);
118 
119  int returnJetColor(std::string jetColName, int colNumber);
120 
121  int addAlphaChannelToColor(int color, int alphaChannel);
122 
123  float * returnConeColor(std::string jetColName);
124 
125  float _bField;
126 
127  void writeLayerDescription(void);
128 
129 } ;
130 
131 #endif
132 
133 
134 
DSTViewer This processor displays ....
Definition: DSTViewer.h:22