CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HPDNoiseDataFrame.h
Go to the documentation of this file.
1 #ifndef HPDLibrary_HPDNoiseDataFrame_h
2 #define HPDLibrary_HPDNoiseDataFrame_h
3 
4 // --------------------------------------------------------
5 // Object to store all timeslices of noise signal frame
6 // Project: HPD noise library
7 // Author: F.Ratnikov UMd, Jan. 15, 2008
8 // $Id: HPDNoiseDataFrame.h,v 1.2 2008/08/04 22:07:08 fedor Exp $
9 // --------------------------------------------------------
10 
11 #include "TObject.h"
12 
13 #include <iostream>
14 #include <stdint.h>
16 
17 
18 namespace {
19  const unsigned int FRAMESIZE = 10;
20 }
21 
23  public:
25  HPDNoiseDataFrame (HcalDetId fId, const float* fCharges);
26  virtual ~HPDNoiseDataFrame ();
28  HcalDetId id () const {return HcalDetId (mId);}
30  float charge (unsigned i) const {return (i < FRAMESIZE) ? mCharge[i] : -1.;}
32  const float* getFrame () const {return mCharge;}
33  private:
34  uint32_t mId;
35  float mCharge [10];
36 };
37 
39 std::ostream& operator<< (std::ostream&, const HPDNoiseDataFrame&);
40 
41 #endif
int i
Definition: DBlmapReader.cc:9
float charge(unsigned i) const
charges corresponding to one timeslice of the channel
const float * getFrame() const
array of 10 charges corresponding to one channel
virtual ~HPDNoiseDataFrame()
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
HcalDetId id() const
detId for the frame