|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
#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>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 |
| 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().
| 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().
| void RecognizeModuleNumFromPointAndDrawIt | ( | TCanvas * | station_front_canv | ) |
Definition at line 547 of file TestCSCConfig_Visual.C.
References TSeqCollection::At(), TCanvas::cd(), TString::Contains(), BmnCSCLayer::ConvertPointToStripPosition(), TMarker::Draw(), g_current_station, g_DrawOnSeparateLayers, g_hits_marker, g_n_hits_marker, g_points_marker, g_ShowIntersectionPointInfo, g_z_current_point, BmnCSCLayer::GetAngleDeg(), TColor::GetColor(), TCollection::GetEntries(), TObject::GetName(), BmnCSCLayer::GetNStrips(), BmnCSCLayer::GetPitch(), BmnCSCLayer::GetType(), BmnCSCLayer::GetXSize(), BmnCSCLayer::GetYSize(), i, BmnCSCLayer::IsPointInsideStripLayer(), LowerStripLayer, NModules, TAttMarker::SetMarkerColor(), TAttMarker::SetMarkerSize(), TCanvas::Update(), UpperStripLayer, x, and y.
| 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.
| BmnCSCStation* g_current_station = 0 |
Definition at line 36 of file TestCSCConfig_Visual.C.
Referenced by DrawCreatedStationFront(), DrawCreatedStationFront(), DrawCreatedStationFront(), DrawCreatedStationFront(), DrawCreatedStationFront(), and RecognizeModuleNumFromPointAndDrawIt().
| Bool_t g_DrawOnSeparateLayers = false |
Definition at line 49 of file TestCSCConfig_Visual.C.
Referenced by RecognizeModuleNumFromPointAndDrawIt().
| Bool_t g_EnableAddingPoints = true |
Definition at line 46 of file TestCSCConfig_Visual.C.
Referenced by DrawCreatedStationFront(), DrawCreatedStationFront(), DrawCreatedStationFront(), DrawCreatedStationFront(), and DrawCreatedStationFront().
| TMarker* g_hits_marker = 0 |
Definition at line 40 of file TestCSCConfig_Visual.C.
Referenced by RecognizeModuleNumFromPointAndDrawIt().
| Int_t g_n_hits_marker = 0 |
Definition at line 41 of file TestCSCConfig_Visual.C.
Referenced by RecognizeModuleNumFromPointAndDrawIt().
| vector<TMarker*> g_points_marker |
Definition at line 43 of file TestCSCConfig_Visual.C.
Referenced by RecognizeModuleNumFromPointAndDrawIt().
| Bool_t g_ShowIntersectionPointInfo = true |
Definition at line 52 of file TestCSCConfig_Visual.C.
Referenced by RecognizeModuleNumFromPointAndDrawIt().
| Double_t g_z_current_point = 0.0 |
Definition at line 38 of file TestCSCConfig_Visual.C.
Referenced by RecognizeModuleNumFromPointAndDrawIt(), TestCSCConfig_Visual(), and TestSiBTConfig_Visual().