CMS 3D CMS Logo

EcalMatacqDigi.cc

Go to the documentation of this file.
00001 // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: t; tab-width: 8; -*-
00002 // $Id: EcalMatacqDigi.cc,v 1.4 2008/01/22 18:52:23 muzaffar Exp $
00003 #include "DataFormats/EcalDigi/interface/EcalMatacqDigi.h"
00004 
00005 using namespace std;
00006 
00007 const double EcalMatacqDigi::lsb_ = 0.25e-3;//V
00008 
00009 #if 0
00010 void EcalMatacqDigi::setSize(const int& size) {
00011   if (size<0) size_=0;
00012   else if (size>MAXSAMPLES) size_=MAXSAMPLES;
00013   else size_=size;
00014 }
00015 #endif
00016   
00017 std::ostream& operator<<(std::ostream& s, const EcalMatacqDigi& digi) {
00018   s << digi.size() << " samples " << std::endl;
00019   for (int i=0; i<digi.size(); i++){
00020     s << "  " << digi.amplitudeV(i) << std::endl;
00021   }
00022   return s;
00023 }
00024 
00025 void EcalMatacqDigi::swap(EcalMatacqDigi& a){
00026   data_.swap(a.data_);
00027   std::swap(chId_, a.chId_);
00028   std::swap(ts_, a.ts_);
00029   std::swap(tTrigS_, a.tTrigS_);
00030   std::swap(version_, a.version_);
00031 }

Generated on Tue Jun 9 17:30:42 2009 for CMSSW by  doxygen 1.5.4