StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StTriggerUtilities
L2Emulator
L2algoUtil
L2EmcGeom.cxx
1
#include <stdio.h>
2
#include <math.h>
3
4
#include "L2EmcGeom.h"
5
6
7
/*========================================
8
======================================== */
9
L2EmcGeom::L2EmcGeom(){
10
par_maxADC=4095;
11
par_maxET=60.0;
12
13
14
int
i;
15
for
(i=0;i<BtowGeom::mxEtaBin;i++ ){
16
float
avrEta=-0.975 +i*0.05;
/* assume BTOW has fixed eta bin size */
17
if
(i==0) avrEta=-0.970;
// first & lost towers are smaller
18
if
(i==39) avrEta=0.970;
19
btow.cosh[i]=cosh(avrEta);
20
btow.idealGain2Ene[i]=par_maxADC/par_maxET/btow.cosh[i];
21
// if (mLogFile && i%4==0) fprintf(mLogFile,"aim: Btow iEtaBin=%2d eta=%.3f idealG=%.2f (GeV E_T), cosH=%.3f\n",i,avrEta, idealGainBtow[i], coshBtow[i]);
22
}
23
24
25
// set other hardcoded or calculated params
26
27
28
}
29
Generated by
1.8.5