THaCrateMap Layout, or "map", of DAQ Crates. THaCrateMap contains info on how the DAQ crates are arranged in Hall A, i.e whether slots are fastbus or vme, what the module types are, and what header info to expect. Probably nobody needs to know about this except the author, and at present an object of this class is a private member of the decoder. author Robert Michaels (rom@jlab.org)
THaCrateMap(const char* db = "cratemap") | |
THaCrateMap(const THaCrateMap&) | |
virtual | ~THaCrateMap() |
static TClass* | Class() |
bool | crateUsed(int crate) const |
int | getHeader(int crate, int slot) const |
int | getMask(int crate, int slot) const |
int | getModel(int crate, int slot) const |
const char* | GetName() const |
UShort_t | getNchan(int crate, int slot) const |
UShort_t | getNdata(int crate, int slot) const |
int | getNslot(int crate) const |
int | getScalerCrate(int word) const |
const char* | getScalerLoc(int crate) const |
int | init(TString the_map) |
int | init(ULong64_t time = 0) |
int | init_hc(ULong64_t time) |
virtual TClass* | IsA() const |
bool | isCamac(int crate) const |
bool | isFastBus(int crate) const |
bool | isScalerCrate(int crate) const |
bool | isVme(int crate) const |
THaCrateMap& | operator=(const THaCrateMap&) |
void | print() const |
int | setCrateType(int crate, const char* type) |
int | setHeader(int crate, int slot, int head) |
int | setMask(int crate, int slot, int mask) |
int | setModel(int crate, int slot, UShort_t mod, UShort_t nchan = MAXCHAN, UShort_t ndata = MAXDATA) |
int | setScalerLoc(int crate, const char* location) |
void | setSlotDone() |
void | setSlotDone(int slot) |
virtual void | ShowMembers(TMemberInspector& insp, char* parent) |
bool | slotClear(int crate, int slot) const |
bool | slotDone(int slot) const |
bool | slotUsed(int crate, int slot) const |
virtual void | Streamer(TBuffer& b) |
void | StreamerNVirtual(TBuffer& b) |
static const int | CM_ERR | |
static const int | CM_OK | |
static const UShort_t | MAXCHAN | |
static const UShort_t | MAXDATA |
static const int | MAXROC | |
static const int | MAXSLOT | |
THaCrateMap::ECrateCode | crate_code[32] | |
TString | crate_type[32] | |
bool | crate_used[32] | |
bool | didslot[27] | |
TString | fDBfileName | Database file name |
int | header[32][27] | Header signature |
int | headmask[32][27] | Mask for header signature bits |
UShort_t | model[32][27] | Model number |
UShort_t | nchan[32][27] | Number of channels for device |
UShort_t | ndata[32][27] | Number of datawords |
int | nslot[32] | Number of slots used |
TString | scalerloc[32] | |
bool | slot_clear[32][27] | |
bool | slot_used[32][27] |
Inheritance Chart: | |||||
|
Construct uninitialized crate map. The argument is the name of the database file to use for initialization
Set the max number of channels and data words for some known modules
Modify the interface to be able to use a database file. The real work is done by the init(TString&) method
initialize the crate-map according to the lines in the string 'the_map' parse each line separately, to ensure that the format is correct