CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalTBTDCUnpacker.h
Go to the documentation of this file.
1 #ifndef HCALTBTDCUNPACKER_H
2 #define HCALTBTDCUNPACKER_H 1
6 
7 namespace hcaltb {
15 public:
16  HcalTBTDCUnpacker(bool);
17  void unpack(const FEDRawData& raw,
19  HcalTBTiming& timing) const;
20  void setCalib(const std::vector<std::vector<std::string> >& calibLines_);
21 private:
22  struct Hit {
23  int channel;
24  double time;
25  };
26 
27  void unpackHits(const FEDRawData& raw, std::vector<Hit>& hits, HcalTBTiming& timing) const;
28  void reconstructWC(const std::vector<Hit>& hits,
29  HcalTBEventPosition& pos) const;
30  void reconstructTiming(const std::vector<Hit>& hits,
31  HcalTBTiming& timing) const;
32 // void setupWC(); // reads it from configuration file
33 
34  static const int PLANECOUNT = 16;
35  static const int WC_CHANNELIDS[PLANECOUNT*3];
37  double b0, b1, mean, sigma;
38  } wc_[PLANECOUNT];
39 
41  double tdc_ped[161];
42  double tdc_convers[161];
43 };
44 
45 }
46 
47 #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]