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, HcalTBEventPosition& pos, HcalTBTiming& timing) const;
16  void setCalib(const std::vector<std::vector<std::string> >& calibLines_);
17 
18  private:
19  struct Hit {
20  int channel;
21  double time;
22  };
23 
24  void unpackHits(const FEDRawData& raw, std::vector<Hit>& hits, HcalTBTiming& timing) const;
25  void reconstructWC(const std::vector<Hit>& hits, HcalTBEventPosition& pos) const;
26  void reconstructTiming(const std::vector<Hit>& hits, HcalTBTiming& timing) const;
27  // void setupWC(); // reads it from configuration file
28 
29  static const int PLANECOUNT = 16;
30  static const int WC_CHANNELIDS[PLANECOUNT * 3];
32  double b0, b1, mean, sigma;
33  } wc_[PLANECOUNT];
34 
36  double tdc_ped[161];
37  double tdc_convers[161];
38  FILE* dumpObs_;
39  };
40 
41 } // namespace hcaltb
42 
43 #endif
HcalTBEventPosition
Definition: HcalTBEventPosition.h:18
hcaltb::HcalTBTDCUnpacker::wc_
struct hcaltb::HcalTBTDCUnpacker::WireChamberRecoData wc_[PLANECOUNT]
hcaltb::HcalTBTDCUnpacker::tdc_convers
double tdc_convers[161]
Definition: HcalTBTDCUnpacker.h:37
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
hcaltb::HcalTBTDCUnpacker::WireChamberRecoData::mean
double mean
Definition: HcalTBTDCUnpacker.h:32
HcalTBTiming.h
hcaltb::HcalTBTDCUnpacker::Hit::time
double time
Definition: HcalTBTDCUnpacker.h:21
hcaltb::HcalTBTDCUnpacker::PLANECOUNT
static const int PLANECOUNT
Definition: HcalTBTDCUnpacker.h:29
pos
Definition: PixelAliasList.h:18
hcaltb::HcalTBTDCUnpacker::WireChamberRecoData::sigma
double sigma
Definition: HcalTBTDCUnpacker.h:32
hcaltb::HcalTBTDCUnpacker::WC_CHANNELIDS
static const int WC_CHANNELIDS[PLANECOUNT *3]
Definition: HcalTBTDCUnpacker.h:30
FEDRawData.h
hcaltb::HcalTBTDCUnpacker::tdc_ped
double tdc_ped[161]
Definition: HcalTBTDCUnpacker.h:36
FEDRawData
Definition: FEDRawData.h:19
hcaltb::HcalTBTDCUnpacker::unpack
void unpack(const FEDRawData &raw, HcalTBEventPosition &pos, HcalTBTiming &timing) const
Definition: HcalTBTDCUnpacker.cc:73
HcalTBTiming
Definition: HcalTBTiming.h:17
hcaltb::HcalTBTDCUnpacker::reconstructWC
void reconstructWC(const std::vector< Hit > &hits, HcalTBEventPosition &pos) const
Definition: HcalTBTDCUnpacker.cc:297
hcaltb::HcalTBTDCUnpacker::setCalib
void setCalib(const std::vector< std::vector< std::string > > &calibLines_)
Definition: HcalTBTDCUnpacker.cc:35
hcaltb::HcalTBTDCUnpacker::Hit
Definition: HcalTBTDCUnpacker.h:19
hcaltb::HcalTBTDCUnpacker::unpackHits
void unpackHits(const FEDRawData &raw, std::vector< Hit > &hits, HcalTBTiming &timing) const
Definition: HcalTBTDCUnpacker.cc:98
hcaltb::HcalTBTDCUnpacker::reconstructTiming
void reconstructTiming(const std::vector< Hit > &hits, HcalTBTiming &timing) const
Definition: HcalTBTDCUnpacker.cc:157
hcaltb::HcalTBTDCUnpacker::includeUnmatchedHits_
bool includeUnmatchedHits_
Definition: HcalTBTDCUnpacker.h:35
hcaltb
Definition: HcalTBQADCUnpacker.h:6
hcaltb::HcalTBTDCUnpacker::dumpObs_
FILE * dumpObs_
Definition: HcalTBTDCUnpacker.h:38
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
hcaltb::HcalTBTDCUnpacker::WireChamberRecoData::b0
double b0
Definition: HcalTBTDCUnpacker.h:32
hcaltb::HcalTBTDCUnpacker::Hit::channel
int channel
Definition: HcalTBTDCUnpacker.h:20
hcaltb::HcalTBTDCUnpacker::WireChamberRecoData
Definition: HcalTBTDCUnpacker.h:31
ecalMatacq_cfi.timing
timing
Definition: ecalMatacq_cfi.py:26
hcaltb::HcalTBTDCUnpacker
Definition: HcalTBTDCUnpacker.h:12
HcalTBEventPosition.h
hcaltb::HcalTBTDCUnpacker::WireChamberRecoData::b1
double b1
Definition: HcalTBTDCUnpacker.h:32
hcaltb::HcalTBTDCUnpacker::HcalTBTDCUnpacker
HcalTBTDCUnpacker(bool)
Definition: HcalTBTDCUnpacker.cc:30