BmnRoot
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();
27 void CreateHistos();
28 void Reset();
29 void Register(THttpServer* serv);
30 void SetDir(TFile* outFile, TTree* recoTree);
31 void DrawBoth();
32 void ClearRefRun();
33 void FillFromDigi(DigiArrays* fDigiArrays);
34 BmnStatus SetRefRun(Int_t id);
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
43 Int_t fSelectedCell;
44 Int_t fSelectedTrigger;
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
56 TCanvas* canAmps;
57 TCanvas* canModEn;
58 TCanvas* canSelect;
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
66 TCanvas* canScintWall;
67 vector<PadInfo*> canScintWallPads;
68 vector<TString> NamescanScintWall;
69
70 ClassDef(BmnHistScWall, 2)
71};
72
73#endif /* BMNHISTScWall_H */
BmnStatus
Definition BmnEnums.h:24
BmnSetup
Definition BmnEnums.h:89
@ kBMNSETUP
Definition BmnEnums.h:90
virtual ~BmnHistScWall()
BmnStatus SetRefRun(Int_t id)
void SetGeometry(const std::string &path)
void FillFromDigi(DigiArrays *fDigiArrays)
void SetDir(TFile *outFile, TTree *recoTree)
void SetSelection(Int_t Cell, Int_t Trigger)
void Register(THttpServer *serv)
Definition setup.py:1