BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnHistScWall.h
Go to the documentation of this file.
1#ifndef BMNHISTScWall_H
2#define BMNHISTScWall_H 1
3
4#include "BmnHist.h"
5#include "BmnScWallDigi.h"
6#include "BmnScWallGeo.h"
7#include "TCanvas.h"
8#include "TChain.h"
9#include "TClonesArray.h"
10#include "TColor.h"
11#include "TFile.h"
12#include "TFolder.h"
13#include "TH1F.h"
14#include "TH2F.h"
15#include "THttpServer.h"
16#include "TString.h"
17
18#include <TNamed.h>
19#define ScWall_ROWS 1
20#define ScWall_COLS 2
21
22class BmnHistScWall : public BmnHist
23{
24 public:
25 BmnHistScWall(TString title = "ScWall", TString path = "", Int_t periodID = 8, BmnSetup setup = kBMNSETUP);
26 virtual ~BmnHistScWall();
28 void Reset();
29 void Register(THttpServer* serv);
30 void SetDir(TFile* outFile, TTree* recoTree);
31 void DrawBoth();
33 void FillFromDigi(DigiArrays* fDigiArrays);
35 void SetSelection(Int_t Cell, Int_t Trigger);
36 void SetGeometry(const std::string& path);
37
38 private:
39 static constexpr int kTOTAL_CELLS = 173; // SsWall 2022. Cells numerated from 1 to 174 inclusive
40
41 long int fEventCounter = 1;
42 BmnScWallGeo* fGeoHandler; // stores map with detector address to 3D position and error
45
46 TH2F* h2d_grid; // signals in outer cells. 2D X-Y
47 TH2F* h2d_grid_center; // signals in inner cells. 2D X-Y
48 TH2F* h2d_profile; // signals in all cells. 2D cell-signal
49 TH2F* h2d_cell_id; // outer cells indexes. 2D X-Y
50 TH2F* h2d_cell_id_center; // inner cells indexes. 2D X-Y
51 TH1F* hCellE; // amplitude in selected cell
52 TH1F* hCellAmpl; // dE/dx in selected cell
53 TH1F* wfmCell; // waveform in selected cell
54 TH1F* hModEn_scwall_nt; // signals in all cells. 1D cell-signal
55
59 vector<PadInfo*> canAmpsPads;
60 vector<PadInfo*> canModEnPads;
61 vector<PadInfo*> canSelectPads;
62 vector<TString> NamesAmps;
63 vector<TString> NamesModEn;
64 vector<TString> NamesSelect;
65
67 vector<PadInfo*> canScintWallPads;
68 vector<TString> NamescanScintWall;
69
71};
72
73#endif /* BMNHISTScWall_H */
int Int_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
Int_t fSelectedTrigger
vector< TString > NamescanScintWall
vector< TString > NamesSelect
TCanvas * canSelect
BmnStatus SetRefRun(Int_t id)
vector< PadInfo * > canSelectPads
TH2F * h2d_grid_center
void SetGeometry(const std::string &path)
void FillFromDigi(DigiArrays *fDigiArrays)
void SetDir(TFile *outFile, TTree *recoTree)
void SetSelection(Int_t Cell, Int_t Trigger)
static constexpr int kTOTAL_CELLS
long int fEventCounter
TH2F * h2d_cell_id_center
TH1F * hModEn_scwall_nt
TCanvas * canAmps
TCanvas * canModEn
vector< TString > NamesAmps
virtual ~BmnHistScWall()
BmnScWallGeo * fGeoHandler
void CreateHistos()
void ClearRefRun()
TCanvas * canScintWall
vector< PadInfo * > canScintWallPads
vector< PadInfo * > canAmpsPads
vector< TString > NamesModEn
BmnHistScWall(TString title="ScWall", TString path="", Int_t periodID=8, BmnSetup setup=kBMNSETUP)
void Register(THttpServer *serv)
vector< PadInfo * > canModEnPads
Base class for histogram sets.
Definition BmnHist.h:34