CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalDigiCollections.h
Go to the documentation of this file.
1 #ifndef DIGIHCAL_HCALDIGICOLLECTION_H
2 #define DIGIHCAL_HCALDIGICOLLECTION_H
3 
17 
20 
34 
36 
37 template <class Digi>
39 public:
41  HcalDataFrameContainer(int nsamples_per_digi) : edm::DataFrameContainer(nsamples_per_digi*Digi::WORDS_PER_SAMPLE+Digi::HEADER_WORDS) { }
42 
43  int size() const { return int(edm::DataFrameContainer::size()); }
44  Digi operator[](size_type i) const { return Digi(edm::DataFrameContainer::operator[](i));}
45  void addDataFrame(DetId detid, const uint16_t* data) { push_back(detid.rawId(),data); }
46  int samples() const { return int((stride()-Digi::HEADER_WORDS)/Digi::WORDS_PER_SAMPLE); }
48 };
49 
52 
53 
54 #endif
int i
Definition: DBlmapReader.cc:9
HcalDataFrameContainer(int nsamples_per_digi)
edm::SortedCollection< HcalTriggerPrimitiveDigi > HcalTrigPrimDigiCollection
void addDataFrame(DetId detid, const uint16_t *data)
size_type stride() const
edm::SortedCollection< HOTriggerPrimitiveDigi > HOTrigPrimDigiCollection
Digi operator[](size_type i) const
edm::SortedCollection< ZDCDataFrame > ZDCDigiCollection
HcalDataFrameContainer< QIE10DataFrame > QIE10DigiCollection
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
edm::SortedCollection< HODataFrame > HODigiCollection
edm::SortedCollection< HcalUpgradeDataFrame > HFUpgradeDigiCollection
edm::SortedCollection< HcalUpgradeDataFrame > HBHEUpgradeDigiCollection
HcalDataFrameContainer< QIE11DataFrame > QIE11DigiCollection
Definition: DetId.h:18
edm::SortedCollection< HcalCalibDataFrame > HcalCalibDigiCollection
edm::SortedCollection< HcalHistogramDigi > HcalHistogramDigiCollection
void push_back(id_type iid, data_type const *idata)
edm::SortedCollection< HcalTTPDigi > HcalTTPDigiCollection
edm::SortedCollection< HFDataFrame > HFDigiCollection
edm::SortedCollection< CastorDataFrame > CastorDigiCollection
edm::SortedCollection< CastorTriggerPrimitiveDigi > CastorTrigPrimDigiCollection
edm::SortedCollection< HBHEDataFrame > HBHEDigiCollection