~mice-lcr/maus/end-of-emr-run

« back to all changes in this revision

Viewing changes to src/common_cpp/Utils/TOFChannelMap.hh

First working version of the TOF reconstruction

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
using std::stringstream;
42
42
 
43
43
//////////////////////////////////////////////////////////////////////////////////////////////
44
 
/** Identifier for  a single TOF channel.
 
44
/** Identifier for a single TOF channel.
45
45
 * This class is used to hold and manage all the information needed
46
46
 * to identifiy one channel in the TOF detectors.
47
47
 */
50
50
  TOFChannelKey()
51
51
  :_station(-999), _plane(-999), _slab(-999), _pmt(-999), _detector("unknown") {}
52
52
 
53
 
  TOFChannelKey(int l, int g, int ch, int e, string d)
54
 
  :_station(l), _plane(g), _slab(ch), _pmt(e), _detector(d) {}
 
53
  TOFChannelKey(int st, int pl, int sl, int pmt, string d)
 
54
  :_station(st), _plane(pl), _slab(sl), _pmt(pmt), _detector(d) {}
55
55
 
56
56
  explicit TOFChannelKey(string keyStr) throw(Squeal);
57
57
  virtual ~TOFChannelKey() {}
69
69
  */  
70
70
  bool inSameSlab(string keyStr);
71
71
 
 
72
  TOFChannelKey GetOppositeSidePMT();
 
73
  string GetOppositeSidePMTStr();
 
74
 
72
75
  friend ostream& operator<<( ostream& stream, TOFChannelKey key );
73
76
  friend istream& operator>>( istream& stream, TOFChannelKey &key ) throw(Squeal);
74
77
 
79
82
  */
80
83
  string str();
81
84
 
82
 
  int station()     {return _station;}
 
85
  int station()   {return _station;}
83
86
  int plane()     {return _plane;}
84
 
  int slab() {return _slab;}
85
 
  int pmt()  {return _pmt;}
 
87
  int slab()      {return _slab;}
 
88
  int pmt()       {return _pmt;}
 
89
 
 
90
  void SetStation(int xStation)       {_station = xStation;}
 
91
  void SetPlane(int xPlane)           {_plane = xPlane;}
 
92
  void SetSlab(int xSlab)             {_slab = xSlab;}
 
93
  void SetPmt(int xPmt)               {_pmt = xPmt;}
 
94
  void SetDetector(string xDetector)  {_detector = xDetector;}
86
95
 
87
96
  /** This function creates unique integer identifier.
88
97
  * \return Integer identifier.