BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
TestCSCConfig_Visual.C File Reference
#include "TCanvas.h"
#include "TDOMParser.h"
#include "TF1.h"
#include "TGaxis.h"
#include "TGraph.h"
#include "TH1F.h"
#include "TH2F.h"
#include "THStack.h"
#include "TLegend.h"
#include "TMath.h"
#include "TPaveLabel.h"
#include "TRandom.h"
#include "TSpectrum.h"
#include "TWbox.h"
#include <fstream>
#include <vector>
Include dependency graph for TestCSCConfig_Visual.C:

Go to the source code of this file.

Functions

void DrawCreatedStationFront (BmnCSCStation *station, vector< TLorentzVector > &points)
void DrawCreatedStationTop (BmnCSCStation *station, vector< TLorentzVector > &points)
void TestCSCConfig_Visual ()
void RecognizeModuleNumFromPointAndDrawIt (TCanvas *station_front_canv)

Variables

BmnCSCStation * g_current_station = 0
Double_t g_z_current_point = 0.0
TMarker * g_hits_marker = 0
Int_t g_n_hits_marker = 0
vector< TMarker * > g_points_marker
Bool_t g_EnableAddingPoints = true
Bool_t g_DrawOnSeparateLayers = false
Bool_t g_ShowIntersectionPointInfo = true

Function Documentation

◆ DrawCreatedStationFront()

void DrawCreatedStationFront ( BmnCSCStation * station,
vector< TLorentzVector > & points )

Definition at line 127 of file TestCSCConfig_Visual.C.

References TPad::AddExec(), TCanvas::cd(), TMath::DegToRad(), TArrow::Draw(), TBox::Draw(), TH1::Draw(), TMarker::Draw(), TObject::Draw(), TPolyLine::Draw(), fabs(), g_current_station, g_EnableAddingPoints, BmnCSCLayer::GetAngleDeg(), TColor::GetColor(), BmnCSCLayer::GetDeadZones(), BmnCSCStation::GetModule(), BmnCSCStation::GetNModules(), DeadZoneOfStripLayer::GetNPoints(), BmnCSCModule::GetNStripLayers(), BmnCSCLayer::GetPitch(), BmnCSCStation::GetStationNumber(), BmnCSCModule::GetStripLayer(), BmnCSCLayer::GetStripNumberingOrder(), BmnCSCLayer::GetType(), TMarker::GetX(), TBox::GetX1(), TBox::GetX2(), TH1::GetXaxis(), BmnCSCLayer::GetXLeftStripBorderPoint(), BmnCSCLayer::GetXMaxLayer(), BmnCSCModule::GetXMaxModule(), BmnCSCStation::GetXMaxStation(), BmnCSCLayer::GetXMinLayer(), BmnCSCModule::GetXMinModule(), BmnCSCStation::GetXMinStation(), DeadZoneOfStripLayer::GetXPoint(), BmnCSCStation::GetXPosition(), BmnCSCLayer::GetXRightStripBorderPoint(), BmnCSCStation::GetXShiftOfModule(), BmnCSCLayer::GetXSize(), BmnCSCStation::GetXSize(), TBox::GetY1(), TBox::GetY2(), TH1::GetYaxis(), BmnCSCLayer::GetYLeftStripBorderPoint(), BmnCSCLayer::GetYMaxLayer(), BmnCSCModule::GetYMaxModule(), BmnCSCStation::GetYMaxStation(), BmnCSCLayer::GetYMinLayer(), BmnCSCModule::GetYMinModule(), BmnCSCStation::GetYMinStation(), DeadZoneOfStripLayer::GetYPoint(), BmnCSCStation::GetYPosition(), BmnCSCLayer::GetYRightStripBorderPoint(), BmnCSCStation::GetYShiftOfModule(), BmnCSCLayer::GetYSize(), BmnCSCStation::GetYSize(), BmnCSCStation::GetZMaxStation(), BmnCSCStation::GetZMinStation(), BmnCSCStation::GetZPosition(), BmnCSCStation::GetZShiftOfModule(), BmnCSCStation::GetZSize(), LeftToRight, LowerStripLayer, NModules, TMath::Pi(), RightToLeft, TArrow::SetArrowSize(), TAttFill::SetFillColor(), TAttFill::SetFillColorAlpha(), TAttFill::SetFillStyle(), TPad::SetGrid(), TAttLine::SetLineColor(), TAttLine::SetLineColorAlpha(), TAttLine::SetLineStyle(), TAttLine::SetLineWidth(), TAttMarker::SetMarkerColor(), TAttMarker::SetMarkerSize(), TAttMarker::SetMarkerStyle(), TPolyLine::SetNextPoint(), TNamed::SetTitle(), TMarker::SetX(), TLine::SetX1(), TLine::SetX2(), TMarker::SetY(), TLine::SetY1(), TLine::SetY2(), TMath::Tan(), UpperStripLayer, x, XModuleSize, y, and YModuleSize.

Referenced by TestCSCConfig_Visual().

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

◆ DrawCreatedStationTop()

void DrawCreatedStationTop ( BmnCSCStation * station,
vector< TLorentzVector > & points )

Definition at line 790 of file TestCSCConfig_Visual.C.

References TCanvas::cd(), TBox::Draw(), TH1::Draw(), TMarker::Draw(), TObject::Draw(), fabs(), TColor::GetColor(), BmnCSCStation::GetModule(), BmnCSCModule::GetModuleThickness(), BmnCSCStation::GetNModules(), BmnCSCStation::GetStationNumber(), TBox::GetX1(), TH1::GetXaxis(), BmnCSCModule::GetXMaxModule(), BmnCSCStation::GetXMaxStation(), BmnCSCModule::GetXMinModule(), BmnCSCStation::GetXMinStation(), BmnCSCStation::GetXPosition(), BmnCSCStation::GetXShiftOfModule(), BmnCSCStation::GetXSize(), TH1::GetYaxis(), BmnCSCStation::GetYMaxStation(), BmnCSCStation::GetYMinStation(), BmnCSCStation::GetYPosition(), BmnCSCStation::GetYShiftOfModule(), BmnCSCStation::GetYSize(), BmnCSCStation::GetZMaxStation(), BmnCSCStation::GetZMinStation(), BmnCSCStation::GetZPosition(), BmnCSCStation::GetZShiftOfModule(), BmnCSCStation::GetZSize(), BmnCSCModule::GetZStartModulePosition(), NModules, TAttFill::SetFillColor(), TAttFill::SetFillStyle(), TPad::SetGrid(), TAttLine::SetLineColor(), TAttLine::SetLineStyle(), TAttLine::SetLineWidth(), TAttMarker::SetMarkerColor(), TAttMarker::SetMarkerSize(), TAttMarker::SetMarkerStyle(), TNamed::SetTitle(), TMarker::SetX(), and TMarker::SetY().

Referenced by TestCSCConfig_Visual().

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

◆ RecognizeModuleNumFromPointAndDrawIt()

◆ TestCSCConfig_Visual()

void TestCSCConfig_Visual ( )

Definition at line 57 of file TestCSCConfig_Visual.C.

References DrawCreatedStationFront(), DrawCreatedStationTop(), g_z_current_point, BmnCSCStation::GetPointModuleOwnership(), BmnCSCStationSet::GetPointStationOwnership(), BmnCSCStationSet::GetStation(), TLorentzVector::SetXYZT(), x, y, and z.

Here is the call graph for this function:

Variable Documentation

◆ g_current_station

◆ g_DrawOnSeparateLayers

Bool_t g_DrawOnSeparateLayers = false

Definition at line 49 of file TestCSCConfig_Visual.C.

Referenced by RecognizeModuleNumFromPointAndDrawIt().

◆ g_EnableAddingPoints

◆ g_hits_marker

TMarker* g_hits_marker = 0

Definition at line 40 of file TestCSCConfig_Visual.C.

Referenced by RecognizeModuleNumFromPointAndDrawIt().

◆ g_n_hits_marker

Int_t g_n_hits_marker = 0

Definition at line 41 of file TestCSCConfig_Visual.C.

Referenced by RecognizeModuleNumFromPointAndDrawIt().

◆ g_points_marker

vector<TMarker*> g_points_marker

Definition at line 43 of file TestCSCConfig_Visual.C.

Referenced by RecognizeModuleNumFromPointAndDrawIt().

◆ g_ShowIntersectionPointInfo

Bool_t g_ShowIntersectionPointInfo = true

Definition at line 52 of file TestCSCConfig_Visual.C.

Referenced by RecognizeModuleNumFromPointAndDrawIt().

◆ g_z_current_point

Double_t g_z_current_point = 0.0