1 #ifndef TrackerRawViewer_h
2 #define TrackerRawViewer_h 1
4 #include "marlin/Processor.h"
11 std::ostream& operator<<(std::ostream& os , const std::pair<int, int>& p)
13 os <<
"[" << p.first <<
"," << p.second <<
"]" ;
17 #include "ADCChannelMapping.h"
18 #include "lccd/ConditionsMap.hh"
21 #include "gear/GEAR.h"
22 #include "gear/TPCParameters.h"
26 typedef lccd::ConditionsMap< tpcconddata::ADCChannelMapping::key_type , tpcconddata::ADCChannelMapping > ChannelMap ;
65 PadMeanADC() : Total(0.), N(0) {}
70 void operator+=(
float adc)
77 typedef std::map< std::pair<int, int>, PadMeanADC > ADCMap ;
81 virtual Processor* newProcessor()
103 virtual void check(lcio::LCEvent * evt) ;
114 bool getPadCenter(
double *padCenter,
int cellID0,
int cellID1) ;
116 static const int ncol = 20 ;
117 static const int nscheme = 10 ;
119 static const int Red = 0 ;
120 static const int Orange = 1 ;
121 static const int Plum = 2 ;
122 static const int Violet = 3 ;
123 static const int Blue = 4 ;
124 static const int LightBlue = 5 ;
125 static const int Aquamarine = 6 ;
126 static const int Green = 7 ;
127 static const int Olive = 8 ;
128 static const int Yellow = 9 ;
130 static const int Dark = 10 ;
131 static const int Light = 11 ;
132 static const int Classic = 12 ;
136 std::string _hitColName ;
137 std::string _trkColName ;
138 std::string _chMapCollection ;
139 std::string _chPosTextFile ;
141 const gear::TPCParameters* _tpcParams ;
145 float _driftVelocity ;
146 int _colorScaleMaxADC ;
148 bool _waitForKeyboard ;
150 std::vector<int> _colors ;
virtual void processRunHeader(lcio::LCRunHeader *run)
Called for every run.
Simple event display that visualizes TrackerRawData for the LCTPC large prototype with CED...
Definition: TrackerRawViewer.h:58
bool getPadCenter(double *padCenter, int cellID0, int cellID1)
Computes the pad center for given hardware ID in padCenter - returns false if nothing found...
virtual void init()
Called at the begin of the job before anything is read.
std::string _colName
Input collection name.
Definition: TrackerRawViewer.h:135
virtual void processEvent(lcio::LCEvent *evt)
Called for every event - the working horse.
Helper class that creates (is) a simple map of hardware channel to position of the pad center (x...
Definition: ChannelPosMap.h:14
virtual void end()
Called after data processing for clean up.