StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EEmcDbCrate.h
1 #ifndef EEMCDB_CRATE_H
2 #define EEMCDB_CRATE_H
3 
4 #include "StMessMgr.h"
5 
6 class EEmcDbCrate {
7  private:
8  enum {CrateNameLen=16 };
9 
10  public:
11 
12  char name[CrateNameLen];
13  int crID ;
14  int crIDswitch ;
15  int fiber ;
16  int nCh ;
17  int nHead ;
18  char type;
19  int useIt;
20 
21  EEmcDbCrate();
22  void clear();
23  void print() const;
24  void setName(char *text);
25  void setAll(char *buff);
26  int isEmpty() const;
27  void exportAscii(FILE *fd) const;
28  // int importAscii(FILE *fd);
29  ostream &print( ostream &out ) const;
30 };
31 
32 ostream &operator<<(ostream &out, const EEmcDbCrate &crate );
33 
34 #endif
35 
36 
int nCh
no. of valid channels for the crate
Definition: EEmcDbCrate.h:16
int nHead
no. of header words
Definition: EEmcDbCrate.h:17
int useIt
flag to ignore data from misconfig/broken crate/box
Definition: EEmcDbCrate.h:19
char name[CrateNameLen]
crT1,... for towers, 06S1,... for mapmt
Definition: EEmcDbCrate.h:12
int fiber
position of the crate in the .daq data stream, couting from 0
Definition: EEmcDbCrate.h:15
char type
is &#39;T&#39; for towers &amp; &#39;S&#39; for MAPMT
Definition: EEmcDbCrate.h:18
int crIDswitch
crate ID set by hardware switch
Definition: EEmcDbCrate.h:14
int crID
logical crate ID
Definition: EEmcDbCrate.h:13