CMS 3D CMS Logo

TRawLaserPulse Class Reference

#include <IORawData/Ecal2004TBInputService/interface/TRawLaserPulse.h>

List of all members.

Public Member Functions

Int_t GetNSamples ()
Int_t GetSample (Int_t k) const
Int_t * GetSamples ()
void Print () const
void Remove ()
void SetLaserPulse (Int_t, Int_t *)
 TRawLaserPulse (Int_t, Int_t *)
 TRawLaserPulse ()
virtual ~TRawLaserPulse ()

Protected Member Functions

void Init ()

Protected Attributes

Int_t fNSample
Int_t * fSamples


Detailed Description

Definition at line 5 of file TRawLaserPulse.h.


Constructor & Destructor Documentation

TRawLaserPulse::TRawLaserPulse (  ) 

TRawLaserPulse::TRawLaserPulse ( Int_t  ,
Int_t *   
)

TRawLaserPulse::~TRawLaserPulse (  )  [virtual]

Definition at line 25 of file TRawLaserPulse.cc.

References fSamples.

00025                                 {
00026   if (fSamples) delete [] fSamples;
00027 }


Member Function Documentation

Int_t TRawLaserPulse::GetNSamples (  )  [inline]

Definition at line 21 of file TRawLaserPulse.h.

References fNSample.

00021 { return fNSample; }

Int_t TRawLaserPulse::GetSample ( Int_t  k  )  const [inline]

Definition at line 22 of file TRawLaserPulse.h.

References fSamples.

00022 { return fSamples[k]; }

Int_t * TRawLaserPulse::GetSamples (  ) 

Definition at line 34 of file TRawLaserPulse.cc.

References fSamples.

00034                                   {
00035   return fSamples;
00036 }

void TRawLaserPulse::Init ( void   )  [protected]

Definition at line 38 of file TRawLaserPulse.cc.

References fNSample, and fSamples.

Referenced by Remove().

00038                           {
00039 //Initialization
00040   fNSample = 0;
00041   fSamples = 0;
00042 }

void TRawLaserPulse::Print (  )  const

Definition at line 44 of file TRawLaserPulse.cc.

References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), fNSample, fSamples, and j.

00044                                  {
00045 //Prints everything
00046   Int_t j;
00047   cout << endl;
00048   cout << "Nb. of Samples: " << fNSample << endl;
00049   cout << "Samples: ";
00050   for (j=0;j<fNSample;j++) {
00051     cout << "  " << fSamples[j];
00052     if (!(j%8)) {
00053       cout << endl;
00054       cout << "Samples: ";
00055     }
00056   }
00057   cout << endl;
00058   cout << endl;
00059 }

void TRawLaserPulse::Remove (  ) 

Definition at line 29 of file TRawLaserPulse.cc.

References fSamples, and Init().

00029                             {
00030   if (fSamples) delete [] fSamples;
00031   Init();
00032 }

void TRawLaserPulse::SetLaserPulse ( Int_t  ,
Int_t *   
)


Member Data Documentation

Int_t TRawLaserPulse::fNSample [protected]

Definition at line 9 of file TRawLaserPulse.h.

Referenced by GetNSamples(), Init(), and Print().

Int_t* TRawLaserPulse::fSamples [protected]

Definition at line 10 of file TRawLaserPulse.h.

Referenced by GetSample(), GetSamples(), Init(), Print(), Remove(), and ~TRawLaserPulse().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:34:30 2009 for CMSSW by  doxygen 1.5.4