7 #ifndef STAR_StspinDbMaker
8 #define STAR_StspinDbMaker
14 #include "StSpinPool/StSpinDbMaker/cstructs/spinConstDB.hh"
19 class spinDbBXmask_st;
23 spinDbV124_st *mTabSpinV124;
24 spinDbStar_st *mTabSpinStar;
25 spinDbBXmask_st *mTabSpinBXmask;
30 void requestDataBase();
31 void optimizeTables();
32 void auxilairyVariables();
37 int mNfilledBunches[SPINDbMaxRing];
38 TString mCADpolPattern;
40 template <
class St_T,
class T_st>
void getTable(
TDataSet *mydb, TString tabName, T_st **outTab);
42 void setDBname(TString name){ mDbName=name;}
43 int numberOfFilledBunches(
enum spinDbEnum);
46 bool isPolDir(
enum spinDbEnum);
51 void print(
int level=0);
63 bool isMaskedUsingBX48(
int bx48);
65 int spin8usingBX7(
int bx7);
71 int offsetBX48minusBX7(
int bx48,
int bx7);
73 bool isBXmaskedUsingBXyellow(
int bxStar);
75 int numberOfFilledBunchesBlue() {
return numberOfFilledBunches(blueRing); }
77 int numberOfFilledBunchesYellow(){
return numberOfFilledBunches(yellRing);}
78 TString cadPolPattern() {
return mCADpolPattern; }
82 const char *getV124comment();
83 int BXstarUsingBX48(
int bx48);
96 virtual Int_t
InitRun (
int runumber);
98 virtual const char *GetCVS()
const {
99 static const char cvs[]=
"Tag $Name: $ $Id: StSpinDbMaker.h,v 1.8 2014/08/06 11:43:40 jeromel Exp $ built " __DATE__
" " __TIME__ ;
bool isBXfilledUsingInternalBX(int bx)
defined only for 2005 run by CAD , based on first 4 filled bunches in both rings. Note...
bool isPolDirTrans()
true if all needed DB tables were found
bool isValid()
dump spinDb content for current time stamp
int spin4bits[SPINDbMaxBXings]
vs. STAR==yellow bXing
int spin8usingBX48(int bx48)
Returns true if beams are longitudinally polarized, false otherwise.
bool isBXfilledUsingBX48(int bx48)
STAR==yellow bXing=(bx48+48off)%120.
bool isBXfilledUsingBXyellow(int bxStar)
should be zero for every run
virtual Int_t InitRun(int runumber)
to access STAR-DB
int spin4usingBX48(int bx48)
8bit spin information
int spin4usingBX7(int bx7)
8bit spin information
int BXyellowUsingBX7(int bx7)
4bit spin information
int BX7offset()
bXing at STAR IP, [0,119]
void print(int level=0)
vs. STAR==yellow bXing
int BXyellowUsingBX48(int bx48)
4bit spin information
StSpinDbMaker(const char *name="SpinDbMaker")
experts only
const unsigned char * getRawV124bits()
bXing at STAR IP, [0,119]
int BX48offset()
bXing at STAR IP, [0,119]
int BXstarUsingBX7(int bx7)
bXing at STAR IP, [0,119]
int spin8bits[SPINDbMaxBXings]
defined at cstructs/spinConstDB.hh
const int * getSpin8bits()
experts only
bool isBXfilledUsingBX7(int bx7)
STAR==yellow bXing=(bx7+7off)%120.
const int * getBucketOffsets()
experts only
bool isPolDirLong()
Returns true if beams are transversely polarized, false otherwise.