CMS 3D CMS Logo

TRawScaler Class Reference

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

List of all members.

Public Member Functions

Int_t Compare (const TObject *obj) const
Int_t GetN () const
Int_t GetValue (Short_t i)
Int_t * GetValues ()
Bool_t IsSortable () const
virtual void Print (const char *opt=0) const
void SetValues (Int_t *)
 TRawScaler (Int_t, Int_t *)
 TRawScaler (Int_t)
 TRawScaler ()
virtual ~TRawScaler ()

Static Public Attributes

static Int_t fgNScalers

Protected Attributes

Int_t fN
Int_t fValues [12]


Detailed Description

Definition at line 5 of file TRawScaler.h.


Constructor & Destructor Documentation

TRawScaler::TRawScaler (  ) 

TRawScaler::TRawScaler ( Int_t  n  ) 

Definition at line 36 of file TRawScaler.cc.

References fN, fValues, and j.

00036                               {
00037 //Constructor with scaler number
00038   fN = n;
00039   for(Short_t j=0;j<12;j++) fValues[j] = 0;
00040 }

TRawScaler::TRawScaler ( Int_t  ,
Int_t *   
)

virtual TRawScaler::~TRawScaler (  )  [inline, virtual]

Definition at line 19 of file TRawScaler.h.

00019 {}


Member Function Documentation

Int_t TRawScaler::Compare ( const TObject *  obj  )  const [inline]

Definition at line 20 of file TRawScaler.h.

References fN.

00020                                              { 
00021               if (fN < ((TRawScaler*)obj)->fN)
00022                 return -1;
00023               else if (fN > ((TRawScaler*)obj)->fN)
00024                 return 1;
00025               else
00026                 return 0; }

Int_t TRawScaler::GetN (  )  const [inline]

Definition at line 27 of file TRawScaler.h.

References fN.

00027 { return fN;         }

Int_t TRawScaler::GetValue ( Short_t  i  )  [inline]

Definition at line 28 of file TRawScaler.h.

References fValues.

00028 { return fValues[i]; }

Int_t* TRawScaler::GetValues (  )  [inline]

Definition at line 29 of file TRawScaler.h.

References fValues.

00029 { return fValues;    }

Bool_t TRawScaler::IsSortable (  )  const [inline]

Definition at line 30 of file TRawScaler.h.

00030 { return kTRUE;      }

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

Definition at line 45 of file TRawScaler.cc.

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

00045                                             {
00046 //Prints everything
00047   Short_t j;
00048   cout << endl;
00049   cout << "TRawScaler number : " << fN << endl;
00050   cout << endl;
00051   cout << "TRawScaler: ";
00052   for (j=0;j<12;j++) cout << "  " << fValues[j];
00053   cout << endl;
00054   cout << endl;
00055 }

void TRawScaler::SetValues ( Int_t *   ) 


Member Data Documentation

Int_t TRawScaler::fgNScalers [static]

Definition at line 14 of file TRawScaler.h.

Int_t TRawScaler::fN [protected]

Definition at line 9 of file TRawScaler.h.

Referenced by Compare(), GetN(), Print(), and TRawScaler().

Int_t TRawScaler::fValues[12] [protected]

Definition at line 10 of file TRawScaler.h.

Referenced by GetValue(), GetValues(), Print(), and TRawScaler().


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