Skip to content
Snippets Groups Projects
Commit fb264e22 authored by Lennart Huth's avatar Lennart Huth
Browse files

moved static const framelength to private double

parent d1bf2115
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,7 @@ IF (NOT ${ROOT_VERSION} VERSION_GREATER "6.0")
ENDIF()
# Eigen3
FIND_PACKAGE(Eigen3 REQUIRED NO_MODULE)
FIND_PACKAGE(Eigen3 REQUIRED)
# Prepare ROOT and EIGEN3 Targets if necessary:
CORRYVRECKAN_SETUP_ROOT_TARGETS()
......
......@@ -108,7 +108,7 @@ void AnalysisEfficiency::initialize() {
m_detector->nPixels().Y() - 0.5);
title = m_detector->getName() + " Pixel efficiency matrix;x [px];y [px];#epsilon";
hPixelEfficiencyMatrix_TProfile = new TProfile2D("hPixelEfficiencyMatrix",
hPixelEfficiencyMatrix_TProfile = new TProfile2D("hPixelEfficiencyMatrixTProfile",
title.c_str(),
m_detector->nPixels().X(),
-0.5,
......
......@@ -82,7 +82,6 @@ namespace corryvreckan {
TH1D* hClipboardEventStart;
TH1D* hClipboardEventStart_long;
const static double framelength_;
unsigned triggerTLU_{}, triggerM26_{};
long double time_prev_{}, trig_prev_{}, time_trig_start_{}, time_trig_stop_{}, time_before_{}, time_after_{};
long double time_trig_stop_prev_{};
......
......@@ -132,21 +132,29 @@ void Tracking4D::initialize() {
TDirectory* local_res = local_directory->mkdir("local_residuals");
local_res->cd();
title = detectorID + "Local Residual X;x-x_{track} [mm];events";
residualsX_local[detectorID] = new TH1F("LocalResidualsX", title.c_str(), 500, -0.1, 0.1);
residualsX_local[detectorID] =
new TH1F("LocalResidualsX", title.c_str(), 500, -3 * detector->getPitch().X(), 3 * detector->getPitch().X());
title = detectorID + "Local Residual X, cluster column width 1;x-x_{track} [mm];events";
residualsXwidth1_local[detectorID] = new TH1F("LocalResidualsXwidth1", title.c_str(), 500, -0.1, 0.1);
residualsXwidth1_local[detectorID] = new TH1F(
"LocalResidualsXwidth1", title.c_str(), 500, -3 * detector->getPitch().X(), 3 * detector->getPitch().X());
title = detectorID + "Local Residual X, cluster column width 2;x-x_{track} [mm];events";
residualsXwidth2_local[detectorID] = new TH1F("LocalResidualsXwidth2", title.c_str(), 500, -0.1, 0.1);
residualsXwidth2_local[detectorID] = new TH1F(
"LocalResidualsXwidth2", title.c_str(), 500, -3 * detector->getPitch().X(), 3 * detector->getPitch().X());
title = detectorID + "Local Residual X, cluster column width 3;x-x_{track} [mm];events";
residualsXwidth3_local[detectorID] = new TH1F("LocalResidualsXwidth3", title.c_str(), 500, -0.1, 0.1);
residualsXwidth3_local[detectorID] = new TH1F(
"LocalResidualsXwidth3", title.c_str(), 500, -3 * detector->getPitch().X(), 3 * detector->getPitch().X());
title = detectorID + "Local Residual Y;y-y_{track} [mm];events";
residualsY_local[detectorID] = new TH1F("LocalResidualsY", title.c_str(), 500, -0.1, 0.1);
residualsY_local[detectorID] =
new TH1F("LocalResidualsY", title.c_str(), 500, -3 * detector->getPitch().Y(), 3 * detector->getPitch().Y());
title = detectorID + "Local Residual Y, cluster row width 1;y-y_{track} [mm];events";
residualsYwidth1_local[detectorID] = new TH1F("LocalResidualsYwidth1", title.c_str(), 500, -0.1, 0.1);
residualsYwidth1_local[detectorID] = new TH1F(
"LocalResidualsYwidth1", title.c_str(), 500, -3 * detector->getPitch().Y(), 3 * detector->getPitch().Y());
title = detectorID + "Local Residual Y, cluster row width 2;y-y_{track} [mm];events";
residualsYwidth2_local[detectorID] = new TH1F("LocalResidualsYwidth2", title.c_str(), 500, -0.1, 0.1);
residualsYwidth2_local[detectorID] = new TH1F(
"LocalResidualsYwidth2", title.c_str(), 500, -3 * detector->getPitch().Y(), 3 * detector->getPitch().Y());
title = detectorID + "Local Residual Y, cluster row width 3;y-y_{track} [mm];events";
residualsYwidth3_local[detectorID] = new TH1F("LocalResidualsYwidth3", title.c_str(), 500, -0.1, 0.1);
residualsYwidth3_local[detectorID] = new TH1F(
"LocalResidualsYwidth3", title.c_str(), 500, -3 * detector->getPitch().Y(), 3 * detector->getPitch().Y());
title = detectorID + " Pull X;x-x_{track}/resolution;events";
pullX_local[detectorID] = new TH1F("LocalpullX", title.c_str(), 500, -5, 5);
......@@ -157,23 +165,31 @@ void Tracking4D::initialize() {
TDirectory* global_res = local_directory->mkdir("global_residuals");
global_res->cd();
title = detectorID + "global Residual X;x-x_{track} [mm];events";
residualsX_global[detectorID] = new TH1F("GlobalResidualsX", title.c_str(), 500, -0.1, 0.1);
residualsX_global[detectorID] =
new TH1F("GlobalResidualsX", title.c_str(), 500, -3 * detector->getPitch().X(), 3 * detector->getPitch().X());
title = detectorID + "global Residual X, cluster column width 1;x-x_{track} [mm];events";
residualsXwidth1_global[detectorID] = new TH1F("GlobalResidualsXwidth1", title.c_str(), 500, -0.1, 0.1);
residualsXwidth1_global[detectorID] = new TH1F(
"GlobalResidualsXwidth1", title.c_str(), 500, -3 * detector->getPitch().X(), 3 * detector->getPitch().X());
title = detectorID + "global Residual X, cluster column width 2;x-x_{track} [mm];events";
residualsXwidth2_global[detectorID] = new TH1F("GlobalResidualsXwidth2", title.c_str(), 500, -0.1, 0.1);
residualsXwidth2_global[detectorID] = new TH1F(
"GlobalResidualsXwidth2", title.c_str(), 500, -3 * detector->getPitch().X(), 3 * detector->getPitch().X());
title = detectorID + "global Residual X, cluster column width 3;x-x_{track} [mm];events";
residualsXwidth3_global[detectorID] = new TH1F("GlobalResidualsXwidth3", title.c_str(), 500, -0.1, 0.1);
residualsXwidth3_global[detectorID] = new TH1F(
"GlobalResidualsXwidth3", title.c_str(), 500, -3 * detector->getPitch().X(), 3 * detector->getPitch().X());
title = detectorID + " Pull X;x-x_{track}/resolution;events";
pullX_global[detectorID] = new TH1F("GlobalpullX", title.c_str(), 500, -5, 5);
title = detectorID + "global Residual Y;y-y_{track} [mm];events";
residualsY_global[detectorID] = new TH1F("GlobalResidualsY", title.c_str(), 500, -0.1, 0.1);
residualsY_global[detectorID] =
new TH1F("GlobalResidualsY", title.c_str(), 500, -3 * detector->getPitch().Y(), 3 * detector->getPitch().Y());
title = detectorID + "global Residual Y, cluster row width 1;y-y_{track} [mm];events";
residualsYwidth1_global[detectorID] = new TH1F("GlobalResidualsYwidth1", title.c_str(), 500, -0.1, 0.1);
residualsYwidth1_global[detectorID] = new TH1F(
"GlobalResidualsYwidth1", title.c_str(), 500, -3 * detector->getPitch().Y(), 3 * detector->getPitch().Y());
title = detectorID + "global Residual Y, cluster row width 2;y-y_{track} [mm];events";
residualsYwidth2_global[detectorID] = new TH1F("GlobalResidualsYwidth2", title.c_str(), 500, -0.1, 0.1);
residualsYwidth2_global[detectorID] = new TH1F(
"GlobalResidualsYwidth2", title.c_str(), 500, -3 * detector->getPitch().Y(), 3 * detector->getPitch().Y());
title = detectorID + "global Residual Y, cluster row width 3;y-y_{track} [mm];events";
residualsYwidth3_global[detectorID] = new TH1F("GlobalResidualsYwidth3", title.c_str(), 500, -0.1, 0.1);
residualsYwidth3_global[detectorID] = new TH1F(
"GlobalResidualsYwidth3", title.c_str(), 500, -3 * detector->getPitch().Y(), 3 * detector->getPitch().Y());
title = detectorID + " Pull Y;y-y_{track}/resolution;events";
pullY_global[detectorID] = new TH1F("Globalpully", title.c_str(), 500, -5, 5);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment