Skip to content

Commit

Permalink
DO-NOT-MERGE: Add more debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianTackeGSI committed Apr 3, 2024
1 parent af6343e commit 4b2da0c
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 6 deletions.
5 changes: 1 addition & 4 deletions examples/MQ/pixelSimSplit/run/scripts/test-splitMQ.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ for DEVICE in "${!DEVICES[@]}"
do
LOGS[$DEVICE]="$(pwd)/$DEVICE.log"
printf "%12s: " $DEVICE
export LD_PRELOAD=libc_malloc_debug.so
export MALLOC_CHECK_=3
${DEVICES[$DEVICE]} > ${LOGS[$DEVICE]} 2>&1 & # Run device
unset LD_PRELOAD MALLOC_CHECK_
PIDS[$DEVICE]=$!
echo "PID=${PIDS[$DEVICE]}, LOG=${LOGS[$DEVICE]}"
done
Expand All @@ -107,7 +104,7 @@ do
echo "*** $DEVICE failed with exit code $ret"
RC=$(($RC + $ret))
echo " Last lines of log:"
tail -n 50 "${LOGS[$DEVICE]}" | sed -e 's/^/ | /'
tail -n 100 "${LOGS[$DEVICE]}" | sed -e 's/^/ | /'
}
done
echo "... terminated (RC=$RC)."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,4 +272,10 @@ void FairMQTransportDevice::UpdateParameterServer()

void FairMQTransportDevice::PostRun() {}

FairMQTransportDevice::~FairMQTransportDevice() {}
FairMQTransportDevice::~FairMQTransportDevice()
{
LOG(info) << "FairMQTransportDevice dtor starting";
if (fRunSim) {
fRunSim->ls();
}
}
26 changes: 25 additions & 1 deletion fairroot/geobase/FairGeoInterface.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <TClass.h> // for TClass
#include <TList.h> // for TList
#include <TObjArray.h> // for TObjArray
#include <TROOT.h> //
#include <iostream> // for operator<<, basic_ostream, etc
#include <stdio.h> // for sprintf
#include <string.h> // for strcmp
Expand All @@ -56,7 +57,8 @@ FairGeoInterface::FairGeoInterface()
, setupFile("")
, geoBuilder(nullptr)
{
// Constructor
sets->SetName("sets");
masterNodes->SetName("masterNodes");
}

FairGeoInterface::~FairGeoInterface()
Expand Down Expand Up @@ -508,6 +510,28 @@ void FairGeoInterface::print()
cout << "********************************************************************\n";
}

void FairGeoInterface::ls(Option_t* option) const
{
TObject::ls(option);
TROOT::IncreaseDirLevel();
if (fileInput) {
fileInput->ls(option);
}
if (oraInput) {
oraInput->ls(option);
}
if (output) {
output->ls(option);
}
if (sets) {
sets->ls(option);
}
if (masterNodes) {
masterNodes->ls(option);
}
TROOT::DecreaseDirLevel();
}

Bool_t FairGeoInterface::readGeomConfig(const char* configFile)
{
// Reads the GEANT configuration file
Expand Down
1 change: 1 addition & 0 deletions fairroot/geobase/FairGeoInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class FairGeoInterface : public TObject
void addSetupFile(const char* f) { setupFile = f; }
Bool_t readSetupFile();
void print();
void ls(Option_t* option = "") const override;
void SetNoOfSets(Int_t n) { nSets = n; }

private:
Expand Down
12 changes: 12 additions & 0 deletions fairroot/geobase/FairGeoLoader.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "FairGeoRootBuilder.h" // for FairGeoRootBuilder

#include <TGeoManager.h> // for TGeoManager
#include <TROOT.h> //
#include <cstdlib> // for NULL, exit
#include <iostream> // for cout, endl, operator<<, etc
#include <string.h> // for strncmp
Expand Down Expand Up @@ -72,3 +73,14 @@ FairGeoLoader::~FairGeoLoader()
fgInstance = nullptr;
}
}

void FairGeoLoader::ls(Option_t* option) const
{
TNamed::ls(option);
TROOT::IncreaseDirLevel();
if (fGeoBuilder) {
fGeoBuilder->ls(option);
}
fInterface.ls(option);
TROOT::DecreaseDirLevel();
}
2 changes: 2 additions & 0 deletions fairroot/geobase/FairGeoLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class FairGeoLoader : public TNamed
/** static access method*/
static FairGeoLoader* Instance();

void ls(Option_t* option = "") const override;

private:
FairGeoLoader(const FairGeoLoader&);
FairGeoLoader& operator=(const FairGeoLoader&);
Expand Down

0 comments on commit 4b2da0c

Please sign in to comment.