SLIPPER
DataAnalysis Class Reference

Main class used by the Analysis executable. More...

Public Member Functions

 DataAnalysis ()
 Default constructor. More...
 
void DoAll (TString InputFileName, TString OutputFileName)
 Perform the whole analysis. More...
 

Protected Member Functions

void AnalyzeDeltaT ()
 Analyze the time difference histograms. More...
 
bool CheckTriggeredBars ()
 Check the number of trigerred bars in the event. More...
 
void FillHistograms ()
 Fill the histograms. More...
 
TF1 * FitGauss (TH1F *hist)
 Fit an histogram with a Gaussian Function. More...
 
void InitHistos ()
 Initialize all histograms. More...
 
void SetOutputStructures (TTree *t)
 Set the branches of the output treee. More...
 

Protected Attributes

Float_t _Ampl_A [NUMBEROFTWBARS]
 TW bar amplitude of channel A. More...
 
Float_t _Ampl_B [NUMBEROFTWBARS]
 TW bar amplitude of channel B. More...
 
Float_t _Charge [NUMBEROFTWBARS]
 TW bar total charge. More...
 
Float_t _Charge_A [NUMBEROFTWBARS]
 TW bar charge of channel A. More...
 
Float_t _Charge_B [NUMBEROFTWBARS]
 TW bar charge of channel B. More...
 
Float_t _DeltaT_AB [NUMBEROFTWBARS]
 TW bar time difference between channels A and B. More...
 
TGraphErrors * _DeltaT_AB_Bar [NUMBEROFTWBARS]
 Graph of Time difference vs Postion for each TW Bar. More...
 
TH1F * _hist_Ampl_A_Front [NUMBEROFTWPOSITIONS]
 Histograms of the channel A amplitude in a position of Front TW Layer. More...
 
TH1F * _hist_Ampl_A_Rear [NUMBEROFTWPOSITIONS]
 Histograms of the channel A amplitude in a position of Rear TW Layer. More...
 
TH1F * _hist_Ampl_B_Front [NUMBEROFTWPOSITIONS]
 Histograms of the channel B amplitude in a position of Front TW Layer. More...
 
TH1F * _hist_Ampl_B_Rear [NUMBEROFTWPOSITIONS]
 Histograms of the channel B amplitude in a position of Rear TW Layer. More...
 
TH1F * _hist_Charge_Front [NUMBEROFTWPOSITIONS]
 Histograms of total charge in a position of the Front TW layer. More...
 
TH1F * _hist_Charge_Rear [NUMBEROFTWPOSITIONS]
 Histograms of total charge in a position of the Rear TW layer. More...
 
TH1F * _hist_DeltaT_AB_Front [NUMBEROFTWPOSITIONS]
 Histograms of A-B time difference in a position of Front TW Layer. More...
 
TH1F * _hist_DeltaT_AB_Rear [NUMBEROFTWPOSITIONS]
 Histograms of A-B time difference in a position of Rear TW Layer. More...
 
TH1F * _hitmap_Channels_A
 1D channel A hitmap More...
 
TH1F * _hitmap_Channels_B
 1D channel B hitmap More...
 
TH2F * _hitmap_DeltaT_Front
 Histogram for dT resolution in a position of the Front TW Layer. More...
 
TH2F * _hitmap_DeltaT_Rear
 Histogram for dT resolution in a position of the Rear TW Layer. More...
 
Int_t _NumberOfGhosts
 Number of ghost hits found in an event. More...
 
TFile * fOut
 Output file pointer. More...
 
Int_t FrontBar
 TW Front Bar. More...
 
Int_t RearBar
 TW Rear Bar. More...
 

Detailed Description

Main class used by the Analysis executable.

Currently this class contains some simple functions for plotting

Constructor & Destructor Documentation

◆ DataAnalysis()

DataAnalysis::DataAnalysis ( )

Default constructor.

Member Function Documentation

◆ AnalyzeDeltaT()

void DataAnalysis::AnalyzeDeltaT ( )
protected

Analyze the time difference histograms.

Extract the resolution on time difference distributions and plot the deltaT vs Pos of each TW bar

◆ CheckTriggeredBars()

bool DataAnalysis::CheckTriggeredBars ( )
protected

Check the number of trigerred bars in the event.

Returns
true if only two bars where fired, false otherwise

◆ DoAll()

void DataAnalysis::DoAll ( TString  InputFileName,
TString  OutputFileName 
)

Perform the whole analysis.

Parameters
InputFileNameName of the input file
OutputFileNameName of the output file

◆ FillHistograms()

void DataAnalysis::FillHistograms ( )
protected

Fill the histograms.

◆ FitGauss()

TF1 * DataAnalysis::FitGauss ( TH1F *  hist)
protected

Fit an histogram with a Gaussian Function.

Parameters
[in]histPointer to the histogram
Returns
Pointer to the fitted Gaussian function

◆ InitHistos()

void DataAnalysis::InitHistos ( )
protected

Initialize all histograms.

◆ SetOutputStructures()

void DataAnalysis::SetOutputStructures ( TTree *  t)
protected

Set the branches of the output treee.

Parameters
[in]tPointer to the output tree

Member Data Documentation

◆ _Ampl_A

Float_t DataAnalysis::_Ampl_A[NUMBEROFTWBARS]
protected

TW bar amplitude of channel A.

◆ _Ampl_B

Float_t DataAnalysis::_Ampl_B[NUMBEROFTWBARS]
protected

TW bar amplitude of channel B.

◆ _Charge

Float_t DataAnalysis::_Charge[NUMBEROFTWBARS]
protected

TW bar total charge.

◆ _Charge_A

Float_t DataAnalysis::_Charge_A[NUMBEROFTWBARS]
protected

TW bar charge of channel A.

◆ _Charge_B

Float_t DataAnalysis::_Charge_B[NUMBEROFTWBARS]
protected

TW bar charge of channel B.

◆ _DeltaT_AB

Float_t DataAnalysis::_DeltaT_AB[NUMBEROFTWBARS]
protected

TW bar time difference between channels A and B.

◆ _DeltaT_AB_Bar

TGraphErrors* DataAnalysis::_DeltaT_AB_Bar[NUMBEROFTWBARS]
protected

Graph of Time difference vs Postion for each TW Bar.

◆ _hist_Ampl_A_Front

TH1F* DataAnalysis::_hist_Ampl_A_Front[NUMBEROFTWPOSITIONS]
protected

Histograms of the channel A amplitude in a position of Front TW Layer.

◆ _hist_Ampl_A_Rear

TH1F* DataAnalysis::_hist_Ampl_A_Rear[NUMBEROFTWPOSITIONS]
protected

Histograms of the channel A amplitude in a position of Rear TW Layer.

◆ _hist_Ampl_B_Front

TH1F* DataAnalysis::_hist_Ampl_B_Front[NUMBEROFTWPOSITIONS]
protected

Histograms of the channel B amplitude in a position of Front TW Layer.

◆ _hist_Ampl_B_Rear

TH1F* DataAnalysis::_hist_Ampl_B_Rear[NUMBEROFTWPOSITIONS]
protected

Histograms of the channel B amplitude in a position of Rear TW Layer.

◆ _hist_Charge_Front

TH1F* DataAnalysis::_hist_Charge_Front[NUMBEROFTWPOSITIONS]
protected

Histograms of total charge in a position of the Front TW layer.

◆ _hist_Charge_Rear

TH1F* DataAnalysis::_hist_Charge_Rear[NUMBEROFTWPOSITIONS]
protected

Histograms of total charge in a position of the Rear TW layer.

◆ _hist_DeltaT_AB_Front

TH1F* DataAnalysis::_hist_DeltaT_AB_Front[NUMBEROFTWPOSITIONS]
protected

Histograms of A-B time difference in a position of Front TW Layer.

◆ _hist_DeltaT_AB_Rear

TH1F* DataAnalysis::_hist_DeltaT_AB_Rear[NUMBEROFTWPOSITIONS]
protected

Histograms of A-B time difference in a position of Rear TW Layer.

◆ _hitmap_Channels_A

TH1F* DataAnalysis::_hitmap_Channels_A
protected

1D channel A hitmap

◆ _hitmap_Channels_B

TH1F* DataAnalysis::_hitmap_Channels_B
protected

1D channel B hitmap

◆ _hitmap_DeltaT_Front

TH2F* DataAnalysis::_hitmap_DeltaT_Front
protected

Histogram for dT resolution in a position of the Front TW Layer.

◆ _hitmap_DeltaT_Rear

TH2F* DataAnalysis::_hitmap_DeltaT_Rear
protected

Histogram for dT resolution in a position of the Rear TW Layer.

◆ _NumberOfGhosts

Int_t DataAnalysis::_NumberOfGhosts
protected

Number of ghost hits found in an event.

◆ fOut

TFile* DataAnalysis::fOut
protected

Output file pointer.

◆ FrontBar

Int_t DataAnalysis::FrontBar
protected

TW Front Bar.

◆ RearBar

Int_t DataAnalysis::RearBar
protected

TW Rear Bar.