#include <IORawData/Ecal2004TBInputService/interface/TRawTower.h>
Public Member Functions | |
virtual void | Clear (const char *opt="") |
void | FillCrystalData (Int_t, Int_t, Int_t *) |
TRawCrystal * | GetCrystal (Short_t n) |
Int_t | GetN () |
Short_t | GetNChRose () |
Short_t | GetNRose () |
Int_t | GetStripHeader (Short_t j) |
Int_t | GetTowerHeader (Short_t j) |
virtual void | Print (const char *opt="") const |
void | SetHeaders (Int_t *, Int_t *) |
void | SetN (Int_t n) |
void | SetRoseInfo (Short_t, Short_t) |
TRawTower (Int_t, Short_t, Short_t) | |
TRawTower () | |
virtual | ~TRawTower () |
Public Attributes | |
TRawCrystal | fCrystalsRaw [25] |
Int_t | fNCrystal |
TRawTriggerChannel | fRawTriggerChannel |
Static Public Attributes | |
static Int_t | fgNTowers |
Protected Member Functions | |
void | Init () |
Protected Attributes | |
Int_t | fN |
Short_t | fNChRose |
Short_t | fNRose |
Int_t | fStripHeader [5] |
Int_t | fTowerHeader [4] |
Definition at line 7 of file TRawTower.h.
TRawTower::TRawTower | ( | ) |
TRawTower::TRawTower | ( | Int_t | n, | |
Short_t | rose_n, | |||
Short_t | rose_ch | |||
) |
virtual TRawTower::~TRawTower | ( | ) | [inline, virtual] |
void TRawTower::Clear | ( | const char * | opt = "" |
) | [virtual] |
Definition at line 41 of file TRawTower.cc.
References fNCrystal.
00041 { 00042 //Clear to go to next event 00043 fNCrystal = 0; 00044 //fCrystalsRaw->Clear("C"); 00045 }
void TRawTower::FillCrystalData | ( | Int_t | icrys, | |
Int_t | h, | |||
Int_t * | s | |||
) |
Definition at line 32 of file TRawTower.cc.
References fCrystalsRaw, fNCrystal, and TRawCrystal::SetCrystalRaw().
00032 { 00033 if (icrys < 0 || icrys > 24) { 00034 printf( "TRawTowers---> icrys is bad !!!!!!!!!!!!!! %d\n", icrys ); 00035 } else { 00036 fCrystalsRaw[icrys].SetCrystalRaw( h, s ); 00037 fNCrystal++; 00038 } 00039 }
TRawCrystal* TRawTower::GetCrystal | ( | Short_t | n | ) | [inline] |
Definition at line 38 of file TRawTower.h.
References fCrystalsRaw.
Referenced by Ecal2004TBSource::produce().
00038 { return &fCrystalsRaw[n]; }
Int_t TRawTower::GetN | ( | ) | [inline] |
Short_t TRawTower::GetNChRose | ( | ) | [inline] |
Short_t TRawTower::GetNRose | ( | ) | [inline] |
Int_t TRawTower::GetStripHeader | ( | Short_t | j | ) | [inline] |
Definition at line 37 of file TRawTower.h.
References fStripHeader.
00037 { return fStripHeader[j]; }
Int_t TRawTower::GetTowerHeader | ( | Short_t | j | ) | [inline] |
Definition at line 36 of file TRawTower.h.
References fTowerHeader.
00036 { return fTowerHeader[j]; }
Definition at line 47 of file TRawTower.cc.
References fN, fNChRose, fNCrystal, fNRose, fStripHeader, fTowerHeader, and j.
00047 { 00048 //Initialization 00049 Short_t j; 00050 fN = -1; 00051 fNCrystal = 0; 00052 fNRose = 0; 00053 fNChRose = 0; 00054 for (j=0;j<4;j++) fTowerHeader[j] = 0; 00055 for (j=0;j<5;j++) fStripHeader[j] = 0; 00056 }
void TRawTower::Print | ( | const char * | opt = "" |
) | const [virtual] |
Definition at line 69 of file TRawTower.cc.
References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), fCrystalsRaw, fN, fNChRose, fNCrystal, fNRose, fStripHeader, fTowerHeader, j, and TRawCrystal::Print().
00069 { 00070 //Prints everything 00071 Int_t j; 00072 cout << endl; 00073 cout << "Tower Number : " << fN << endl; 00074 cout << "Nb of crystals : " << fNCrystal << endl; 00075 cout << "Rose Number : " << fNRose << endl; 00076 cout << "Rose Channel : " << fNChRose << endl; 00077 cout << "Tower Header words:" << endl; 00078 for (j=0;j<4;j++) { 00079 cout << " " << fTowerHeader[j]; 00080 } 00081 cout << endl; 00082 cout << "Strip Header words:" << endl; 00083 for (j=0;j<5;j++) { 00084 cout << " " << fStripHeader[j]; 00085 } 00086 cout << endl; 00087 //for (j=0;j<fNCrystal;j++) (*fCrystalsRaw)[j]->Print(); 00088 //call only TObect print method 00089 for (j=0;j<fNCrystal;j++){ 00090 fCrystalsRaw[j].Print(); 00091 } 00092 cout << endl; 00093 }
void TRawTower::SetHeaders | ( | Int_t * | th, | |
Int_t * | sh | |||
) |
Definition at line 58 of file TRawTower.cc.
References fStripHeader, fTowerHeader, and j.
00058 { 00059 Short_t j; 00060 for (j=0;j<4;j++) fTowerHeader[j] = th[j]; 00061 for (j=0;j<5;j++) fStripHeader[j] = sh[j]; 00062 }
void TRawTower::SetN | ( | Int_t | n | ) | [inline] |
void TRawTower::SetRoseInfo | ( | Short_t | rose_n, | |
Short_t | rose_ch | |||
) |
Definition at line 23 of file TRawTower.h.
Referenced by FillCrystalData(), GetCrystal(), and Print().
Int_t TRawTower::fgNTowers [static] |
Definition at line 26 of file TRawTower.h.
Int_t TRawTower::fN [protected] |
Definition at line 11 of file TRawTower.h.
Referenced by GetN(), Init(), Print(), SetN(), and TRawTower().
Short_t TRawTower::fNChRose [protected] |
Definition at line 13 of file TRawTower.h.
Referenced by GetNChRose(), Init(), Print(), SetRoseInfo(), and TRawTower().
Int_t TRawTower::fNCrystal |
Definition at line 21 of file TRawTower.h.
Referenced by Clear(), FillCrystalData(), Init(), Print(), and TRawTower().
Short_t TRawTower::fNRose [protected] |
Definition at line 12 of file TRawTower.h.
Referenced by GetNRose(), Init(), Print(), SetRoseInfo(), and TRawTower().
Definition at line 24 of file TRawTower.h.
Int_t TRawTower::fStripHeader[5] [protected] |
Definition at line 15 of file TRawTower.h.
Referenced by GetStripHeader(), Init(), Print(), and SetHeaders().
Int_t TRawTower::fTowerHeader[4] [protected] |
Definition at line 14 of file TRawTower.h.
Referenced by GetTowerHeader(), Init(), Print(), and SetHeaders().