CMS 3D CMS Logo

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
HcalFiberPattern::slot
int slot() const
Definition: HcalFiberPattern.h:20
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
HcalFiberPattern::HcalFiberPattern
HcalFiberPattern(const std::map< std::string, std::string > &params, const std::vector< uint32_t > &data)
Definition: HcalFiberPattern.cc:12
HcalFiberPattern::getId
HcalElectronicsId getId(int fiberChan)
Definition: HcalFiberPattern.cc:68
HcalFiberPattern::getSamples
std::vector< HcalQIESample > getSamples(int bunch, int npresamples, int nsamples, int fiberChan)
Definition: HcalFiberPattern.cc:49
HcalFiberPattern::spigot_
int spigot_
Definition: HcalFiberPattern.h:25
HcalFiberPattern::crate_
int crate_
Definition: HcalFiberPattern.h:25
HcalFiberPattern::unpack
HcalQIESample unpack(int bc, int fc)
Definition: HcalFiberPattern.cc:22
HcalFiberPattern::fiber
int fiber() const
Definition: HcalFiberPattern.h:21
HcalQIESample
Definition: HcalQIESample.h:32
HcalFiberPattern::pattern_
std::vector< uint32_t > pattern_
Definition: HcalFiberPattern.h:26
HcalFiberPattern::tb_
int tb_
Definition: HcalFiberPattern.h:25
HcalElectronicsId
Readout chain identification for Hcal.
Definition: HcalElectronicsId.h:32
HcalFiberPattern::dcc_
int dcc_
Definition: HcalFiberPattern.h:25
HcalQIESample.h
HcalFiberPattern::crate
int crate() const
Definition: HcalFiberPattern.h:19
HcalFiberPattern
Definition: HcalFiberPattern.h:14
HcalFiberPattern::slot_
int slot_
Definition: HcalFiberPattern.h:25
HcalElectronicsId.h
HcalFiberPattern::fiber_
int fiber_
Definition: HcalFiberPattern.h:25
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79