CMS 3D CMS Logo

HcalTBTDCUnpacker.h
Go to the documentation of this file.
1 #ifndef HCALTBTDCUNPACKER_H
2 #define HCALTBTDCUNPACKER_H 1
6 
7 namespace hcaltb {
13 public:
14  HcalTBTDCUnpacker(bool);
15  void unpack(const FEDRawData& raw,
17  HcalTBTiming& timing) const;
18  void setCalib(const std::vector<std::vector<std::string> >& calibLines_);
19 private:
20  struct Hit {
21  int channel;
22  double time;
23  };
24 
25  void unpackHits(const FEDRawData& raw, std::vector<Hit>& hits, HcalTBTiming& timing) const;
26  void reconstructWC(const std::vector<Hit>& hits,
27  HcalTBEventPosition& pos) const;
28  void reconstructTiming(const std::vector<Hit>& hits,
29  HcalTBTiming& timing) const;
30 // void setupWC(); // reads it from configuration file
31 
32  static const int PLANECOUNT = 16;
33  static const int WC_CHANNELIDS[PLANECOUNT*3];
35  double b0, b1, mean, sigma;
36  } wc_[PLANECOUNT];
37 
39  double tdc_ped[161];
40  double tdc_convers[161];
41  FILE *dumpObs_;
42 };
43 
44 }
45 
46 #endif
void reconstructTiming(const std::vector< Hit > &hits, HcalTBTiming &timing) const
void unpackHits(const FEDRawData &raw, std::vector< Hit > &hits, HcalTBTiming &timing) const
void setCalib(const std::vector< std::vector< std::string > > &calibLines_)
void unpack(const FEDRawData &raw, HcalTBEventPosition &pos, HcalTBTiming &timing) const
void reconstructWC(const std::vector< Hit > &hits, HcalTBEventPosition &pos) const
static const int WC_CHANNELIDS[PLANECOUNT *3]
struct hcaltb::HcalTBTDCUnpacker::WireChamberRecoData wc_[PLANECOUNT]