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 // $Id: HPDNoiseDataFrame.cc,v 1.2 2008/01/16 17:36:00 fedor Exp $
6 // --------------------------------------------------------
7 
9 
10 HPDNoiseDataFrame::HPDNoiseDataFrame (HcalDetId fId, const float* fCharges)
11  : mId (fId.rawId())
12 {
13  for (size_t i = 0; i < FRAMESIZE; ++i) mCharge[i] = fCharges[i];
14 }
15 
17 
18 std::ostream& operator<< (std::ostream& fStream, const HPDNoiseDataFrame& fFrame) {
19  fStream << fFrame.id();
20  for (size_t i = 0; i < FRAMESIZE; ++i) fStream << ' ' << i << ':' << fFrame.charge (i);
21  return fStream;
22 }
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:187
HcalDetId id() const
detId for the frame