BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
monitor.C
Go to the documentation of this file.
1// c5n17: Top-0 #21320; Top-1 #21321
2// c5n18: Top-2 #21322; Top-3 #21323
3// c5n19: Top-4 #21324; Top-5 #21325
4// c5n20: Top-6 #21326; Top-7 #21327
5
6void monitor(Int_t periodID = 9,
7 TString dirName = ".",
8 TString refDir = ".",
9 TString decoAddr = "localhost:5555",
10 Int_t webPort = 9000)
11{
12#if ROOT_VERSION_CODE < ROOT_VERSION(5, 99, 99)
13 gROOT->LoadMacro("$VMCWORKDIR/macro/run/bmnloadlibs.C");
14#endif
15 // bmnloadlibs();
16 // gSystem->Load("libBmnMonitor");
17 BmnMonitor* bm = new BmnMonitor();
18
19 uint64_t setup = 0 // flags to determine BM@N setup
20 | BIT(kBC) // TRIGGERS
21 | BIT(kSILICON) // SILICON
22 | BIT(kGEM) // GEM
23 | BIT(kTOF1) // TOF-400
24 | BIT(kTOF) // TOF-700
25 | BIT(kTOF701) // TOF-701
26 | BIT(kDCH) // DCH
27 // | BIT(kZDC) // ZDC
28 // | BIT(kECAL) // ECAL
29 | BIT(kCSC) // CSC
30 | BIT(kSCWALL) // SCWALL
31 // | BIT(kFHCAL) // FHCAL
32 | BIT(kHODO) // HODO
33 | BIT(kNDET) // Neutron Calorimeter Prototype
34 | BIT(kHGND) // Neutron Calorimeter
35 | BIT(kSiBT) // SiBD
36 | BIT(kVSP) // VSP
37 // | BIT(kMSC) // Scalers and other spill data
38 ;
39 bm->SetDetectorSetup(setup);
40
41 bm->SetPeriodID(periodID);
42 bm->MonitorStreamZ(dirName, refDir, decoAddr, webPort);
43 delete bm;
44}
int Int_t
#define BIT(n)
#define gROOT
@ kBC
@ kSILICON
@ kNDET
@ kGEM
@ kTOF
@ kVSP
@ kHGND
@ kTOF1
@ kSCWALL
@ kCSC
@ kTOF701
@ kDCH
@ kSiBT
@ kHODO
void MonitorStreamZ(TString dir, TString refDir="", TString decoAddr="localhost", Int_t webPort=9000)
void SetDetectorSetup(uint64_t setup)
Definition BmnMonitor.h:51
void SetPeriodID(Int_t v)
Definition BmnMonitor.h:43
void monitor(Int_t periodID=9, TString dirName=".", TString refDir=".", TString decoAddr="localhost:5555", Int_t webPort=9000)
Definition monitor.C:6