CMS 3D CMS Logo

HcalDigiCollections.h
Go to the documentation of this file.
1 #ifndef DIGIHCAL_HCALDIGICOLLECTION_H
2 #define DIGIHCAL_HCALDIGICOLLECTION_H
3 
16 
19 
31 
33 
34 template <class Digi>
36 public:
38  static const size_type MAXSAMPLES = 10;
39  HcalDataFrameContainer(int nsamples_per_digi = MAXSAMPLES, int isubdet = 0)
40  : edm::DataFrameContainer(nsamples_per_digi * Digi::WORDS_PER_SAMPLE + Digi::HEADER_WORDS + Digi::FLAG_WORDS,
41  isubdet) {}
43 
44  //helpful accessors
46  Digi backDataFrame() { return Digi(this->back()); }
47  int samples() const { return int((stride() - Digi::HEADER_WORDS - Digi::FLAG_WORDS) / Digi::WORDS_PER_SAMPLE); }
48  void addDataFrame(DetId detid, const uint16_t* data) { push_back(detid.rawId(), data); }
49  void push_back(const Digi& digi) { push_back(digi.id(), digi.begin()); }
50 };
51 
54 
55 #endif
HFDataFrame.h
HcalDataFrameContainer::addDataFrame
void addDataFrame(DetId detid, const uint16_t *data)
Definition: HcalDigiCollections.h:48
HcalDataFrameContainer
Definition: HcalDigiCollections.h:35
HcalCalibDataFrame.h
CastorDataFrame.h
HOTrigPrimDigiCollection
edm::SortedCollection< HOTriggerPrimitiveDigi > HOTrigPrimDigiCollection
Definition: HcalDigiCollections.h:29
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::swap
void swap(Association< C > &lhs, Association< C > &rhs)
Definition: Association.h:117
TrendClient_cfi.Digi
Digi
Definition: TrendClient_cfi.py:7
HODataFrame.h
edm::SortedCollection
Definition: SortedCollection.h:49
HODigiCollection
edm::SortedCollection< HODataFrame > HODigiCollection
Definition: HcalDigiCollections.h:21
DataFrameContainer.h
HcalDataFrameContainer::size_type
edm::DataFrameContainer::size_type size_type
Definition: HcalDigiCollections.h:37
QIE10DigiCollection
HcalDataFrameContainer< QIE10DataFrame > QIE10DigiCollection
Definition: HcalDigiCollections.h:52
edm::DataFrameContainer::back
DataFrame back()
Definition: DataFrameContainer.h:122
HcalTriggerPrimitiveDigi.h
DetId
Definition: DetId.h:17
HcalDataFrameContainer::samples
int samples() const
Definition: HcalDigiCollections.h:47
ZDCDigiCollection
edm::SortedCollection< ZDCDataFrame > ZDCDigiCollection
Definition: HcalDigiCollections.h:26
HcalDataFrameContainer::MAXSAMPLES
static const size_type MAXSAMPLES
Definition: HcalDigiCollections.h:38
trackingPlots.other
other
Definition: trackingPlots.py:1467
HcalDataFrameContainer::backDataFrame
Digi backDataFrame()
Definition: HcalDigiCollections.h:46
HcalTTPDigi.h
HcalHistogramDigiCollection
edm::SortedCollection< HcalHistogramDigi > HcalHistogramDigiCollection
Definition: HcalDigiCollections.h:25
edm::DataFrameContainer::stride
size_type stride() const
Definition: DataFrameContainer.h:158
HcalDataFrameContainer::push_back
void push_back(const Digi &digi)
Definition: HcalDigiCollections.h:49
QIE10DataFrame.h
createfilelist.int
int
Definition: createfilelist.py:10
HcalCalibDigiCollection
edm::SortedCollection< HcalCalibDataFrame > HcalCalibDigiCollection
Definition: HcalDigiCollections.h:23
ZDCDataFrame.h
QIE11DigiCollection
HcalDataFrameContainer< QIE11DataFrame > QIE11DigiCollection
Definition: HcalDigiCollections.h:53
HcalDataFrameContainer::HcalDataFrameContainer
HcalDataFrameContainer(int nsamples_per_digi=MAXSAMPLES, int isubdet=0)
Definition: HcalDigiCollections.h:39
edm::DataFrameContainer::DataFrameContainer
DataFrameContainer()
Definition: DataFrameContainer.h:63
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
HOTriggerPrimitiveDigi.h
HcalTTPDigiCollection
edm::SortedCollection< HcalTTPDigi > HcalTTPDigiCollection
Definition: HcalDigiCollections.h:30
CastorTrigPrimDigiCollection
edm::SortedCollection< CastorTriggerPrimitiveDigi > CastorTrigPrimDigiCollection
Definition: HcalDigiCollections.h:28
edm::DataFrameContainer::data
DataContainer const & data() const
Definition: DataFrameContainer.h:171
CastorTriggerPrimitiveDigi.h
SortedCollection.h
HcalHistogramDigi.h
edm::DataFrameContainer::push_back
void push_back(id_type iid, data_type const *idata)
Definition: DataFrameContainer.h:99
QIE11DataFrame.h
edm::DataFrameContainer::size_type
unsigned int size_type
Definition: DataFrameContainer.h:35
HFDigiCollection
edm::SortedCollection< HFDataFrame > HFDigiCollection
Definition: HcalDigiCollections.h:22
edm::DataFrameContainer
Definition: DataFrameContainer.h:33
CastorDigiCollection
edm::SortedCollection< CastorDataFrame > CastorDigiCollection
Definition: HcalDigiCollections.h:27
HBHEDigiCollection
edm::SortedCollection< HBHEDataFrame > HBHEDigiCollection
Definition: HcalDigiCollections.h:20
HcalDataFrameContainer::swap
void swap(DataFrameContainer &other)
Definition: HcalDigiCollections.h:42
HcalTrigPrimDigiCollection
edm::SortedCollection< HcalTriggerPrimitiveDigi > HcalTrigPrimDigiCollection
Definition: HcalDigiCollections.h:24
HBHEDataFrame.h