#include <IORawData/Ecal2004TBInputService/interface/TRawCrystal.h>
Public Member Functions | |
virtual void | Clear (const char *opt="") |
Int_t | Compare (const TObject *obj) const |
Int_t | GetHeader () |
Int_t | GetNSamples () |
Int_t | GetSample (Int_t n) |
Int_t * | GetSamples () |
Bool_t | IsSortable () const |
virtual void | Print (const char *opt=0) const |
void | SetCrystalRaw (Int_t, Int_t *) |
TRawCrystal (Int_t, Int_t *) | |
TRawCrystal () | |
virtual | ~TRawCrystal () |
Static Public Attributes | |
static Int_t | fgNSamplesCrystal |
Private Member Functions | |
void | Init () |
Private Attributes | |
Int_t | fHeader |
Int_t | fNSample |
Int_t * | fSamples |
Definition at line 6 of file TRawCrystal.h.
TRawCrystal::TRawCrystal | ( | ) |
TRawCrystal::TRawCrystal | ( | Int_t | , | |
Int_t * | ||||
) |
TRawCrystal::~TRawCrystal | ( | ) | [virtual] |
void TRawCrystal::Clear | ( | const char * | opt = "" |
) | [virtual] |
Definition at line 37 of file TRawCrystal.cc.
References fSamples, and Init().
Referenced by ~TRawCrystal().
Int_t TRawCrystal::Compare | ( | const TObject * | obj | ) | const [inline] |
Definition at line 24 of file TRawCrystal.h.
References fHeader.
00024 { 00025 if (fHeader < ((TRawCrystal*)obj)->fHeader) 00026 return -1; 00027 else if (fHeader > ((TRawCrystal*)obj)->fHeader) 00028 return 1; 00029 else 00030 return 0; }
Int_t TRawCrystal::GetHeader | ( | ) | [inline] |
Int_t TRawCrystal::GetNSamples | ( | ) | [inline] |
Definition at line 32 of file TRawCrystal.h.
References fNSample.
Referenced by Ecal2004TBSource::produce().
00032 { return fNSample; }
Int_t TRawCrystal::GetSample | ( | Int_t | n | ) | [inline] |
Definition at line 33 of file TRawCrystal.h.
References fSamples.
Referenced by Ecal2004TBSource::produce().
Int_t* TRawCrystal::GetSamples | ( | ) | [inline] |
Bool_t TRawCrystal::IsSortable | ( | ) | const [inline] |
void TRawCrystal::Print | ( | const char * | opt = 0 |
) | const [virtual] |
Definition at line 47 of file TRawCrystal.cc.
References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), fgNSamplesCrystal, fHeader, fNSample, fSamples, and j.
Referenced by TRawTower::Print().
00047 { 00048 //Prints the whole class 00049 Short_t j; 00050 cout << endl; 00051 00052 cout << "TCrystal fHeader : "; 00053 cout << fHeader << " "; 00054 cout << endl; 00055 cout << "Nb. of Samples : " << fNSample << endl; 00056 cout << "TCrystal Samples: "; 00057 for (j=0;j<fgNSamplesCrystal;j++) { 00058 cout << " "; 00059 cout.width(12); 00060 cout << fSamples[j]; 00061 if (!((j+1)%6)) { 00062 cout << endl; 00063 cout << "TCrystal Samples: "; 00064 } 00065 } 00066 cout << endl; 00067 cout << endl; 00068 }
void TRawCrystal::SetCrystalRaw | ( | Int_t | , | |
Int_t * | ||||
) |
Referenced by TRawTower::FillCrystalData().
Int_t TRawCrystal::fgNSamplesCrystal [static] |
Int_t TRawCrystal::fHeader [private] |
Definition at line 10 of file TRawCrystal.h.
Referenced by Compare(), GetHeader(), Init(), and Print().
Int_t TRawCrystal::fNSample [private] |
Int_t* TRawCrystal::fSamples [private] |
Definition at line 12 of file TRawCrystal.h.
Referenced by Clear(), GetSample(), GetSamples(), Init(), and Print().