BOSS
7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/MucMappingAlg/MucMappingAlg/MucMappingAlg.h
Go to the documentation of this file.
1
//--------------------------------------------------------------------------------------|
2
// [File ]: MucMappingAlg.h |
3
// [Brief ]: Header file of MUC electronics and geometry mapping class |
4
// [Author]: Xie Yuguang, <
[email protected]
> |
5
// [Date ]: Jun 6, 2006 |
6
// [Log ]: See ChangLog |
7
//--------------------------------------------------------------------------------------|
8
9
#include<iostream>
10
#include<fstream>
11
#include<string>
12
13
#include "GaudiKernel/Algorithm.h"
14
15
#include "
MucChain.h
"
16
17
using namespace
std
;
18
19
const
int
ID_NUM
= 4;
// ID numbers of readout strips including part, segment, layer and strip id in a box
20
const
int
MODULE_MAX
= 10;
// Total VME modules for MUC
21
const
int
SOCKET_MAX
= 4;
// Maximum sockets in one module
22
const
int
CHAIN_MAX
= 40;
// Total number of data chains
23
const
int
FEC_MAX
= 572;
// Total number of FECs
24
const
int
STRIP_MAX
= 9152;
// Total number of readout strips
25
26
const
unsigned
int
MARK_NUM
= 4;
// Mark number of chain name
27
const
int
DATA_NUM
= 14;
// Data number of output
28
29
const
std::string
DEFAULT_MAP
[
MODULE_MAX
][
SOCKET_MAX
] = {
30
{
"EE1F"
,
"EE4F"
,
"EE3F"
,
"EE2F"
},
31
{
"EE1S"
,
"EE4S"
,
"EE3S"
,
"EE2S"
},
32
{
"B030"
,
"B020"
,
"B010"
,
"B080"
},
33
{
"B070"
,
"B060"
,
"B050"
,
"B040"
},
34
{
"BW30"
,
"BE30"
,
"BW20"
,
"BE20"
},
35
{
"BW10"
,
"BE10"
,
"BW80"
,
"BE80"
},
36
{
"BW70"
,
"BE70"
,
"BW60"
,
"BE60"
},
37
{
"BW50"
,
"BE50"
,
"BW40"
,
"BE40"
},
38
{
"EW1F"
,
"EW4F"
,
"EW3F"
,
"EW2F"
},
39
{
"EW1S"
,
"EW4S"
,
"EW3S"
,
"EW2S"
} };
40
41
const
std::string
DATA_NAME
[
DATA_NUM
] = {
"Chain"
,
"Module"
,
"Socket"
,
"FecID"
,
"VmeInt"
,
"VmeBin"
,
42
"Part"
,
"Seg"
,
"Lay"
,
"1stStr"
,
"StrSqc"
,
"GeoInt"
,
"GeoBin"
};
43
44
class
MucMappingAlg
:
public
Algorithm
45
{
46
public
:
47
MucMappingAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
48
49
StatusCode
initialize
();
50
StatusCode
execute
();
51
StatusCode
finalize
();
52
53
private
:
54
55
int
m_fFecOrder;
56
std::string m_sFileName[2];
57
std::string m_sOutputOption;
58
std::string m_sChainMap[
MODULE_MAX
][
SOCKET_MAX
];
59
60
MucChain
* m_mucChain[
CHAIN_MAX
];
61
};
62
63
//END
64
FEC_MAX
const int FEC_MAX
Definition:
InstallArea/include/MucMappingAlg/MucMappingAlg/MucMappingAlg.h:23
CHAIN_MAX
const int CHAIN_MAX
Definition:
InstallArea/include/MucMappingAlg/MucMappingAlg/MucMappingAlg.h:22
ID_NUM
const int ID_NUM
Definition:
InstallArea/include/MucMappingAlg/MucMappingAlg/MucMappingAlg.h:19
SOCKET_MAX
const int SOCKET_MAX
Definition:
InstallArea/include/MucMappingAlg/MucMappingAlg/MucMappingAlg.h:21
DEFAULT_MAP
const std::string DEFAULT_MAP[MODULE_MAX][SOCKET_MAX]
Definition:
InstallArea/include/MucMappingAlg/MucMappingAlg/MucMappingAlg.h:29
STRIP_MAX
const int STRIP_MAX
Definition:
InstallArea/include/MucMappingAlg/MucMappingAlg/MucMappingAlg.h:24
DATA_NAME
const std::string DATA_NAME[DATA_NUM]
Definition:
InstallArea/include/MucMappingAlg/MucMappingAlg/MucMappingAlg.h:41
MODULE_MAX
const int MODULE_MAX
Definition:
InstallArea/include/MucMappingAlg/MucMappingAlg/MucMappingAlg.h:20
DATA_NUM
const int DATA_NUM
Definition:
InstallArea/include/MucMappingAlg/MucMappingAlg/MucMappingAlg.h:27
MARK_NUM
const unsigned int MARK_NUM
Definition:
InstallArea/include/MucMappingAlg/MucMappingAlg/MucMappingAlg.h:26
MucChain.h
CHAIN_MAX
const int CHAIN_MAX
Definition:
Muc/MucMappingAlg/MucMappingAlg-00-00-02/MucMappingAlg/MucMappingAlg.h:22
SOCKET_MAX
const int SOCKET_MAX
Definition:
Muc/MucMappingAlg/MucMappingAlg-00-00-02/MucMappingAlg/MucMappingAlg.h:21
MODULE_MAX
const int MODULE_MAX
Definition:
Muc/MucMappingAlg/MucMappingAlg-00-00-02/MucMappingAlg/MucMappingAlg.h:20
MucChain
Definition:
InstallArea/include/MucMappingAlg/MucMappingAlg/MucChain.h:45
MucMappingAlg
Definition:
InstallArea/include/MucMappingAlg/MucMappingAlg/MucMappingAlg.h:45
MucMappingAlg::execute
StatusCode execute()
Definition:
MucMappingAlg.cxx:85
MucMappingAlg::finalize
StatusCode finalize()
Definition:
MucMappingAlg.cxx:96
MucMappingAlg::initialize
StatusCode initialize()
Definition:
MucMappingAlg.cxx:25
std
Definition:
Event/RootEventData/RootEventData-00-03-80/RootEventData/RootEventData_rootcint.cxx:16
source
InstallArea
include
MucMappingAlg
MucMappingAlg
MucMappingAlg.h
Generated by
1.9.6