CMS 3D CMS Logo

TRawPattern Class Reference

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

List of all members.

Public Member Functions

virtual void Clear (const char *opt="")
Int_t GetNValues ()
Int_t GetValue (Short_t j)
Int_t * GetValues ()
void Init ()
virtual void Print (const char *opt=0) const
void SetValues (Int_t, Int_t *)
Int_t TestBit (Int_t unit, Short_t bit)
 TRawPattern (Int_t, Int_t *)
 TRawPattern ()
virtual ~TRawPattern ()

Protected Attributes

Int_t fNValue
Int_t * fValues


Detailed Description

Definition at line 5 of file TRawPattern.h.


Constructor & Destructor Documentation

TRawPattern::TRawPattern (  ) 

TRawPattern::TRawPattern ( Int_t  ,
Int_t *   
)

TRawPattern::~TRawPattern (  )  [virtual]

Definition at line 24 of file TRawPattern.cc.

References Clear().

00024                           {
00025   Clear();
00026 }


Member Function Documentation

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

Definition at line 34 of file TRawPattern.cc.

References fValues, and Init().

Referenced by ~TRawPattern().

00034                                        {
00035   if (fValues) delete [] fValues;
00036   Init();
00037 }

Int_t TRawPattern::GetNValues (  )  [inline]

Definition at line 20 of file TRawPattern.h.

References fNValue.

00020 { return fNValue;   }

Int_t TRawPattern::GetValue ( Short_t  j  )  [inline]

Definition at line 18 of file TRawPattern.h.

References fValues.

00018 { return fValues[j]; }

Int_t* TRawPattern::GetValues (  )  [inline]

Definition at line 19 of file TRawPattern.h.

References fValues.

00019 { return fValues;    }

void TRawPattern::Init ( void   ) 

Definition at line 28 of file TRawPattern.cc.

References fNValue, and fValues.

Referenced by Clear().

00028                        {
00029 //Everything to 0
00030   fNValue = 0;
00031   fValues = 0;
00032 }

void TRawPattern::Print ( const char *  opt = 0  )  const [virtual]

Definition at line 40 of file TRawPattern.cc.

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

00040                                              {
00041   Short_t j;
00042   cout << endl;
00043 
00044   for (j=0;j<fNValue;j++) cout << "  " << fValues[j];
00045   cout << endl;
00046   cout << endl;
00047 }

void TRawPattern::SetValues ( Int_t  ,
Int_t *   
)

Int_t TRawPattern::TestBit ( Int_t  unit,
Short_t  bit 
) [inline]

Definition at line 22 of file TRawPattern.h.

References fValues.

00023             { return ( fValues[unit] & (1<<bit) ); }


Member Data Documentation

Int_t TRawPattern::fNValue [protected]

Definition at line 9 of file TRawPattern.h.

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

Int_t* TRawPattern::fValues [protected]

Definition at line 10 of file TRawPattern.h.

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


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