17 #include "hcategory.h"
18 #include "hlinearcategory.h"
19 #include "hmatrixcategory.h"
38 39, 40, 41, 42, 43, 44, 45,
39 56, 57, 58, 59, 60, 61, 62,
40 72, 73, 74, 75, 76, 77, 78, 79, 80,
41 89, 90, 91, 92, 93, 94, 95, 96, 97,
42 106, 107, 108, 109, 110, 111, 112, 113, 114,
43 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
44 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
45 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167,
46 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184,
47 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202,
48 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219,
49 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237,
50 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254
64 for (Int_t i = 0; i < 255; ++i)
66 for (Int_t i = 0; i < 163; ++i)
76 HLinearCategory* category=
new HLinearCategory(classname,(Int_t)(
numCells*fillRate));
82 HMatrixCategory* category = NULL;
83 Int_t* sizes2 =
new Int_t[2];
85 if (strcmp(classname,
"HGeantEmc")==0) {
88 category =
new HMatrixCategory(classname,2,sizes2,fillRate);
89 }
else if (strcmp(classname,
"HEmcRaw")==0) {
92 category =
new HMatrixCategory(classname,2,sizes2,fillRate);
93 }
else if (strcmp(classname,
"HEmcCal")==0 || strcmp(classname,
"HEmcCalSim")==0) {
96 category =
new HMatrixCategory(classname,2,sizes2,fillRate);
97 }
else if (strcmp(classname,
"HEmcCluster")==0 || strcmp(classname,
"HEmcClusterSim")==0) {
100 category =
new HMatrixCategory(classname,2,sizes2,fillRate);
104 category =
new HMatrixCategory(classname,2,sizes2,fillRate);
116 if (pcat)
return (pcat);
140 if (strcmp(io->IsA()->GetName(),
"HParOraIo")==0) {
144 if (strcmp(io->IsA()->GetName(),
"HParRootFileIo")==0) {
148 if (strcmp(io->IsA()->GetName(),
"HParAsciiFileIo")==0) {
157 if (out)
return out->
write(
this);
179 if (
modules->At(i)) maxSec = (i > maxSec) ? i : maxSec;
187 if (pos >= 0 && pos < 163)
194 if (cell >= 0 && cell < 255)
virtual Bool_t addCategory(Cat_t aCat, HCategory *cat, Option_t opt[])=0
static Int_t getPositionFromCell(Int_t cell)
HCategory * buildLinearCategory(const Text_t *, Float_t)
static const Int_t cellMap[163]
HCategory * buildCategory(Cat_t cat)
virtual ~HEmcDetector(void)
HEvent *& getCurrentEvent(void)
virtual void setDetParIo(HDetParIo *)
void activateParIo(HParIo *io)
Int_t getMaxSectors(void)
static Int_t getCellFromPosition(Int_t pos)
virtual HDetParIo * getDetParIo(const Text_t *)
const Cat_t catEmcCluster
Int_t getMaxSecInSetup(void)
const Int_t emcMaxColumns
ClassImp(HEmcDetector) const Int_t HEmcDetector
HCategory * buildMatrixCategory(const Text_t *, Float_t)
const Int_t emcMaxComponents
virtual HCategory * getCategory(Cat_t aCat)=0
virtual Int_t write(HParSet *)
static Int_t getCell(const Char_t row, const Char_t col)
static void getRowCol(const Int_t cell, Char_t &row, Char_t &col)