test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HPDNoiseData.h
Go to the documentation of this file.
1 #ifndef HPDLibrary_HPDNoiseData_h
2 #define HPDLibrary_HPDNoiseData_h
3 
4 // --------------------------------------------------------
5 // Object to store correlated noise data for one HPD
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>
16 #include <vector>
17 
18 class HPDNoiseData {
19  public:
21  virtual ~HPDNoiseData ();
22 
24  unsigned size () const {return mData.size();}
26  void addChannel (HcalDetId fId, const float* fCharges);
28  std::vector<HcalDetId> getAllDetIds () const;
30  const HPDNoiseDataFrame& getDataFrame (size_t i) const;
32  void clear () {mData.clear ();}
34  static const char* className () {return "HPDNoiseData";}
36  static const char* branchName () {return "data";}
37  private:
38  std::vector<HPDNoiseDataFrame> mData;
39 
40 };
41 
43 std::ostream& operator<< (std::ostream&, const HPDNoiseData&);
44 
45 #endif
int i
Definition: DBlmapReader.cc:9
const HPDNoiseDataFrame & getDataFrame(size_t i) const
retrive frame for the given index
Definition: HPDNoiseData.cc:21
virtual ~HPDNoiseData()
Definition: HPDNoiseData.cc:9
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
void addChannel(HcalDetId fId, const float *fCharges)
add another noise channel to the event
Definition: HPDNoiseData.cc:11
static const char * className()
class name
Definition: HPDNoiseData.h:34
static const char * branchName()
branch name
Definition: HPDNoiseData.h:36
void clear()
reset event to empty state
Definition: HPDNoiseData.h:32
std::vector< HcalDetId > getAllDetIds() const
all channels contributing to the event
Definition: HPDNoiseData.cc:15
unsigned size() const
number of noise channels in the event
Definition: HPDNoiseData.h:24
std::vector< HPDNoiseDataFrame > mData
Definition: HPDNoiseData.h:38