BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
25using std::vector;
26
27class 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();
43
45
46 private:
48 // map: <serial, channel> -> index in the list (inside spillHeader->ScalersVec(), and MSC matrix)
50 map<std::pair<uint32_t, uint16_t>, uint16_t> scalers2index_map;
51
52 vector<TString> Names;
53 // TH1I* histGemStrip;
54 vector<TH1I*> histMscAll;
56 // vector<PadInfo<TH1>*> canGemStripPads;
57 vector<PadInfo*> canStripPads;
61
63};
64
65#endif // BMNHISTMSC_H
int Int_t
unsigned int UInt_t
#define ClassDef(name, id)
BmnStatus
Define status code.
Definition BmnEnums.h:93
BmnSetup
Define experimental setup.
Definition BmnEnums.h:165
@ kBMNSETUP
Definition BmnEnums.h:166
std::map< std::pair< uint32_t, uint16_t >, std::string > SerCh2Name
Definition BmnAliases.h:10
UInt_t sumMods
Definition BmnHistMSC.h:58
TString fHistFileNameAdd
Definition BmnHistMSC.h:60
map< std::pair< uint32_t, uint16_t >, uint16_t > scalers2index_map
Definition BmnHistMSC.h:50
UInt_t maxLayers
Definition BmnHistMSC.h:59
vector< TH1I * > histMscAll
Definition BmnHistMSC.h:54
void SetDir(TFile *outFile=NULL, TTree *recoTree=NULL)
vector< PadInfo * > canStripPads
Definition BmnHistMSC.h:57
BmnHistMSC(TString title, TString path="", Int_t periodID=7, BmnSetup setup=kBMNSETUP, BmnTrigRaw2Digit *trigMapper=nullptr)
Definition BmnHistMSC.cxx:8
void ClearRefRun()
void Register(THttpServer *serv)
SerCh2Name scalers2name_map
Definition BmnHistMSC.h:49
vector< TString > Names
Definition BmnHistMSC.h:52
BmnTrigRaw2Digit * fTrigMapper
Definition BmnHistMSC.h:47
BmnStatus SetRefRun(Int_t id)
void FillFromDigi(DigiArrays *fDigiArrays)
TCanvas * canGemStrip
Definition BmnHistMSC.h:55
void SetHistFileNameAdd(TString add)
Definition BmnHistMSC.h:44
void DrawBoth()
virtual ~BmnHistMSC()
BmnHist(Int_t periodID=7, BmnSetup setup=kBMNSETUP)
Definition BmnHist.cxx:3