BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
ToF400DigitAnalysis_period5.c File Reference
#include "TCanvas.h"
#include "TChain.h"
#include "TDirectory.h"
#include "TFile.h"
#include "TH1.h"
#include "TH1F.h"
#include "TH1S.h"
#include "TH2F.h"
#include "TH2S.h"
#include "TList.h"
#include "TPad.h"
#include <TMath.h>
#include <fstream>
#include <iostream>
#include <stdio.h>
Include dependency graph for ToF400DigitAnalysis_period5.c:

Go to the source code of this file.

Classes

struct  ToF400Detector
struct  T0Detector

Functions

void ToF400DigitAnalysis_period5 (TString file="", Int_t nEvForRead=0, Int_t Periud=5)
void CleanTof (ToF400Detector *Det)
void CleanBC2 (T0Detector *Det)
Double_t CalculateDt (ToF400Detector *Det, T0Detector *T0, Int_t Str=-1)

Variables

const UInt_t kNST = 48
const Double_t kTimeBin = 24. / 1024.
Double_t CatTimeBC2Low
Double_t CatTimeBC2High
Int_t CorrPlane7_It1
Int_t CorrT0_It1
Double_t CorrPlane7Coeff_It1 [5][4]
Double_t CorrT0Coeff_It1 [4][4]
Int_t HitPlane2T0 = 0
Int_t HitPlane7T0 = 0
Int_t EffPlane2 = 0
Int_t EffPlane7 = 0
Bool_t FlagDigit [10][kNST]

Function Documentation

◆ CalculateDt()

Double_t CalculateDt ( ToF400Detector * Det,
T0Detector * T0,
Int_t Str = -1 )

Definition at line 637 of file ToF400DigitAnalysis_period5.c.

References kNST, TMath::LocMax(), T0Detector::sTime, and ToF400Detector::sTime.

Referenced by ToF400DigitAnalysis_period5().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CleanBC2()

void CleanBC2 ( T0Detector * Det)

Definition at line 630 of file ToF400DigitAnalysis_period5.c.

References T0Detector::sAmp, T0Detector::sNHits, and T0Detector::sTime.

Referenced by ToF400DigitAnalysis_period5().

Here is the caller graph for this function:

◆ CleanTof()

void CleanTof ( ToF400Detector * Det)

Definition at line 616 of file ToF400DigitAnalysis_period5.c.

References kNST, ToF400Detector::sAmp, ToF400Detector::sAmpL, ToF400Detector::sAmpR, ToF400Detector::sNHits, ToF400Detector::sStrHit, ToF400Detector::sTime, ToF400Detector::sTimeL, and ToF400Detector::sTimeR.

Referenced by ToF400DigitAnalysis_period5().

Here is the caller graph for this function:

◆ ToF400DigitAnalysis_period5()

void ToF400DigitAnalysis_period5 ( TString file = "",
Int_t nEvForRead = 0,
Int_t Periud = 5 )

Definition at line 60 of file ToF400DigitAnalysis_period5.c.

References TMath::Abs(), TChain::Add(), TList::Add(), TObjArray::At(), bmnloadlibs(), CalculateDt(), TDirectory::cd(), TDirectoryFile::cd(), CleanBC2(), CleanTof(), TFile::Close(), TString::Data(), TPad::Draw(), EffPlane2, EffPlane7, TH1::Fill(), TH2::Fill(), TString::First(), TH1::Fit(), BmnTrigDigit::GetAmp(), BmnTof1Digit::GetAmplitude(), TChain::GetEntries(), TH1::GetEntries(), TObjArray::GetEntriesFast(), TChain::GetEntry(), BmnEventHeader::GetEventId(), TF1::GetParameter(), BmnTof1Digit::GetPlane(), BmnTof1Digit::GetSide(), BmnTof1Digit::GetStrip(), BmnTof1Digit::GetTime(), BmnTrigDigit::GetTime(), TH1::GetXaxis(), TH1::GetYaxis(), HitPlane2T0, HitPlane7T0, i, kNST, TMath::LocMax(), TDirectory::mkdir(), TDirectoryFile::mkdir(), TString::Replace(), TH1F::Reset(), TH2F::Reset(), T0Detector::sAmp, ToF400Detector::sAmp, ToF400Detector::sAmpL, ToF400Detector::sAmpR, TH2::SetBinContent(), TChain::SetBranchAddress(), TPad::SetGridy(), TAttAxis::SetLabelSize(), TAttLine::SetLineColor(), TAttLine::SetLineWidth(), TAttMarker::SetMarkerStyle(), TF1::SetParameter(), TAxis::SetRangeUser(), TNamed::SetTitle(), T0Detector::sNHits, ToF400Detector::sNHits, ToF400Detector::sStrHit, T0Detector::sTime, ToF400Detector::sTime, ToF400Detector::sTimeL, ToF400Detector::sTimeR, and TCollection::Write().

Here is the call graph for this function:

Variable Documentation

◆ CatTimeBC2High

Double_t CatTimeBC2High

Definition at line 27 of file ToF400DigitAnalysis_period5.c.

◆ CatTimeBC2Low

Double_t CatTimeBC2Low

Definition at line 27 of file ToF400DigitAnalysis_period5.c.

◆ CorrPlane7_It1

Int_t CorrPlane7_It1

Definition at line 28 of file ToF400DigitAnalysis_period5.c.

◆ CorrPlane7Coeff_It1

Double_t CorrPlane7Coeff_It1[5][4]
Initial value:
= {{12.24, -3.919, 0.2624, -0.005153},
{-122.9, 14.84, -0.6158, 0.008724},
{-12.34, 0.482, 0., 0.},
{-12.28, 0.479, 0., 0.},
{-13.14, 0.5034, 0., 0.}}

Definition at line 29 of file ToF400DigitAnalysis_period5.c.

◆ CorrT0_It1

Int_t CorrT0_It1

Definition at line 28 of file ToF400DigitAnalysis_period5.c.

◆ CorrT0Coeff_It1

Double_t CorrT0Coeff_It1[4][4]
Initial value:
= {{-5.486, 1.087, -0.07936, 0.00208},
{10.77, -2.635, 0.1984, -0.004631},
{-2.163, 0.1362, 0., 0.},
{200, 0, 0, 0}}

Definition at line 34 of file ToF400DigitAnalysis_period5.c.

◆ EffPlane2

Int_t EffPlane2 = 0

Definition at line 38 of file ToF400DigitAnalysis_period5.c.

◆ EffPlane7

Int_t EffPlane7 = 0

Definition at line 38 of file ToF400DigitAnalysis_period5.c.

◆ FlagDigit

Bool_t FlagDigit[10][kNST]

Definition at line 39 of file ToF400DigitAnalysis_period5.c.

◆ HitPlane2T0

Int_t HitPlane2T0 = 0

Definition at line 38 of file ToF400DigitAnalysis_period5.c.

◆ HitPlane7T0

Int_t HitPlane7T0 = 0

Definition at line 38 of file ToF400DigitAnalysis_period5.c.

◆ kNST

const UInt_t kNST = 48

Definition at line 25 of file ToF400DigitAnalysis_period5.c.

◆ kTimeBin

const Double_t kTimeBin = 24. / 1024.

Definition at line 26 of file ToF400DigitAnalysis_period5.c.