CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HPDNoiseDataFrame.cc
Go to the documentation of this file.
1 // --------------------------------------------------------
2 // Object to store all timeslices of noise signal frame
3 // Project: HPD noise library
4 // Author: F.Ratnikov UMd, Jan. 15, 2008
5 // --------------------------------------------------------
6 
8 
9 HPDNoiseDataFrame::HPDNoiseDataFrame (HcalDetId fId, const float* fCharges)
10  : mId (fId.rawId())
11 {
12  for (size_t i = 0; i < FRAMESIZE; ++i) mCharge[i] = fCharges[i];
13 }
14 
16 
17 std::ostream& operator<< (std::ostream& fStream, const HPDNoiseDataFrame& fFrame) {
18  fStream << fFrame.id();
19  for (size_t i = 0; i < FRAMESIZE; ++i) fStream << ' ' << i << ':' << fFrame.charge (i);
20  return fStream;
21 }
int i
Definition: DBlmapReader.cc:9
float charge(unsigned i) const
charges corresponding to one timeslice of the channel
virtual ~HPDNoiseDataFrame()
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
HcalDetId id() const
detId for the frame