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 // --------------------------------------------------------
9 
10 #include "TObject.h"
11 
12 #include <iostream>
13 #include <stdint.h>
15 
16 
17 namespace {
18  const unsigned int FRAMESIZE = 10;
19 }
20 
22  public:
24  HPDNoiseDataFrame (HcalDetId fId, const float* fCharges);
25  virtual ~HPDNoiseDataFrame ();
27  HcalDetId id () const {return HcalDetId (mId);}
29  float charge (unsigned i) const {return (i < FRAMESIZE) ? mCharge[i] : -1.;}
31  const float* getFrame () const {return mCharge;}
32  private:
33  uint32_t mId;
34  float mCharge [10];
35 };
36 
38 std::ostream& operator<< (std::ostream&, const HPDNoiseDataFrame&);
39 
40 #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:188
HcalDetId id() const
detId for the frame