CMS 3D CMS Logo

TRawAdc2249.cc

Go to the documentation of this file.
00001 //----------Author's Name:Jean Bourotte, Igor Semeniouk, Patrick Jarry (Windows porting)
00002 //----------Copyright:Those valid for CMS sofware
00003 //----------Modified:31/3/2003
00004 #include <iostream>
00005 #include "IORawData/Ecal2004TBInputService/interface/TRawAdc2249.h"
00006 
00007 using namespace std;
00008 ClassImp(TRawAdc2249)
00009 //______________________________________________________________________________
00010 //
00011 Int_t TRawAdc2249::fgNAdc2249s = 2;
00012 TRawAdc2249::TRawAdc2249() {
00013 //Default constructor
00014   Init();
00015 }
00016 TRawAdc2249::TRawAdc2249(Int_t n) {
00017 //Constructor giving Adc number
00018   Init();
00019   fN = n;
00020 }
00021 TRawAdc2249::TRawAdc2249(Int_t n,Int_t h[]) {
00022   Short_t j;
00023   fN = n;
00024   for(j=0;j<12;j++) fValue[j]=h[j];
00025 }
00026 void TRawAdc2249::Init() {
00027   Short_t j;
00028   for (j=0;j<12;j++) fValue[j] = 0;
00029 }
00030 void TRawAdc2249::Print(const char *opt) const {
00031 //Prints everything
00032   Short_t j;
00033   cout << endl;
00034   cout << "TAdc224 number  : " << fN << endl;
00035   cout << "Q ADC: ";
00036   for (j=0;j<12;j++) cout << "  " << fValue[j];
00037   cout << endl;
00038   cout << endl;
00039 }
00040 void TRawAdc2249::SetAdc(Int_t h[]) {
00041   Short_t j;
00042   for(j=0;j<12;j++) fValue[j]=h[j];
00043 }

Generated on Tue Jun 9 17:39:24 2009 for CMSSW by  doxygen 1.5.4