BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnHistMSC.h
Go to the documentation of this file.
1
#ifndef BMNHISTMSC_H
2
#define BMNHISTMSC_H
3
4
#include <exception>
5
#include <stdlib.h>
6
#include <vector>
7
// ROOT
8
#include <
TCanvas.h
>
9
#include <
TChain.h
>
10
#include <
TClonesArray.h
>
11
#include <
TFile.h
>
12
#include <
TFolder.h
>
13
#include <
TH1D.h
>
14
#include <
TH1F.h
>
15
#include <
TH2F.h
>
16
#include <
THttpServer.h
>
17
#include <
TNamed.h
>
18
#include <
TString.h
>
19
// BmnRoot
20
#include "
BmnTrigRaw2Digit.h
"
21
22
#include <
BmnAliases.h
>
23
#include <
BmnHist.h
>
24
25
using
std::vector;
26
27
class
BmnHistMSC
:
public
BmnHist
28
{
29
public
:
30
BmnHistMSC
(
TString
title,
31
TString
path =
""
,
32
Int_t
periodID = 7,
33
BmnSetup
setup =
kBMNSETUP
,
34
BmnTrigRaw2Digit
* trigMapper =
nullptr
);
35
virtual
~BmnHistMSC
();
36
void
Reset
();
37
void
Register
(
THttpServer
* serv);
38
void
SetDir
(
TFile
* outFile = NULL,
TTree
* recoTree = NULL);
39
void
DrawBoth
();
40
void
FillFromDigi
(
DigiArrays
* fDigiArrays);
41
void
ClearRefRun
();
42
BmnStatus
SetRefRun
(
Int_t
id
);
43
44
void
SetHistFileNameAdd
(
TString
add) {
fHistFileNameAdd
= add; }
45
46
private
:
47
BmnTrigRaw2Digit
*
fTrigMapper
;
48
// map: <serial, channel> -> index in the list (inside spillHeader->ScalersVec(), and MSC matrix)
49
SerCh2Name
scalers2name_map
;
50
map<std::pair<uint32_t, uint16_t>, uint16_t>
scalers2index_map
;
51
52
vector<TString>
Names
;
53
// TH1I* histGemStrip;
54
vector<TH1I*>
histMscAll
;
55
TCanvas
*
canGemStrip
;
56
// vector<PadInfo<TH1>*> canGemStripPads;
57
vector<PadInfo*>
canStripPads
;
58
UInt_t
sumMods
;
59
UInt_t
maxLayers
;
60
TString
fHistFileNameAdd
;
61
62
ClassDef
(
BmnHistMSC
, 1)
63
};
64
65
#endif
// BMNHISTMSC_H
Int_t
int Int_t
UInt_t
unsigned int UInt_t
ClassDef
#define ClassDef(name, id)
TCanvas.h
TChain.h
TClonesArray.h
TFile.h
TFolder.h
TH1D.h
TH1F.h
TH2F.h
THttpServer.h
TNamed.h
TString.h
BmnStatus
BmnStatus
Define status code.
Definition
BmnEnums.h:93
BmnSetup
BmnSetup
Define experimental setup.
Definition
BmnEnums.h:165
kBMNSETUP
@ kBMNSETUP
Definition
BmnEnums.h:166
SerCh2Name
std::map< std::pair< uint32_t, uint16_t >, std::string > SerCh2Name
Definition
BmnAliases.h:10
BmnHistMSC::sumMods
UInt_t sumMods
Definition
BmnHistMSC.h:58
BmnHistMSC::fHistFileNameAdd
TString fHistFileNameAdd
Definition
BmnHistMSC.h:60
BmnHistMSC::scalers2index_map
map< std::pair< uint32_t, uint16_t >, uint16_t > scalers2index_map
Definition
BmnHistMSC.h:50
BmnHistMSC::maxLayers
UInt_t maxLayers
Definition
BmnHistMSC.h:59
BmnHistMSC::histMscAll
vector< TH1I * > histMscAll
Definition
BmnHistMSC.h:54
BmnHistMSC::SetDir
void SetDir(TFile *outFile=NULL, TTree *recoTree=NULL)
Definition
BmnHistMSC.cxx:80
BmnHistMSC::canStripPads
vector< PadInfo * > canStripPads
Definition
BmnHistMSC.h:57
BmnHistMSC::BmnHistMSC
BmnHistMSC(TString title, TString path="", Int_t periodID=7, BmnSetup setup=kBMNSETUP, BmnTrigRaw2Digit *trigMapper=nullptr)
Definition
BmnHistMSC.cxx:8
BmnHistMSC::ClearRefRun
void ClearRefRun()
Definition
BmnHistMSC.cxx:128
BmnHistMSC::Register
void Register(THttpServer *serv)
Definition
BmnHistMSC.cxx:63
BmnHistMSC::scalers2name_map
SerCh2Name scalers2name_map
Definition
BmnHistMSC.h:49
BmnHistMSC::Names
vector< TString > Names
Definition
BmnHistMSC.h:52
BmnHistMSC::fTrigMapper
BmnTrigRaw2Digit * fTrigMapper
Definition
BmnHistMSC.h:47
BmnHistMSC::SetRefRun
BmnStatus SetRefRun(Int_t id)
Definition
BmnHistMSC.cxx:116
BmnHistMSC::FillFromDigi
void FillFromDigi(DigiArrays *fDigiArrays)
Definition
BmnHistMSC.cxx:95
BmnHistMSC::canGemStrip
TCanvas * canGemStrip
Definition
BmnHistMSC.h:55
BmnHistMSC::Reset
void Reset()
Definition
BmnHistMSC.cxx:140
BmnHistMSC::SetHistFileNameAdd
void SetHistFileNameAdd(TString add)
Definition
BmnHistMSC.h:44
BmnHistMSC::DrawBoth
void DrawBoth()
Definition
BmnHistMSC.cxx:90
BmnHistMSC::~BmnHistMSC
virtual ~BmnHistMSC()
Definition
BmnHistMSC.cxx:54
BmnHist::BmnHist
BmnHist(Int_t periodID=7, BmnSetup setup=kBMNSETUP)
Definition
BmnHist.cxx:3
BmnTrigRaw2Digit
Definition
BmnTrigRaw2Digit.h:69
DigiArrays
Definition
DigiArrays.h:10
TCanvas
TFile
THttpServer
TString
TTree
BmnAliases.h
BmnHist.h
BmnTrigRaw2Digit.h
install
include
BmnHistMSC.h
Generated on
for BmnRoot by
1.17.0