Go to the documentation of this file.00001 #ifndef HPDLibrary_HPDNoiseData_h
00002 #define HPDLibrary_HPDNoiseData_h
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "TObject.h"
00012
00013 #include <iostream>
00014 #include <stdint.h>
00015 #include "DataFormats/HcalDetId/interface/HcalDetId.h"
00016 #include "SimCalorimetry/HcalSimAlgos/interface/HPDNoiseDataFrame.h"
00017 #include <vector>
00018
00019 class HPDNoiseData {
00020 public:
00021 HPDNoiseData () {}
00022 virtual ~HPDNoiseData ();
00023
00025 unsigned size () const {return mData.size();}
00027 void addChannel (HcalDetId fId, const float* fCharges);
00029 std::vector<HcalDetId> getAllDetIds () const;
00031 const HPDNoiseDataFrame& getDataFrame (size_t i) const;
00033 void clear () {mData.clear ();}
00035 static const char* className () {return "HPDNoiseData";}
00037 static const char* branchName () {return "data";}
00038 private:
00039 std::vector<HPDNoiseDataFrame> mData;
00040
00041 };
00042
00044 std::ostream& operator<< (std::ostream&, const HPDNoiseData&);
00045
00046 #endif