BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
VSPClusterAnalyser.C File Reference
#include "Rtypes.h"
#include "TCanvas.h"
#include "TH1F.h"
#include "TH2D.h"
Include dependency graph for VSPClusterAnalyser.C:

Go to the source code of this file.

Functions

void ShowSignalInLayer (BmnVSPModule *module, BmnVSPLayer &layer, Int_t ilayer, Int_t imodule, Int_t istation)
void ShowStripNumbersOfClustersInModule (BmnVSPModule *module, Int_t layer_type, Int_t module_num, Int_t station_num)
void ShowStripNumbersOfClustersInModule_FromBranches (Int_t event_num, Int_t module_num, Int_t station_num)
void ShowReadoutPlane (BmnVSPModule *module, Int_t imodule, Int_t istation)
void PaintBin (TCanvas *c, TH1F *h, Int_t bin, Double_t bin_height, Int_t fcolor, Int_t bcolor)
void DrawMCMatches (TCanvas *c, TH1F *h, Int_t strip_num, BmnVSPLayer &layer)
void DrawStripHits (TCanvas *c, TH1F *h, BmnVSPLayer &layer)
void DrawMCStripLines (TCanvas *c, TH1F *h, BmnVSPModule *module, Int_t layer_num)
void LoadDataFromMCPoints (BmnVSPStationSet *station_set, BmnVSPTransform *transf_set, Int_t event_num)
void LoadDataFromDigits (BmnVSPStationSet *station_set, BmnVSPTransform *transf_set, Int_t event_num)
void VSPClusterAnalyser ()

Function Documentation

◆ DrawMCMatches()

void DrawMCMatches ( TCanvas * c,
TH1F * h,
Int_t strip_num,
BmnVSPLayer & layer )

Definition at line 671 of file VSPClusterAnalyser.C.

References TCanvas::cd(), TObject::Draw(), TH1::FindBin(), TString::Format(), TH1::GetBinCenter(), TH1::GetBinContent(), BmnVSPLayer::GetStripMatch(), TText::SetText(), TAttText::SetTextAlign(), TAttText::SetTextFont(), and TAttText::SetTextSize().

Referenced by ShowSignalInLayer().

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

◆ DrawMCStripLines()

void DrawMCStripLines ( TCanvas * c,
TH1F * h,
BmnVSPModule * module,
Int_t layer_num )

Definition at line 748 of file VSPClusterAnalyser.C.

References TCanvas::cd(), BmnVSPLayer::ConvertPointToStripPosition(), TObject::Draw(), TH1::FindBin(), TString::Format(), TH1::GetBinContent(), TColor::GetColor(), TH1::GetMinimum(), BmnVSPModule::GetNStripLayers(), BmnVSPLayer::GetZoneID(), BmnVSPLayer::IsPointInsideStripLayer(), TAttLine::SetLineColor(), TAttLine::SetLineStyle(), TAttLine::SetLineWidth(), TText::SetText(), TAttText::SetTextAlign(), TAttText::SetTextColor(), TAttText::SetTextFont(), TAttText::SetTextSize(), x, and y.

Referenced by ShowSignalInLayer().

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

◆ DrawStripHits()

void DrawStripHits ( TCanvas * c,
TH1F * h,
BmnVSPLayer & layer )

Definition at line 705 of file VSPClusterAnalyser.C.

References TCanvas::cd(), TObject::Draw(), TH1::FindBin(), TString::Format(), TH1::GetBinContent(), TColor::GetColor(), TH1::GetMinimum(), BmnVSPLayer::GetNStripHits(), BmnVSPLayer::GetStripHitPos(), BmnVSPLayer::GetStripHitTotalSignal(), TAttLine::SetLineColor(), TAttLine::SetLineStyle(), TAttLine::SetLineWidth(), TText::SetText(), TAttText::SetTextAlign(), TAttText::SetTextColor(), TAttText::SetTextFont(), and TAttText::SetTextSize().

Referenced by ShowSignalInLayer().

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

◆ LoadDataFromDigits()

◆ LoadDataFromMCPoints()

void LoadDataFromMCPoints ( BmnVSPStationSet * station_set,
BmnVSPTransform * transf_set,
Int_t event_num )

Definition at line 826 of file VSPClusterAnalyser.C.

References BmnVSPStationSet::AddPointToDetector(), BmnVSPTransform::ApplyInverseTransforms(), TObjArray::At(), TDirectoryFile::Get(), TTree::GetBranch(), TObjArray::GetEntries(), TTree::GetEntry(), BmnVSPStationSet::Reset(), TBranch::SetAutoDelete(), TTree::SetBranchAddress(), ROOT::Math::PositionVector3D< class CoordSystem, class Tag >::X(), x, ROOT::Math::PositionVector3D< class CoordSystem, class Tag >::Y(), y, ROOT::Math::PositionVector3D< class CoordSystem, class Tag >::Z(), and z.

Referenced by VSPClusterAnalyser().

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

◆ PaintBin()

void PaintBin ( TCanvas * c,
TH1F * h,
Int_t bin,
Double_t bin_height,
Int_t fcolor,
Int_t bcolor )

Definition at line 644 of file VSPClusterAnalyser.C.

References TCanvas::cd(), TBox::Draw(), fabs(), TH1::GetBinContent(), TH1::GetBinLowEdge(), TH1::GetBinWidth(), TH1::GetMinimum(), TAttFill::SetFillColorAlpha(), TAttFill::SetFillStyle(), TAttLine::SetLineColor(), and TAttLine::SetLineWidth().

Referenced by ShowSignalInLayer().

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

◆ ShowReadoutPlane()

void ShowReadoutPlane ( BmnVSPModule * module,
Int_t imodule,
Int_t istation )

◆ ShowSignalInLayer()

◆ ShowStripNumbersOfClustersInModule()

void ShowStripNumbersOfClustersInModule ( BmnVSPModule * module,
Int_t layer_type,
Int_t module_num,
Int_t station_num )

Definition at line 255 of file VSPClusterAnalyser.C.

References TCanvas::cd(), TH1::Draw(), TH1::Fill(), TString::Format(), StripCluster::GetClusterSize(), TColor::GetColor(), BmnVSPLayer::GetFirstStripNumber(), BmnVSPLayer::GetLastStripNumber(), BmnVSPLayer::GetStripClusters(), BmnVSPLayer::GetType(), TH1::GetXaxis(), TH1::GetYaxis(), TAttFill::SetFillColor(), TPad::SetGrid(), TAttAxis::SetLabelOffset(), TAttAxis::SetLabelSize(), TAttLine::SetLineColor(), signal(), StripCluster::Signals, and StripCluster::Strips.

Referenced by VSPClusterAnalyser().

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

◆ ShowStripNumbersOfClustersInModule_FromBranches()

void ShowStripNumbersOfClustersInModule_FromBranches ( Int_t event_num,
Int_t module_num,
Int_t station_num )

Definition at line 316 of file VSPClusterAnalyser.C.

References TObjArray::At(), TCanvas::cd(), TH1::Draw(), TH1::Fill(), TString::Format(), TDirectoryFile::Get(), TTree::GetBranch(), StripCluster::GetClusterSize(), TColor::GetColor(), TObjArray::GetEntries(), TTree::GetEntry(), StripCluster::GetModule(), StripCluster::GetStation(), StripCluster::GetType(), TH1::GetXaxis(), TH1::GetYaxis(), TBranch::SetAutoDelete(), TTree::SetBranchAddress(), TAttFill::SetFillColor(), TPad::SetGrid(), TAttAxis::SetLabelOffset(), TAttAxis::SetLabelSize(), TAttLine::SetLineColor(), signal(), StripCluster::Signals, and StripCluster::Strips.

Referenced by VSPClusterAnalyser().

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

◆ VSPClusterAnalyser()

void VSPClusterAnalyser ( )