BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
monStreamDecoderStat.C
Go to the documentation of this file.
1
void
monStreamDecoderStat
(
TString
addr =
"localhost:21323"
,
//"c5n18.he.jinr.ru:213222"
2
uint32_t periodID = 9,
3
uint32_t digi_socket = 5556,
4
BmnSetup
bmnSetup =
kBMNSETUP
)
5
{
6
FairLogger::GetLogger()->SetLogToScreen(
true
);
7
FairLogger::GetLogger()->SetLogScreenLevel(
"info"
);
// info/debug/warning ...
8
9
BmnOnlineDecoder
* deco =
new
BmnOnlineDecoder
();
10
deco->
SetPeriodID
(periodID);
11
deco->
SetBmnSetup
(bmnSetup);
12
deco->
SetDaqAddress
(addr);
13
std::map<DetectorId, bool> setup;
// flags to determine BM@N setup
14
setup.insert(std::make_pair(
kBC
, 1));
// TRIGGERS
15
setup.insert(std::make_pair(
kSILICON
, 1));
// SILICON
16
setup.insert(std::make_pair(
kGEM
, 1));
// GEM
17
setup.insert(std::make_pair(
kTOF1
, 1));
// TOF-400
18
// setup.insert(std::make_pair(kTOF, 1)); // TOF-700
19
setup.insert(std::make_pair(
kTOF701
, 1));
// TOF-701
20
setup.insert(std::make_pair(
kCSC
, 1));
// CSC
21
setup.insert(std::make_pair(
kSCWALL
, 1));
// SCWALL
22
setup.insert(std::make_pair(
kFHCAL
, 1));
// FHCAL
23
setup.insert(std::make_pair(
kHODO
, 1));
// HODO
24
setup.insert(std::make_pair(
kNDET
, 1));
// Neutron Calorimeter Prototype
25
setup.insert(std::make_pair(
kHGND
, 0));
// Neutron Calorimeter
26
setup.insert(std::make_pair(
kSiBT
, 1));
// SiBD
27
setup.insert(std::make_pair(
kVSP
, 1));
// VSP
28
deco->
SetDetectorSetup
(setup);
29
deco->
SetProcessNormEvents
(
false
);
30
deco->
SetProcessStatEvents
(
true
);
31
deco->
SetDigiSocket
(digi_socket);
32
deco->
ProcessStream
();
33
delete
deco;
34
}
kBC
@ kBC
Definition
BmnDetectorList.h:31
kSILICON
@ kSILICON
Definition
BmnDetectorList.h:25
kNDET
@ kNDET
Definition
BmnDetectorList.h:35
kGEM
@ kGEM
Definition
BmnDetectorList.h:15
kVSP
@ kVSP
Definition
BmnDetectorList.h:21
kHGND
@ kHGND
Definition
BmnDetectorList.h:36
kTOF1
@ kTOF1
Definition
BmnDetectorList.h:16
kFHCAL
@ kFHCAL
Definition
BmnDetectorList.h:34
kSCWALL
@ kSCWALL
Definition
BmnDetectorList.h:32
kCSC
@ kCSC
Definition
BmnDetectorList.h:24
kTOF701
@ kTOF701
Definition
BmnDetectorList.h:19
kSiBT
@ kSiBT
Definition
BmnDetectorList.h:28
kHODO
@ kHODO
Definition
BmnDetectorList.h:33
BmnSetup
BmnSetup
Define experimental setup.
Definition
BmnEnums.h:165
kBMNSETUP
@ kBMNSETUP
Definition
BmnEnums.h:166
BmnOnlineDecoder
Definition
BmnOnlineDecoder.h:40
BmnOnlineDecoder::ProcessStream
void ProcessStream()
Definition
BmnOnlineDecoder.cxx:276
BmnOnlineDecoder::SetProcessNormEvents
void SetProcessNormEvents(bool val=true)
Definition
BmnOnlineDecoder.h:63
BmnOnlineDecoder::SetPeriodID
void SetPeriodID(uint32_t v)
Definition
BmnOnlineDecoder.h:55
BmnOnlineDecoder::SetBmnSetup
void SetBmnSetup(BmnSetup v)
Definition
BmnOnlineDecoder.h:51
BmnOnlineDecoder::SetDigiSocket
void SetDigiSocket(uint32_t val=RAW_DECODER_SOCKET_PORT)
Definition
BmnOnlineDecoder.h:66
BmnOnlineDecoder::SetDetectorSetup
void SetDetectorSetup(map< DetectorId, bool > setup)
Definition
BmnOnlineDecoder.h:59
BmnOnlineDecoder::SetProcessStatEvents
void SetProcessStatEvents(bool val=true)
Definition
BmnOnlineDecoder.h:64
BmnOnlineDecoder::SetDaqAddress
void SetDaqAddress(TString addr)
Definition
BmnOnlineDecoder.h:61
TString
monStreamDecoderStat
void monStreamDecoderStat(TString addr="localhost:21323", uint32_t periodID=9, uint32_t digi_socket=5556, BmnSetup bmnSetup=kBMNSETUP)
Definition
monStreamDecoderStat.C:1
macro
monitor
monStreamDecoderStat.C
Generated on
for BmnRoot by
1.17.0