00001 #ifndef HPDLibrary_HPDNoiseData_h 00002 #define HPDLibrary_HPDNoiseData_h 00003 00004 // -------------------------------------------------------- 00005 // Object to store correlated noise data for one HPD 00006 // Project: HPD noise library 00007 // Author: F.Ratnikov UMd, Jan. 15, 2008 00008 // $Id: HPDNoiseData.h,v 1.3 2008/04/24 18:12:21 rpw Exp $ 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 ();} 00034 private: 00035 std::vector<HPDNoiseDataFrame> mData; 00036 00037 ClassDef(HPDNoiseData,1) 00038 }; 00039 00041 std::ostream& operator<< (std::ostream&, const HPDNoiseData&); 00042 00043 #endif