CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/SimCalorimetry/HcalSimAlgos/src/HPDNoiseDataFrame.cc

Go to the documentation of this file.
00001 // --------------------------------------------------------
00002 // Object to store all timeslices of noise signal frame
00003 // Project: HPD noise library
00004 // Author: F.Ratnikov UMd, Jan. 15, 2008
00005 // $Id: HPDNoiseDataFrame.cc,v 1.2 2008/01/16 17:36:00 fedor Exp $
00006 // --------------------------------------------------------
00007 
00008 #include "SimCalorimetry/HcalSimAlgos/interface/HPDNoiseDataFrame.h"
00009 
00010 HPDNoiseDataFrame::HPDNoiseDataFrame (HcalDetId fId, const float* fCharges) 
00011   : mId (fId.rawId())
00012 {
00013   for (size_t i = 0; i < FRAMESIZE; ++i) mCharge[i] = fCharges[i];
00014 }
00015 
00016 HPDNoiseDataFrame::~HPDNoiseDataFrame () {}
00017 
00018 std::ostream& operator<< (std::ostream& fStream, const HPDNoiseDataFrame& fFrame) {
00019   fStream << fFrame.id();
00020   for (size_t i = 0; i < FRAMESIZE; ++i) fStream << ' ' << i << ':' << fFrame.charge (i);
00021   return fStream;
00022 }