CMS 3D CMS Logo

TRawTpgChannel Class Reference

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

List of all members.

Public Member Functions

void Clear ()
Int_t GetLen ()
Int_t GetValue (Int_t k)
Int_t * GetValues ()
void Print () const
void SetTpgChannel (Int_t, Int_t *)
void SetValues (Int_t, Int_t *)
 TRawTpgChannel (Int_t, Int_t *)
 TRawTpgChannel (Int_t)
 TRawTpgChannel ()
virtual ~TRawTpgChannel ()

Protected Member Functions

void Init ()

Protected Attributes

Int_t fNValue
Int_t * fValues


Detailed Description

Definition at line 5 of file TRawTpgChannel.h.


Constructor & Destructor Documentation

TRawTpgChannel::TRawTpgChannel (  ) 

TRawTpgChannel::TRawTpgChannel ( Int_t  n  ) 

Definition at line 20 of file TRawTpgChannel.cc.

References fNValue, fValues, and j.

00020                                       {
00021 //Constructor with number of elements.
00022   Short_t j;
00023   fNValue = n;
00024   fValues = new Int_t [fNValue];
00025   for (j=0;j<fNValue;j++) fValues[j] = 0;
00026 }

TRawTpgChannel::TRawTpgChannel ( Int_t  ,
Int_t *   
)

TRawTpgChannel::~TRawTpgChannel (  )  [virtual]

Definition at line 34 of file TRawTpgChannel.cc.

References Clear().

00034                                 {
00035   Clear();
00036 }


Member Function Documentation

void TRawTpgChannel::Clear (  ) 

Definition at line 38 of file TRawTpgChannel.cc.

References fValues, and Init().

Referenced by ~TRawTpgChannel().

00038                            {
00039   if (fValues) delete [] fValues;
00040   Init();
00041 }

Int_t TRawTpgChannel::GetLen (  )  [inline]

Definition at line 24 of file TRawTpgChannel.h.

References fNValue.

Referenced by Ecal2004TBSource::produce().

00024 { return fNValue; }

Int_t TRawTpgChannel::GetValue ( Int_t  k  )  [inline]

Definition at line 22 of file TRawTpgChannel.h.

References fValues.

Referenced by Ecal2004TBSource::produce().

00022 { return fValues[k]; }

Int_t* TRawTpgChannel::GetValues (  )  [inline]

Definition at line 21 of file TRawTpgChannel.h.

References fValues.

00021 { return fValues; }

void TRawTpgChannel::Init ( void   )  [protected]

Definition at line 43 of file TRawTpgChannel.cc.

References fNValue, and fValues.

Referenced by Clear().

00043                           {
00044 //Everything to 0
00045   fNValue = 0;
00046   fValues = 0;
00047 }

void TRawTpgChannel::Print (  )  const

Definition at line 49 of file TRawTpgChannel.cc.

References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), fNValue, fValues, and j.

00049                                  {
00050 //Prints everything
00051   Short_t j;
00052   cout << endl;
00053   cout << "TRawTpgChannel nv : " << fNValue << endl;
00054   cout << "Values:   ";
00055   for (j=0;j<fNValue;j++) cout << "  " << fValues[j];
00056   cout << endl;
00057   cout << endl;
00058 }

void TRawTpgChannel::SetTpgChannel ( Int_t  ,
Int_t *   
)

void TRawTpgChannel::SetValues ( Int_t  ,
Int_t *   
)


Member Data Documentation

Int_t TRawTpgChannel::fNValue [protected]

Definition at line 9 of file TRawTpgChannel.h.

Referenced by GetLen(), Init(), Print(), and TRawTpgChannel().

Int_t* TRawTpgChannel::fValues [protected]

Definition at line 10 of file TRawTpgChannel.h.

Referenced by Clear(), GetValue(), GetValues(), Init(), Print(), and TRawTpgChannel().


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