BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnHistToF.h
Go to the documentation of this file.
1
/*
2
* To change this license header, choose License Headers in Project Properties.
3
* To change this template file, choose Tools | Templates
4
* and open the template in the editor.
5
*/
6
7
/*
8
* File: BmnHistToF.h
9
* Author: ilnur
10
*
11
* Created on November 27, 2016, 4:24 PM
12
*/
13
14
#ifndef BMNHISTTOF_H
15
#define BMNHISTTOF_H 1
16
// STL
17
#include <exception>
18
#include <stdlib.h>
19
#include <vector>
20
// FairSoft
21
#include "
TCanvas.h
"
22
#include "
TChain.h
"
23
#include "
TClonesArray.h
"
24
#include "
TFile.h
"
25
#include "
TFolder.h
"
26
#include "
TGaxis.h
"
27
#include "
TH1D.h
"
28
#include "
TH1F.h
"
29
#include "
TH2F.h
"
30
#include "
THttpServer.h
"
31
32
#include <
TNamed.h
>
33
// BmnRoot
34
#include "BmnHist.h"
35
#include "BmnTof1Digit.h"
36
#define TOF400_PLANE_COUNT 30
37
#define TOF400_STRIP_COUNT 48
38
#define TOF_COLS 3
39
#define TOF_ROWS 2
40
41
class
BmnHistToF
:
public
BmnHist
42
{
43
public
:
44
BmnHistToF
(
TString
title,
TString
path =
""
);
45
virtual
~BmnHistToF
();
46
47
void
Register
(
THttpServer
* serv);
48
void
SetDir
(
TFile
* outFile = NULL,
TTree
* recoTree = NULL);
49
void
Reset
();
50
void
DrawBoth
();
51
void
ClearRefRun
();
52
BmnStatus
SetRefRun
(
Int_t
id
);
53
54
void
FillFromDigi
(
DigiArrays
* fDigiArrays);
55
void
SetSelection
(
Int_t
Plane,
Int_t
Strip
,
Int_t
Side);
56
57
void
SetPlane
(
Int_t
v
) {
fSelectedPlane
=
v
; }
58
void
SetSide
(
Int_t
v
) {
fSelectedSide
=
v
; }
59
void
SetStrip
(
Int_t
v
) {
fSelectedStrip
=
v
; }
60
Int_t
GetPlane
() {
return
fSelectedPlane
; }
61
Int_t
GetSide
() {
return
fSelectedSide
; }
62
Int_t
GetStrip
() {
return
fSelectedStrip
; }
63
64
private
:
65
// TBranch * fEventsBranch;
66
TClonesArray
*
Events
;
67
TH1D
*
histLeadingTime
;
68
TH1D
*
histLeadingTimeSpecific
;
69
TH1D
*
histAmp
;
70
TH1D
*
histAmpSpecific
;
71
TH1I
*
histStrip
;
72
TH1I
*
histStripSimult
;
73
TH2I
*
histStrip2d
;
74
TH2F
*
histState
;
75
Int_t
fSelectedPlane
;
76
Int_t
fSelectedStrip
;
77
Int_t
fSelectedSide
;
78
TH1I
*
histL
=
new
TH1I
(
""
,
""
,
TOF400_STRIP_COUNT
, 0,
TOF400_STRIP_COUNT
);
79
TH1I
*
histR
=
new
TH1I
(
""
,
""
,
TOF400_STRIP_COUNT
, 0,
TOF400_STRIP_COUNT
);
80
TH1I
histSimultaneous
;
81
vector<TString>
Names
;
82
TCanvas
*
canTimes
;
83
TCanvas
*
can2d
;
84
vector<PadInfo*>
canTimesPads
;
85
vector<PadInfo*>
can2dPads
;
86
87
ClassDef
(
BmnHistToF
, 1)
88
};
89
90
#endif
/* BMNHISTTOF_H */
can2d
TCanvas * can2d(nullptr)
v
__m128 v
Definition
P4_F32vec4.h:1
Int_t
int Int_t
ClassDef
#define ClassDef(name, id)
TCanvas.h
TChain.h
TClonesArray.h
TFile.h
TFolder.h
TGaxis.h
TH1D.h
TH1F.h
TH2F.h
THttpServer.h
TNamed.h
Strip
char * Strip(const char *str, char c=' ')
BmnStatus
BmnStatus
Define status code.
Definition
BmnEnums.h:93
BmnHistToF
Definition
BmnHistToF.h:42
BmnHistToF::fSelectedPlane
Int_t fSelectedPlane
Definition
BmnHistToF.h:75
BmnHistToF::GetPlane
Int_t GetPlane()
Definition
BmnHistToF.h:60
BmnHistToF::SetRefRun
BmnStatus SetRefRun(Int_t id)
BmnHistToF::BmnHistToF
BmnHistToF(TString title, TString path="")
BmnHistToF::SetStrip
void SetStrip(Int_t v)
Definition
BmnHistToF.h:59
BmnHistToF::FillFromDigi
void FillFromDigi(DigiArrays *fDigiArrays)
BmnHistToF::canTimesPads
vector< PadInfo * > canTimesPads
Definition
BmnHistToF.h:84
BmnHistToF::can2dPads
vector< PadInfo * > can2dPads
Definition
BmnHistToF.h:85
BmnHistToF::histLeadingTimeSpecific
TH1D * histLeadingTimeSpecific
Definition
BmnHistToF.h:68
BmnHistToF::histAmpSpecific
TH1D * histAmpSpecific
Definition
BmnHistToF.h:70
BmnHistToF::Events
TClonesArray * Events
Definition
BmnHistToF.h:66
BmnHistToF::Names
vector< TString > Names
Definition
BmnHistToF.h:81
BmnHistToF::canTimes
TCanvas * canTimes
Definition
BmnHistToF.h:82
BmnHistToF::histR
TH1I * histR
Definition
BmnHistToF.h:79
BmnHistToF::GetStrip
Int_t GetStrip()
Definition
BmnHistToF.h:62
BmnHistToF::histSimultaneous
TH1I histSimultaneous
Definition
BmnHistToF.h:80
BmnHistToF::histAmp
TH1D * histAmp
Definition
BmnHistToF.h:69
BmnHistToF::GetSide
Int_t GetSide()
Definition
BmnHistToF.h:61
BmnHistToF::SetPlane
void SetPlane(Int_t v)
Definition
BmnHistToF.h:57
BmnHistToF::histStrip2d
TH2I * histStrip2d
Definition
BmnHistToF.h:73
BmnHistToF::histStrip
TH1I * histStrip
Definition
BmnHistToF.h:71
BmnHistToF::histState
TH2F * histState
Definition
BmnHistToF.h:74
BmnHistToF::SetSide
void SetSide(Int_t v)
Definition
BmnHistToF.h:58
BmnHistToF::histLeadingTime
TH1D * histLeadingTime
Definition
BmnHistToF.h:67
BmnHistToF::~BmnHistToF
virtual ~BmnHistToF()
BmnHistToF::fSelectedSide
Int_t fSelectedSide
Definition
BmnHistToF.h:77
BmnHistToF::histL
TH1I * histL
Definition
BmnHistToF.h:78
BmnHistToF::fSelectedStrip
Int_t fSelectedStrip
Definition
BmnHistToF.h:76
BmnHistToF::Register
void Register(THttpServer *serv)
BmnHistToF::ClearRefRun
void ClearRefRun()
BmnHistToF::Reset
void Reset()
BmnHistToF::histStripSimult
TH1I * histStripSimult
Definition
BmnHistToF.h:72
BmnHistToF::DrawBoth
void DrawBoth()
BmnHistToF::SetDir
void SetDir(TFile *outFile=NULL, TTree *recoTree=NULL)
BmnHistToF::SetSelection
void SetSelection(Int_t Plane, Int_t Strip, Int_t Side)
BmnHist
Base class for histogram sets.
Definition
BmnHist.h:34
DigiArrays
Definition
DigiArrays.h:10
TCanvas
TClonesArray
TFile
TH1D
TH1I
TH2F
TH2I
THttpServer
TString
TTree
TOF400_STRIP_COUNT
#define TOF400_STRIP_COUNT
Definition
BmnHistToF.h:37
monitor
BmnHistToF.h
Generated on
for BmnRoot by
1.17.0