BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnHistToF700.h
Go to the documentation of this file.
1/*
2 * File: BmnHistToF700.h
3 * Author: ilnur
4 *
5 * Created on November 29, 2016, 1:24 PM
6 */
7
8#ifndef BMNHISTTOF700_H
9#define BMNHISTTOF700_H 1
10// STL
11#include <exception>
12#include <stdlib.h>
13#include <vector>
14// FairSoft
15#include "BmnEventHeader.h"
16#include "TCanvas.h"
17#include "TChain.h"
18#include "TClonesArray.h"
19#include "TFile.h"
20#include "TFolder.h"
21#include "TH1D.h"
22#include "TH1F.h"
23#include "TH2F.h"
24#include "THttpServer.h"
25
26#include <TNamed.h>
27// BmnRoot
28#include "BmnHist.h"
29#include "BmnTof1Digit.h"
30// #include "BmnTof2Raw2DigitNew.h"
31#define TOF2_MAX_CHAMBERS 59
32#define TOF2_MAX_STRIPS_IN_CHAMBER 32
33#define TOF_COLS 3
34#define TOF_ROWS 2
35
36class BmnHistToF700 : public BmnHist
37{
38 public:
39 BmnHistToF700(TString title = "ToF700", TString path = "");
40 virtual ~BmnHistToF700();
41 void Register(THttpServer* serv);
42 void SetDir(TFile* outFile = NULL, TTree* recoTree = NULL);
43 void Reset();
44 void DrawBoth();
47
48 void FillFromDigi(DigiArrays* fDigiArrays);
50
57
58 private:
65 // TH1I *histStripSimult;
66 // TH2F *histState;
73 vector<TString> Names;
75 vector<PadInfo*> canTimesPads;
76
77 void SaveHist(TH1* hist, TString path)
78 {
79 TCanvas* c0 = new TCanvas("c0", hist->GetTitle());
80 hist->Draw();
81 c0->SaveAs(TString(path + TString(hist->GetTitle()) + ".png").Data());
82 delete c0;
83 }
84
86};
87#endif /* BMNHISTTOF700_H */
#define TOF2_MAX_STRIPS_IN_CHAMBER
__m128 v
Definition P4_F32vec4.h:1
int Int_t
#define ClassDef(name, id)
char * Strip(const char *str, char c=' ')
BmnStatus
Define status code.
Definition BmnEnums.h:93
BmnStatus SetRefRun(Int_t id)
void FillFromDigi(DigiArrays *fDigiArrays)
void SetSelection(Int_t Plane, Int_t Strip)
TH1D * histLeadingTime
void SetPlane(Int_t v)
TH1D * histLeadingTimeSpecific
TClonesArray * Events
vector< PadInfo * > canTimesPads
void SetStrip(Int_t v)
TCanvas * canTimes
TH1D * histAmpSpecific
vector< TString > Names
void ClearRefRun()
void SaveHist(TH1 *hist, TString path)
void SetSide(Int_t v)
void Register(THttpServer *serv)
void SetDir(TFile *outFile=NULL, TTree *recoTree=NULL)
BmnHistToF700(TString title="ToF700", TString path="")
virtual ~BmnHistToF700()
Base class for histogram sets.
Definition BmnHist.h:34
void Draw(Option_t *option="") override
const char * GetTitle() const override
void SaveAs(const char *filename="", Option_t *option="") const override
const char * Data() const