BmnRoot
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
41class 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 */
__m128 v
Definition P4_F32vec4.h:1
BmnStatus
Definition BmnEnums.h:24
Int_t GetPlane()
Definition BmnHistToF.h:60
BmnStatus SetRefRun(Int_t id)
void SetStrip(Int_t v)
Definition BmnHistToF.h:59
void FillFromDigi(DigiArrays *fDigiArrays)
Int_t GetStrip()
Definition BmnHistToF.h:62
Int_t GetSide()
Definition BmnHistToF.h:61
void SetPlane(Int_t v)
Definition BmnHistToF.h:57
void SetSide(Int_t v)
Definition BmnHistToF.h:58
void Register(THttpServer *serv)
void ClearRefRun()
virtual ~BmnHistToF()
void DrawBoth()
void SetDir(TFile *outFile=NULL, TTree *recoTree=NULL)
void SetSelection(Int_t Plane, Int_t Strip, Int_t Side)
#define TOF400_STRIP_COUNT
Definition BmnHistToF.h:37