- fIshunt = 1 ; // All hits are associated with primary particles
-
- //Photoelectron statistics:
- // The light yield is a poissonian distribution of the number of
- // photons created in the PbWo4 crystal, calculated using following formula
- // NumberOfPhotons = EnergyLost * LightYieldMean* APDEfficiency *
- // exp (-LightYieldAttenuation * DistanceToPINdiodeFromTheHit);
- // LightYieldMean is parameter calculated to be over 47000 photons per GeV
- // APDEfficiency is 0.02655
- // k_0 is 0.0045 from Valery Antonenko
- // The number of electrons created in the APD is
- // NumberOfElectrons = APDGain * LightYield
- // The APD Gain is 300
- fLightYieldMean = 47000;
- fIntrinsicPINEfficiency = 0.02655 ; //APD= 0.1875/0.1271 * 0.018 (PIN)
- fLightYieldAttenuation = 0.0045 ;
- fRecalibrationFactor = 13.418/ fLightYieldMean ;
- fElectronsPerGeV = 2.77e+8 ;
- fAPDGain= 300. ;
-
- Int_t nb = GetGeometry()->GetNModules() ;
-
- // create checkables
- fQAHitsMul = new AliPHOSQAIntCheckable("HitsM") ;
- fQATotEner = new AliPHOSQAFloatCheckable("TotEn") ;
- fQAHitsMulB = new TClonesArray("AliPHOSQAIntCheckable",nb) ;
- fQATotEnerB = new TClonesArray("AliPHOSQAFloatCheckable", nb);
- char tempo[20] ;
- Int_t i ;
- for ( i = 0 ; i < nb ; i++ ) {
- sprintf(tempo, "HitsMB%d", i+1) ;
- new( (*fQAHitsMulB)[i]) AliPHOSQAIntCheckable(tempo) ;
- sprintf(tempo, "TotEnB%d", i+1) ;
- new( (*fQATotEnerB)[i] ) AliPHOSQAFloatCheckable(tempo) ;
- }
-
- AliPHOSQAMeanChecker * hmc = new AliPHOSQAMeanChecker("HitsMul", 100. ,25.) ;
- AliPHOSQAMeanChecker * emc = new AliPHOSQAMeanChecker("TotEner", 10. ,5.) ;
- AliPHOSQAMeanChecker * bhmc = new AliPHOSQAMeanChecker("HitsMulB", 100. ,5.) ;
- AliPHOSQAMeanChecker * bemc = new AliPHOSQAMeanChecker("TotEnerB", 2. ,.5) ;
-
- // associate checkables and checkers
- fQAHitsMul->AddChecker(hmc) ;
- fQATotEner->AddChecker(emc) ;
- for ( i = 0 ; i < nb ; i++ ) {
- (static_cast<AliPHOSQAIntCheckable*>((*fQAHitsMulB)[i]))->AddChecker(bhmc) ;
- (static_cast<AliPHOSQAFloatCheckable*>((*fQATotEnerB)[i]))->AddChecker(bemc) ;
- }
-