1 #ifndef STAR_StEmcCalibrationMaker
2 #define STAR_StEmcCalibrationMaker
19 #define MAXTRACK 10000
21 #define MAXCHANNEL 18000
26 short mADC[MAXBEMC][MAXCHANNEL];
27 short mADCPedSub[MAXBEMC][MAXCHANNEL];
28 float mPed[MAXBEMC][MAXCHANNEL];
29 float mPedRms[MAXBEMC][MAXCHANNEL];
30 unsigned char mCap[MAXBEMC][MAXCHANNEL];
31 unsigned char mNTracksTower[MAXCHANNEL];
32 bool mIsIsolatedTower[MAXCHANNEL];
33 bool mHasDetector[MAXBEMC];
35 int mNChannel[MAXBEMC];
38 float mTrackP[MAXTRACK];
39 float mTrackPt[MAXTRACK];
40 short mTrackTower[MAXTRACK];
41 short mTrackTowerExit[MAXTRACK];
42 short mTrackNPoints[MAXTRACK];
65 void fillTrackArrays();
75 virtual void zeroAll();
77 int getADC(
int det,
int id) {
return (
int)mADC[det-1][
id-1]; }
78 int getADCPedSub(
int det,
int id) {
return (
int)mADCPedSub[det-1][
id-1]; }
79 int getPed(
int det,
int id) {
return (
int)mPed[det-1][
id-1]; }
80 float getPedRms(
int det,
int id) {
return mPedRms[det-1][
id-1]; }
81 unsigned int getCap(
int det,
int id) {
return (
unsigned int)mCap[det-1][
id-1]; }
82 int getNTracksInTower(
int id) {
return (
int)mNTracksTower[
id-1]; }
83 bool isIsolatedTower(
int id) {
return mIsIsolatedTower[
id-1]; }
84 bool hasDetector(
int det) {
return mHasDetector[det-1];}
86 float getTrackP(
int track) {
return mTrackP[track]; }
87 float getTrackPt(
int track) {
return mTrackPt[track]; }
88 int getTrackNPoints(
int track) {
return (
int)mTrackNPoints[track]; }
89 int getTrackTower(
int track) {
return (
int)mTrackTower[track]; }
90 int getTrackTowerExit(
int track) {
return (
int)mTrackTowerExit[track]; }
91 StTrack* getTrack(
int track) {
return mTrack[track]; }
92 int getNTracks() {
return mNTracks; }
93 bool isL3() {
return (
int)mL3Tracks; }
94 bool isTriggerOk() {
return mIsTriggerOk;}
95 float vx() {
return mVx; }
96 float vy() {
return mVy; }
97 float vz() {
return mVz; }
98 float field() {
return mField; }
99 StEvent* event() {
return mStEvent; }
101 long getCTBSum() {
return mCTBSum;}
102 long getZDCSum() {
return mZDCSum;}
104 void makeStatus(
bool,
bool,
bool,
bool);