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 // $Id: HPDNoiseData.h,v 1.3 2008/04/24 18:12:21 rpw Exp $
9 // --------------------------------------------------------
10 
11 #include "TObject.h"
12 
13 #include <iostream>
14 #include <stdint.h>
17 #include <vector>
18 
19 class HPDNoiseData {
20  public:
22  virtual ~HPDNoiseData ();
23 
25  unsigned size () const {return mData.size();}
27  void addChannel (HcalDetId fId, const float* fCharges);
29  std::vector<HcalDetId> getAllDetIds () const;
31  const HPDNoiseDataFrame& getDataFrame (size_t i) const;
33  void clear () {mData.clear ();}
35  static const char* className () {return "HPDNoiseData";}
37  static const char* branchName () {return "data";}
38  private:
39  std::vector<HPDNoiseDataFrame> mData;
40 
41 };
42 
44 std::ostream& operator<< (std::ostream&, const HPDNoiseData&);
45 
46 #endif
int i
Definition: DBlmapReader.cc:9
const HPDNoiseDataFrame & getDataFrame(size_t i) const
retrive frame for the given index
Definition: HPDNoiseData.cc:22
virtual ~HPDNoiseData()
Definition: HPDNoiseData.cc:10
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:12
static const char * className()
class name
Definition: HPDNoiseData.h:35
static const char * branchName()
branch name
Definition: HPDNoiseData.h:37
void clear()
reset event to empty state
Definition: HPDNoiseData.h:33
std::vector< HcalDetId > getAllDetIds() const
all channels contributing to the event
Definition: HPDNoiseData.cc:16
unsigned size() const
number of noise channels in the event
Definition: HPDNoiseData.h:25
std::vector< HPDNoiseDataFrame > mData
Definition: HPDNoiseData.h:39