CMS 3D CMS Logo

TRawTriggerChannel Class Reference

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

List of all members.

Public Member Functions

virtual void Clear (const char *opt="")
Int_t GetLen ()
Int_t GetValue (Int_t k)
Int_t * GetValues ()
void Print (const char *opt=0) const
void SetValues (Int_t, Int_t *)
 TRawTriggerChannel (Int_t, Int_t *)
 TRawTriggerChannel (Int_t)
 TRawTriggerChannel ()
virtual ~TRawTriggerChannel ()

Protected Member Functions

void Init ()

Protected Attributes

Int_t fNValue
Int_t * fValues


Detailed Description

Definition at line 5 of file TRawTriggerChannel.h.


Constructor & Destructor Documentation

TRawTriggerChannel::TRawTriggerChannel (  ) 

TRawTriggerChannel::TRawTriggerChannel ( Int_t  n  ) 

Definition at line 18 of file TRawTriggerChannel.cc.

References fNValue, fValues, and j.

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

TRawTriggerChannel::TRawTriggerChannel ( Int_t  ,
Int_t *   
)

TRawTriggerChannel::~TRawTriggerChannel (  )  [virtual]

Definition at line 32 of file TRawTriggerChannel.cc.

References Clear().

00032                                         {
00033   Clear();
00034 }


Member Function Documentation

void TRawTriggerChannel::Clear ( const char *  opt = ""  )  [virtual]

Definition at line 36 of file TRawTriggerChannel.cc.

References fValues, and Init().

Referenced by ~TRawTriggerChannel().

00036                                               {
00037   if (fValues) delete [] fValues;
00038   Init();
00039 }

Int_t TRawTriggerChannel::GetLen (  )  [inline]

Definition at line 23 of file TRawTriggerChannel.h.

References fNValue.

00023 { return fNValue; }

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

Definition at line 22 of file TRawTriggerChannel.h.

References fValues.

00022 { return fValues[k]; }

Int_t* TRawTriggerChannel::GetValues (  )  [inline]

Definition at line 21 of file TRawTriggerChannel.h.

References fValues.

00021 { return fValues; }

void TRawTriggerChannel::Init ( void   )  [protected]

Definition at line 41 of file TRawTriggerChannel.cc.

References fNValue, and fValues.

Referenced by Clear().

00041                               {
00042 //Everything to 0
00043   fNValue = 0;
00044   fValues = 0;
00045 }

void TRawTriggerChannel::Print ( const char *  opt = 0  )  const

Definition at line 47 of file TRawTriggerChannel.cc.

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

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

void TRawTriggerChannel::SetValues ( Int_t  ,
Int_t *   
)


Member Data Documentation

Int_t TRawTriggerChannel::fNValue [protected]

Definition at line 9 of file TRawTriggerChannel.h.

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

Int_t* TRawTriggerChannel::fValues [protected]

Definition at line 10 of file TRawTriggerChannel.h.

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


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