1 #ifndef STAR_StEmcCalibMaker
2 #define STAR_StEmcCalibMaker
11 #include "StEmcCalibrationMaker.h"
13 #define MAXTRACK 10000
15 #define MAXCHANNEL 18000
16 #define MAXTOWERCHANNEL 18000
55 virtual void Clear(Option_t *option=
"");
58 void reset() {
if(mSpec) mSpec->Reset(); mNEvents = 0; mDate = 20330101;}
59 void fill(
int id,
float value) {
if(mSpec) mSpec->Fill(
id,value);}
61 void calcVoltages(TH1F*,
char*,
char*,
char*);
65 TH2F* getSpec()
const {
return mSpec;}
66 TH1D* getSpec(
int id,
const Char_t *name =
"id")
const {
return mSpec ? mSpec->ProjectionY(name,
id,
id) : NULL;}
69 void saveHist(
const Char_t *filename);
70 void loadHist(
const Char_t *filename);
71 void addHist(
const Char_t *filename);
72 int getNChannel()
const {
return mNChannel;}
73 int getNEvents()
const {
return mNEvents;}
74 int getDate()
const {
return mDate;}
75 int getTime()
const {
return mTime;}
76 int getDetector()
const {
return mDetector;}
77 void getMeanAndRms(TH1D*,
float,
float,
float*,
float*);
78 void getLogMeanAndRms(TH1D*,
float,
float,
float*,
float*);
79 float getTimeInterval(
int,
int);
82 bool isAutoSaveDB()
const {
return mAutoSaveDB;}
83 bool isDebug()
const {
return mDebug;}
85 void setFile(
const Char_t *f) { mFileName = f; }
86 void setDetector(
int det) { mDetector = det;
if(mDetector<3) mNChannel = 4800;
else mNChannel=18000;}
87 void setMinTracks(
int t) { mNMinTracks = t;}
88 void setMaxTracks(
int t) { mNMaxTracks = t;}
89 void setCTBMin(
int t) { mCTBMin = t;}
90 void setCTBMax(
int t) { mCTBMax = t;}
91 void setZDCMin(
int t) { mZDCMin = t;}
92 void setZDCMax(
int t) { mZDCMax = t;}
93 void setRange(
float range) { mRange = range;}
95 void setAutoSaveDB(
bool a) { mAutoSaveDB = a;}
96 void setDebug(
bool a) { mDebug = a;}
virtual void Clear(Option_t *option="")
User defined functions.