EEmcDb


class description - source file - inheritance tree

class EEmcDb : public TObject

    private:
void clearItemArray() void* getDbTable(int secID, char* nameT) void reloadDbConfig(int secID) void reloadDbOthers(int secID) public:
EEmcDb() EEmcDb(const EEmcDb&) ~EEmcDb() static TClass* Class() void exportAscii(char* fname = "fixMe") const const EEmcDbItem* getByCrate(int crateID, int channel) const const EEmcDbItem* getByIndex(int ikey) const const EEmcDbItem* getByStrip(int sec, char uv, int strip) const const EEmcDbItem* getByStrip0(int isec, int iuv, int istrip) const int getFirstSecID() int getLastSecID() const EEmcDbItem* getTile(int sec, char sub, int eta, char type) const virtual TClass* IsA() const void readAsciiDataBase(char* fname, int sec1 = 5, int sec2 = 8) void requestDataBase(unsigned int timeStamp, int sec1 = 5, int sec2 = 8, char* dbName = "Calibrations_eemc", char* dbVer = "Ver2004d") int scaleGain(const char* pixel, float factor) void setDbg(int i) void setPreferredFlavor(char* flavor, char* nameMask) void setThreshold(float x) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
unsigned int timeStamp DbFlavor dbFlavor int mfirstSecID int mlastSecID int mNSector StDbManager* mgr StDbConfigNode* nodeHead int dbg dbg level EEmcDbItem* byIndex ! assess via plain index EEmcDbItem*** byCrate ! access via crate/chan int mxAdcCrate int mxAdcChan local copy of dimensions int nFound float KsigOverPed defines threshold

Class Description


EEmcDb()
 Constructor

void readAsciiDataBase(char *fname,int sec1, int sec2)
 Reads database from an ascii file produced by EEmcDb::exportAscii().

const EEmcDbItem* getByIndex(int i)
 Gets database entry by absolute index

const EEmcDbItem* getByCrate(int crateID, int channel)
 Retrieves database entry by referencing the corresponding
 crate ID (numbered from 1) and channel number (indexed from 0).
__________________________________________________
__________________________________________________

getTile(int sec, char sub, int eta, char type)
 Get the database entry for the specified "tile" readout.
 type = T,P,Q,R for tower, pre1, pre2 and post.

getByStrip0( Int_t isec, Int_t iuv, Int_t istrip )
 Get the database entry for the specified strip, counted
 from 0.  Unlike the version in StEEmcDbMaker, this routine
 uses the slow "EEname2Index" method to retrieve, rather
 than a lookup table.

void setThreshold(float x)
 Sets the minimum adc threshold as a multiple of the pedestal width.

void exportAscii(char *fname) const
 Export the database to an ascii file.  readAsciiDatabase() can be used
 to read the database values from the file.

void clearItemArray()

int scaleGain(const char *pixel, float factor)

void requestDataBase(unsigned int tt, int sec1, int sec2, char *dbName, char *dbVer)

void setPreferredFlavor(char *flavor, char *nameMask)
 Flavors allow multiple versions of gains, pedestals, etc... while
 performing calibrations and other analysis tasks.

void reloadDbConfig(int secID)

void reloadDbOthers(int secID)

void* getDbTable(int secID, char *nameT)



Inline Functions


                     void setDbg(int i)
        const EEmcDbItem* getByStrip(int sec, char uv, int strip) const
                      int getFirstSecID()
                      int getLastSecID()
                  TClass* Class()
                  TClass* IsA() const
                     void ShowMembers(TMemberInspector& insp, char* parent)
                     void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)
                   EEmcDb EEmcDb(const EEmcDb&)
                     void ~EEmcDb()


Last update: Tue Jun 1 11:19:36 2004


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.