From c93b389699e3a4a4cae4f1cb68c62af2b2093299 Mon Sep 17 00:00:00 2001 From: Vardan Tadevosyan <tadevosn@jlab.org> Date: Mon, 30 Nov 2015 19:36:23 +0400 Subject: [PATCH] Add debug outputs for Fly's Eye part in the calorimeter. --- src/THcShower.cxx | 11 ++++++++--- src/THcShowerPlane.cxx | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/THcShower.cxx b/src/THcShower.cxx index aae4120..80d7623 100644 --- a/src/THcShower.cxx +++ b/src/THcShower.cxx @@ -111,13 +111,18 @@ void THcShower::Setup(const char* name, const char* description) delete [] desc; cout << "---------------------------------------------------------------\n"; + cout << "From THcShower::Setup: created Shower planes for " << GetApparatus()->GetName() << ": "; - for(UInt_t i=0;i < fNLayers;i++) { + for(UInt_t i=0;i < fNTotLayers;i++) { cout << fLayerNames[i]; - i < fNLayers-1 ? cout << ", " : cout << ".\n"; + i < fNTotLayers-1 ? cout << ", " : cout << ".\n"; } + + if(fHasArray) + cout << fLayerNames[fNTotLayers-1] << " has fly\'s eye configuration\n"; + cout << "---------------------------------------------------------------\n"; } @@ -494,7 +499,7 @@ Int_t THcShower::DefineVariables( EMode mode ) RVarDef vars[] = { { "nhits", "Number of hits", "fNhits" }, { "nclust", "Number of clusters", "fNclust" }, - { "etot", "Total energy", "fEtot" }, + { "etot", "Total energy", "fEtot" }, { "etotnorm", "Total energy divided by Central Momentum", "fEtotNorm" }, { "ntracks", "Number of shower tracks", "fNtracks" }, { 0 } diff --git a/src/THcShowerPlane.cxx b/src/THcShowerPlane.cxx index 5bf1552..d884bc9 100644 --- a/src/THcShowerPlane.cxx +++ b/src/THcShowerPlane.cxx @@ -525,7 +525,7 @@ void THcShowerPlane::CalculatePedestals( ) if ( ((THcShower*) GetParent())->fdbg_raw_cal ) { cout << "---------------------------------------------------------------\n"; - cout << "Debug output from THcShowerPlane::CalculatePedestals for" + cout << "Debug output from THcShowerPlane::CalculatePedestals for " << GetParent()->GetPrefix() << ":" << endl; cout << " ADC pedestals and thresholds for calorimeter plane " -- GitLab