CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalFiberPattern.h
Go to the documentation of this file.
1 #ifndef IORAWDATA_CALOPATTERNS_HCALFIBERPATTERN_H
2 #define IORAWDATA_CALOPATTERNS_HCALFIBERPATTERN_H 1
3 
6 #include <string>
7 #include <map>
8 #include <vector>
9 
15 public:
16  HcalFiberPattern(const std::map<std::string, std::string>& params, const std::vector<uint32_t>& data);
17  std::vector<HcalQIESample> getSamples(int bunch, int npresamples, int nsamples, int fiberChan);
18  HcalElectronicsId getId(int fiberChan);
19  int crate() const { return crate_; }
20  int slot() const { return slot_; }
21  int fiber() const { return fiber_; }
22 
23 private:
24  HcalQIESample unpack(int bc, int fc);
26  std::vector<uint32_t> pattern_;
27 };
28 
29 #endif
int slot() const
HcalFiberPattern(const std::map< std::string, std::string > &params, const std::vector< uint32_t > &data)
int crate() const
HcalElectronicsId getId(int fiberChan)
int fiber() const
std::vector< uint32_t > pattern_
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
std::vector< HcalQIESample > getSamples(int bunch, int npresamples, int nsamples, int fiberChan)
HcalQIESample unpack(int bc, int fc)
Readout chain identification for Hcal.