PbScSuperModule Class Reference

#include <PbScSuperModule.h>

Inherits EmcSuperModule.

Inheritance diagram for PbScSuperModule:

Inheritance graph
[legend]
List of all members.

Detailed Description

PbSc implementation of EmcSuperModule.

The calibration data base is loaded from files written in 902 during calibration. Data from 902 Data BAse is loaded only for interactive use from PbSc EMCal Hardware Control Window. Even in that case - only shortened version of the data decribed below is available to user, namely - parameters and bits of history for the PMT and results of before-the-installation on-the-sector testing with laser and muons. When those results are unavailable - data will be missing \ What is copied into "NewData" are 12 words from PMT DB calibration data per Energy Range (see below). If data looks bad - there will be three words from earlier measurements made on sector (photocell and laser) which are copied without even bothering to check if they are meaninful. This resulted in a bit of screw-up (data from 5 GeV Laser test mixed with data from 2 geV recalibration?).\

INDY Data - Base Structure\ 1 - Bar code\ 2 - MELZ number\ 3 - MELZ Quantum Efficiency\ 4 - MELZ HV\ 5 - MELZ Dark Current\ 6 - MELZ Uniformity\ 7 - MELZ Slope\ 8 - MELZ Scale\ 9 - Flag to indicate manual modifications to the gain (Ratio:New/Old)\ 10 - Reject Code (copied from Usachev) Used to indicate if PMT is alive (code 0) and well or dead or lost (nonzero code)\ 11 - Where I am \ 1 - Loaded into data - base from Fox-Pro DB\ 2 - on shelf (means measurements are available)\ 3 - matched to EMCal (means - results of matching are available)\ 12 - Fit (measurement) Status Code\ 0 - Status unknown\ 1 - Fit results accepted\ 2 - fit results available but unacceptable. Needs remeasurements or fit to be repeated using restricted set of measurements\ 3 - measurements available but all rejected. Fit failed\ 11 - Data looked fine but PMT was replaced after box test \

33 - Predicted System Gain for 16 GeV dynamic range (pc/GeV)\ The next few values are computed assuming all amplitudes are measured in units of 0.043 pc (WA98 board)\ 34 - Number of photoelectrons from laser during calibration (from raw width)\ 35 - Number of photoelectrons from laser during calibration (from norm. width)\ 36 - \ 37 - \ \ 38 - Flag to indicate that this PMT replaced earlier allocation in the same channel ("old" PMT barcode)\ \ Local variables which will later go into the final DB\ 39 - amplitude measured on the test box prior to installation (at HV5)\ 40 - used to store LGAMGEV from calibration in 902 !!!!!!!!!!!!!!!!!!!!!!!!!!!!\ \ Results of on-sectors testing with laser\ 5 GeV Gain settings\ 41 - Hamamatsu peak position\ 42 - Photocell peak position \ 43 - Photocell test pulse peak position\ 44 - Average Laser amplitude\ 16 GeV Gain settings\ 45 - Hamamatsu peak position \ 46 - Photocell peak position \ 47 - Photocell test pulse peak position\ 48 - Average Laser amplitude\ 80 GeV Gain settings\ 49 - Hamamatsu peak position \ 50 - Photocell peak position \ 51 - Photocell test pulse peak position\ 52 - Average Laser amplitude\ \ Results of the on-sectors lateral muon calibration (when available)\ If PMT Data Base is loaded (PXEMC) - all 12 words are copied into NewData area\ pop,l_cur,l_rms,laser0,p2h,p3h,p2h0,p3h0,phigh,rmshigh\ 2 GeV Gain settings\ 56 - Confidence Flag (Laser data)\ 57 - Photocell peak position (N2)\ 58 - Photocell peak position (YAG)\ 59 - Photocell test pulse peak position\ 60 - Average Laser amplitude (N2)\ 61 - RMS of the laser amplitude (N2)\ 62 - Average Laser amplitude (YAG)\ 63 - RMS of the laser amplitude (YAG)\ 64 - Confidence Flag (Muon data)\ 65 - Muon population\ 66 - Muon peak position - final\ 67 - RMS of the muon peak - final\ 5 GeV Gain settings\ 71 - Confidence Flag (Laser data)\ 72 - Photocell peak position (N2)\ 73 - Photocell peak position (YAG)\ 74 - Photocell test pulse peak position\ 75 - Average Laser amplitude (N2)\ 76 - RMS of the laser amplitude (N2)\ 77 - Average Laser amplitude (YAG)\ 78 - RMS of the laser amplitude (YAG)\ 79 - Confidence Flag (Muon data)\ 80 - Muon population\ 81 - Muon peak position - final\ 82 - RMS of the muon peak - final\ 16 GeV Gain settings\ 86 - Confidence Flag (Laser data)\ 87 - Photocell peak position (N2)\ 88 - Photocell peak position (YAG)\ 89 - Photocell test pulse peak position\ 90 - Average Laser amplitude (N2)\ 91 - RMS of the laser amplitude (N2)\ 92 - Average Laser amplitude (YAG)\ 93 - RMS of the laser amplitude (YAG)\ 94 - Confidence Flag (Muon data)\ 95 - Muon population.\ 96 - Muon peak position - final.\ 97 - RMS of the muon peak - final\

Definition at line 162 of file PbScSuperModule.h.

Public Member Functions

 PbScSuperModule (int &)
 ~PbScSuperModule ()
bool LoadSMData ()
int getProductionId ()
 Returns production Id (if known).
Float_t getScrLightYield (int &Twr)
Float_t getMuPeak (int &Twr)
Float_t getLaserRaw (int &Twr)
Float_t getIntSPD ()
Float_t getIntSPDTP ()
void setVGA (int Twr, Float_t Value)
Float_t getVGA (int Twr)
Float_t getNewHV (int HVGroup, Float_t ERange, Float_t &HVIncrement, Float_t QRange=640., Float_t VGACentral=1.7, Float_t VGAScale=1.)
virtual void getNewVGA (int, Float_t, Float_t *, Float_t *)
virtual void buildDataBase902 ()
virtual void LoadDataBase902 (int, Float_t *)
virtual Float_t getNewData (int iTwr, int iWord)
virtual int getPMTBarCode (int Twr)
virtual int getReplacedPMTBarCode (int Twr)
virtual Float_t getGainModFactor (int Twr)
virtual Float_t getPMTSlope (int Twr)
virtual Float_t getPMTGQE1kV (int Twr)
Float_t getU0 (int &)
 gets U0 information from WA98. Nedded for debugging purposes on online side only.
Float_t getUT (int &)
 gets UT information from WA98. Nedded for debugging purposes on online side only.
int getLgcNumber (int &)
float getAY (int &)
 gets AY information from WA98. Nedded for debugging purposes on online side only.
float getVY (int &)
 gets VY information from WA98. Nedded for debugging purposes on online side only.
float getBL (int &)
 gets BL information from WA98. Nedded for debugging purposes on online side only.
float getRS (int &)
 gets RS information from WA98. Nedded for debugging purposes on online side only.
float getAYPeak (int &)
 gets PMT signal of AY diode from WA98. Nedded for debugging purposes on online side only. Information is used in G0.
float getAYRef (int &)
 gets PIN signal of AY diode from WA98. Nedded for debugging purposes on online side only. Information is used in G0.
float getTestPeak (int &)
 gets PMT signal of AY diode from tests in 902. Nedded for debugging purposes on online side only.
float getTestRef (int &)
 gets PIN signal of AY diode from tests in 902. Nedded for debugging purposes on online side only.
float getGC (int &)
 gets additional calibration factor from WA98. Nedded for debugging purposes on online side only. Information is used in C0.
float getC0 (int &)
 gets calibration factor for PHENIX extracted from WA98 data.
float getG0 (int &)
 gets calibration factor for PHENIX extracted from WA98 data.
float getCF (int &)

Private Attributes

int SMProductionId
struct {
   struct {
      Float_t   Hamamatsu
      Float_t   RmsHamamatsu
      Float_t   HamamatsuPed
      Float_t   RmsHamamatsuPed
      Float_t   ExtSPD
      Float_t   RmsExtSPD
      Float_t   ExtSPDPed
      Float_t   RmsExtSPDPed
      Float_t   ExtSPDTP
      Float_t   RmsExtSPDTP
      Float_t   IntSPD
      Float_t   RmsIntSPD
      Float_t   IntSPDPed
      Float_t   RmsIntSPDPed
      Float_t   IntSPDTP
      Float_t   RmsIntSPDTP
   }   Ref902
   struct {
      int   TowerId
      int   PMT902
      Float_t   hv902
      Float_t   PredictedGainQE
      Float_t   MuPeak
      Float_t   LaserRaw
      Float_t   LaserPhelRaw
      Float_t   LaserPhelNorm
      Float_t   MeasuredGain
      Float_t   ScrLightYield
      Float_t   ScrPhelYield
      Float_t   EstLightYield
      Float_t   EstPhelYield
      Float_t   VGA
   }   Tower [144]
Data902
DB902NewData


Constructor & Destructor Documentation

PbScSuperModule::PbScSuperModule int &   ) 
 

Definition at line 19 of file PbScSuperModule.C.

References NewData, and SMProductionId.

PbScSuperModule::~PbScSuperModule  ) 
 

Definition at line 27 of file PbScSuperModule.C.

References NewData.


Member Function Documentation

void PbScSuperModule::buildDataBase902  )  [virtual]
 

Definition at line 115 of file PbScSuperModule.C.

References NewData.

Referenced by LoadDataBase902().

float PbScSuperModule::getAY int &   )  [inline, virtual]
 

gets AY information from WA98. Nedded for debugging purposes on online side only.

Implements EmcSuperModule.

Definition at line 255 of file PbScSuperModule.h.

float PbScSuperModule::getAYPeak int &   )  [inline, virtual]
 

gets PMT signal of AY diode from WA98. Nedded for debugging purposes on online side only. Information is used in G0.

Implements EmcSuperModule.

Definition at line 263 of file PbScSuperModule.h.

float PbScSuperModule::getAYRef int &   )  [inline, virtual]
 

gets PIN signal of AY diode from WA98. Nedded for debugging purposes on online side only. Information is used in G0.

Implements EmcSuperModule.

Definition at line 265 of file PbScSuperModule.h.

float PbScSuperModule::getBL int &   )  [inline, virtual]
 

gets BL information from WA98. Nedded for debugging purposes on online side only.

Implements EmcSuperModule.

Definition at line 259 of file PbScSuperModule.h.

float PbScSuperModule::getC0 int &   )  [inline, virtual]
 

gets calibration factor for PHENIX extracted from WA98 data.

C0 = 10/487.5 * U0 * UT * GC

Implements EmcSuperModule.

Definition at line 273 of file PbScSuperModule.h.

float PbScSuperModule::getCF int &   )  [inline, virtual]
 

Implements EmcSuperModule.

Definition at line 277 of file PbScSuperModule.h.

float PbScSuperModule::getG0 int &   )  [inline, virtual]
 

gets calibration factor for PHENIX extracted from WA98 data.

G0 = PM(AY)_T_WA98 / PIN(AY)_T_WA98

Implements EmcSuperModule.

Definition at line 275 of file PbScSuperModule.h.

virtual Float_t PbScSuperModule::getGainModFactor int  Twr  )  [inline, virtual]
 

Definition at line 243 of file PbScSuperModule.h.

References NewData.

float PbScSuperModule::getGC int &   )  [inline, virtual]
 

gets additional calibration factor from WA98. Nedded for debugging purposes on online side only. Information is used in C0.

Implements EmcSuperModule.

Definition at line 271 of file PbScSuperModule.h.

Float_t PbScSuperModule::getIntSPD  )  [inline, virtual]
 

Implements EmcSuperModule.

Definition at line 221 of file PbScSuperModule.h.

References Data902.

Float_t PbScSuperModule::getIntSPDTP  )  [inline, virtual]
 

Implements EmcSuperModule.

Definition at line 223 of file PbScSuperModule.h.

References Data902.

Float_t PbScSuperModule::getLaserRaw int &  Twr  )  [inline, virtual]
 

Implements EmcSuperModule.

Definition at line 219 of file PbScSuperModule.h.

References Data902.

int PbScSuperModule::getLgcNumber int &   )  [inline, virtual]
 

Implements EmcSuperModule.

Definition at line 253 of file PbScSuperModule.h.

Float_t PbScSuperModule::getMuPeak int &  Twr  )  [inline, virtual]
 

Implements EmcSuperModule.

Definition at line 217 of file PbScSuperModule.h.

References Data902.

Float_t PbScSuperModule::getNewData int  iTwr,
int  iWord
[virtual]
 

Definition at line 186 of file PbScSuperModule.C.

References DB902::Data, NewData, and PMTWordsPerTower.

Float_t PbScSuperModule::getNewHV int  HVGroup,
Float_t  ERange,
Float_t &  HVIncrement,
Float_t  QRange = 640.,
Float_t  VGACentral = 1.7,
Float_t  VGAScale = 1.
 

Definition at line 136 of file PbScSuperModule.C.

References Data902.

void PbScSuperModule::getNewVGA int  ,
Float_t  ,
Float_t *  ,
Float_t * 
[virtual]
 

Definition at line 179 of file PbScSuperModule.C.

virtual int PbScSuperModule::getPMTBarCode int  Twr  )  [inline, virtual]
 

Definition at line 239 of file PbScSuperModule.h.

References NewData.

virtual Float_t PbScSuperModule::getPMTGQE1kV int  Twr  )  [inline, virtual]
 

Definition at line 247 of file PbScSuperModule.h.

References NewData.

virtual Float_t PbScSuperModule::getPMTSlope int  Twr  )  [inline, virtual]
 

Definition at line 245 of file PbScSuperModule.h.

References NewData.

int PbScSuperModule::getProductionId  )  [inline, virtual]
 

Returns production Id (if known).

Implements EmcSuperModule.

Definition at line 213 of file PbScSuperModule.h.

References SMProductionId.

virtual int PbScSuperModule::getReplacedPMTBarCode int  Twr  )  [inline, virtual]
 

Definition at line 241 of file PbScSuperModule.h.

References NewData.

float PbScSuperModule::getRS int &   )  [inline, virtual]
 

gets RS information from WA98. Nedded for debugging purposes on online side only.

Implements EmcSuperModule.

Definition at line 261 of file PbScSuperModule.h.

Float_t PbScSuperModule::getScrLightYield int &  Twr  )  [inline, virtual]
 

Implements EmcSuperModule.

Definition at line 215 of file PbScSuperModule.h.

References Data902.

float PbScSuperModule::getTestPeak int &   )  [inline, virtual]
 

gets PMT signal of AY diode from tests in 902. Nedded for debugging purposes on online side only.

Implements EmcSuperModule.

Definition at line 267 of file PbScSuperModule.h.

float PbScSuperModule::getTestRef int &   )  [inline, virtual]
 

gets PIN signal of AY diode from tests in 902. Nedded for debugging purposes on online side only.

Implements EmcSuperModule.

Definition at line 269 of file PbScSuperModule.h.

Float_t PbScSuperModule::getU0 int &   )  [inline, virtual]
 

gets U0 information from WA98. Nedded for debugging purposes on online side only.

Implements EmcSuperModule.

Definition at line 249 of file PbScSuperModule.h.

Float_t PbScSuperModule::getUT int &   )  [inline, virtual]
 

gets UT information from WA98. Nedded for debugging purposes on online side only.

Implements EmcSuperModule.

Definition at line 251 of file PbScSuperModule.h.

Float_t PbScSuperModule::getVGA int  Twr  )  [inline]
 

Definition at line 227 of file PbScSuperModule.h.

References Data902.

float PbScSuperModule::getVY int &   )  [inline, virtual]
 

gets VY information from WA98. Nedded for debugging purposes on online side only.

Implements EmcSuperModule.

Definition at line 257 of file PbScSuperModule.h.

void PbScSuperModule::LoadDataBase902 int  ,
Float_t * 
[virtual]
 

Definition at line 121 of file PbScSuperModule.C.

References buildDataBase902(), DB902::GainModFactor, DB902::GQE1kV, NewData, DB902::PMTBarCode, PMTWordsPerTower, DB902::Replaced, and DB902::Slope.

bool PbScSuperModule::LoadSMData  )  [virtual]
 

Reimplemented from EmcSuperModule.

Definition at line 37 of file PbScSuperModule.C.

References EmcStaticData::buildEmcStaticData(), EmcStaticData::getPbScData(), PbScCalibrationData::getPointerToFName(), j, and SMProductionId.

void PbScSuperModule::setVGA int  Twr,
Float_t  Value
[inline]
 

Definition at line 225 of file PbScSuperModule.h.

References Data902.


Member Data Documentation

struct { ... } PbScSuperModule::Data902 [private]
 

Referenced by getIntSPD(), getIntSPDTP(), getLaserRaw(), getMuPeak(), getNewHV(), getScrLightYield(), getVGA(), and setVGA().

Float_t PbScSuperModule::EstLightYield [private]
 

Definition at line 197 of file PbScSuperModule.h.

Float_t PbScSuperModule::EstPhelYield [private]
 

Definition at line 198 of file PbScSuperModule.h.

Float_t PbScSuperModule::ExtSPD [private]
 

Definition at line 172 of file PbScSuperModule.h.

Float_t PbScSuperModule::ExtSPDPed [private]
 

Definition at line 174 of file PbScSuperModule.h.

Float_t PbScSuperModule::ExtSPDTP [private]
 

Definition at line 176 of file PbScSuperModule.h.

Float_t PbScSuperModule::Hamamatsu [private]
 

Definition at line 168 of file PbScSuperModule.h.

Float_t PbScSuperModule::HamamatsuPed [private]
 

Definition at line 170 of file PbScSuperModule.h.

Float_t PbScSuperModule::hv902 [private]
 

Definition at line 188 of file PbScSuperModule.h.

Float_t PbScSuperModule::IntSPD [private]
 

Definition at line 178 of file PbScSuperModule.h.

Float_t PbScSuperModule::IntSPDPed [private]
 

Definition at line 180 of file PbScSuperModule.h.

Float_t PbScSuperModule::IntSPDTP [private]
 

Definition at line 182 of file PbScSuperModule.h.

Float_t PbScSuperModule::LaserPhelNorm [private]
 

Definition at line 193 of file PbScSuperModule.h.

Float_t PbScSuperModule::LaserPhelRaw [private]
 

Definition at line 192 of file PbScSuperModule.h.

Float_t PbScSuperModule::LaserRaw [private]
 

Definition at line 191 of file PbScSuperModule.h.

Float_t PbScSuperModule::MeasuredGain [private]
 

Definition at line 194 of file PbScSuperModule.h.

Float_t PbScSuperModule::MuPeak [private]
 

Definition at line 190 of file PbScSuperModule.h.

DB902* PbScSuperModule::NewData [private]
 

Definition at line 203 of file PbScSuperModule.h.

Referenced by buildDataBase902(), getGainModFactor(), getNewData(), getPMTBarCode(), getPMTGQE1kV(), getPMTSlope(), getReplacedPMTBarCode(), LoadDataBase902(), PbScSuperModule(), and ~PbScSuperModule().

int PbScSuperModule::PMT902 [private]
 

Definition at line 187 of file PbScSuperModule.h.

Float_t PbScSuperModule::PredictedGainQE [private]
 

Definition at line 189 of file PbScSuperModule.h.

struct { ... } PbScSuperModule::Ref902 [private]
 

Float_t PbScSuperModule::RmsExtSPD [private]
 

Definition at line 173 of file PbScSuperModule.h.

Float_t PbScSuperModule::RmsExtSPDPed [private]
 

Definition at line 175 of file PbScSuperModule.h.

Float_t PbScSuperModule::RmsExtSPDTP [private]
 

Definition at line 177 of file PbScSuperModule.h.

Float_t PbScSuperModule::RmsHamamatsu [private]
 

Definition at line 169 of file PbScSuperModule.h.

Float_t PbScSuperModule::RmsHamamatsuPed [private]
 

Definition at line 171 of file PbScSuperModule.h.

Float_t PbScSuperModule::RmsIntSPD [private]
 

Definition at line 179 of file PbScSuperModule.h.

Float_t PbScSuperModule::RmsIntSPDPed [private]
 

Definition at line 181 of file PbScSuperModule.h.

Float_t PbScSuperModule::RmsIntSPDTP [private]
 

Definition at line 183 of file PbScSuperModule.h.

Float_t PbScSuperModule::ScrLightYield [private]
 

Definition at line 195 of file PbScSuperModule.h.

Float_t PbScSuperModule::ScrPhelYield [private]
 

Definition at line 196 of file PbScSuperModule.h.

int PbScSuperModule::SMProductionId [private]
 

Definition at line 165 of file PbScSuperModule.h.

Referenced by getProductionId(), LoadSMData(), and PbScSuperModule().

struct { ... } PbScSuperModule::Tower[144] [private]
 

int PbScSuperModule::TowerId [private]
 

Definition at line 186 of file PbScSuperModule.h.

Float_t PbScSuperModule::VGA [private]
 

Definition at line 199 of file PbScSuperModule.h.


The documentation for this class was generated from the following files: