1 #ifndef STAR_StEmcPedestalMaker
2 #define STAR_StEmcPedestalMaker
9 #include "StEmcCalibMaker.h"
10 #include "StEmcCalibrationMaker.h"
12 #define MAXTRACK 10000
14 #define MAXCHANNEL 18000
15 #define MAXTOWERCHANNEL 18000
31 TString mLastTablePath;
33 Float_t mPedDiffSaveDB;
34 Int_t mPedDiffSaveNum;
35 Float_t mPedDiffSaveMinTime;
36 Bool_t mCompareLastTableDB;
37 TString mPedCrateFilenameFormat;
38 TString mBemcStatusFilename;
39 Bool_t mUseBemcStatus;
48 virtual void Clear(Option_t *option=
"");
50 Float_t getPedestal(Int_t
id)
const {
return mPedestal->GetBinContent(
id);}
51 Float_t getRms(Int_t
id)
const {
return mRms->GetBinContent(
id);}
52 Float_t getChi(Int_t
id)
const {
return mChi->GetBinContent(
id);}
53 Float_t getStatus(Int_t
id)
const {
return mStatus->GetBinContent(
id);}
55 Int_t getNPedEvents()
const {
return mNPedEvents;}
56 void setNPedEvents(Int_t a) {mNPedEvents = a;}
58 Float_t getPedInterval()
const {
return mPedInterval;}
59 void setPedInterval(Float_t time) {mPedInterval = time;}
61 const Char_t *getSavePath()
const {
return mSavePath;}
62 void setSavePath(
const Char_t *path) {mSavePath = path ? path :
"";}
64 const Char_t *getTablesPath()
const {
return mTablesPath;}
65 void setTablesPath(
const Char_t *path) {mTablesPath = path ? path :
"";}
67 const Char_t *getLastTablePath()
const {
return mLastTablePath;}
68 void setLastTablePath(
const Char_t *path) {mLastTablePath = path ? path :
"";}
70 Bool_t getSaveTables()
const {
return mSaveTables;}
71 void setSaveTables(Bool_t save) {mSaveTables = save;}
73 Float_t getPedDiffSaveDB()
const {
return mPedDiffSaveDB;}
74 void setPedDiffSaveDB(Float_t diff) {mPedDiffSaveDB = diff;}
76 Int_t getPedDiffSaveNum()
const {
return mPedDiffSaveNum;}
77 void setPedDiffSaveNum(Int_t num) {mPedDiffSaveNum = num;}
79 Float_t getPedDiffSaveMinTime()
const {
return mPedDiffSaveMinTime;}
80 void setPedDiffSaveMinTime(Float_t diff) {mPedDiffSaveMinTime = diff;}
82 Bool_t getCompareLastTableDB()
const {
return mCompareLastTableDB;}
83 void setCompareLastTableDB(Bool_t cmp) {mCompareLastTableDB = cmp;}
85 const Char_t *getPedCrateFilenameFormat()
const {
return mPedCrateFilenameFormat;}
86 void setPedCrateFilenameFormat(
const Char_t *fmt) {mPedCrateFilenameFormat = fmt ? fmt :
"";}
88 const Char_t *getBemcStatusFilename()
const {
return mBemcStatusFilename;}
89 void setBemcStatusFilename(
const Char_t *name) {mBemcStatusFilename = name ? name :
"";}
91 Bool_t getUseBemcStatus()
const {
return mUseBemcStatus;}
92 void setUseBemcStatus(Bool_t use) {mUseBemcStatus = use;}
95 void saveToDb(
const Char_t *timestamp,
const Char_t *tableFilename = 0)
const;
96 void saveToDb(Int_t date, Int_t time)
const;
97 void savePedestals(Int_t date, Int_t time, Bool_t DB =
false)
const;
98 void loadPedestals(
const Char_t *filename);
virtual void Clear(Option_t *option="")
User defined functions.