AliRoot Core  3dc7879 (3dc7879)
AliFMDDebug.h File Reference
#include <AliLog.h>
Include dependency graph for AliFMDDebug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define AliFMDDebug(N, A)
 

Macro Definition Documentation

#define AliFMDDebug (   N,
 
)
Value:
do { \
AliLog::GetDebugLevel(MODULENAME(), ClassName()) < N) break; \
AliLog::Debug(N, Form A, MODULENAME(), ClassName(), FUNCTIONNAME(), \
__FILE__, __LINE__); } while (false)
#define FUNCTIONNAME()
Definition: AliLog.h:198
Definition: AliLog.h:27
if(!cinput1) cinput1
static Bool_t IsDebugEnabled()
Definition: AliLog.h:91
#define MODULENAME()
Definition: AliLog.h:189
static Int_t GetDebugLevel(const char *module, const char *className)
Definition: AliLog.cxx:843

AliFMDDebug

Parameters
NDebug level - always evaluated
AArgument (including paranthesis) to Form - the message to print. Note, that A should contain balanced paranthesis, like
  AliFMDDebug(1, ("Failed to decode line %d of %s", line, filename));
The point is, if the current log level isn't high enough, as returned by the AliLog object, then we do not want to evalute the call to Form, since that is an expensive call. We should always put macros like this into a do ... while loop, since that makes sure that evaluations are local, and that we can safely put a ; after the macro call. Note, that do ... while loop and the call with extra paranthis, are an old tricks used by many C coders (see for example Bison, the Linux kernel, and the like).

Definition at line 39 of file AliFMDDebug.h.

Referenced by AliFMDBaseDigitizer::AddContribution(), AliFMDHitDigitizer::AddDigit(), AliFMD::AddDigitByFields(), AliFMD::AddHitByFields(), AliFMD::AddSDigitByFields(), AliFMDBaseDigit::AddTrack(), AliFMD::AliFMD(), AliFMDBaseDigitizer::AliFMDBaseDigitizer(), AliFMDRawWriter::AliFMDRawWriter(), AliFMDDisplay::Begin(), AliFMDInput::Begin(), AliFMD::Browse(), AliFMDParameters::CheckFile(), AliFMDv1::CheckHit(), AliFMDReconstructor::ConvertDigits(), AliFMDBaseDigitizer::ConvertToCount(), AliFMD::CreateMaterials(), AliFMDParameters::Detector2Hardware(), AliFMDDetector::Detector2XYZ(), AliFMDGeometryBuilder::DetectorGeometry(), AliFMDHitDigitizer::Digitize(), AliFMDDigitizer::Digitize(), AliFMDBaseDigitizer::DigitizeHits(), AliFMDReconstructor::DigitizeSignal(), AliFMDReconstructor::Energy2Multiplicity(), AliFMDGeometryBuilder::Exec(), AliFMDRawWriter::Exec(), AliFMDAlignFaker::Exec(), AliFMDGeometry::ExtractGeomInfo(), AliFMDReconstructor::FillESD(), AliFMDGeometryBuilder::FMD1Geometry(), AliFMDGeometryBuilder::FMD2Geometry(), AliFMDGeometryBuilder::FMD3Geometry(), AliFMDDisplay::GetADCThreshold(), AliFMDParameters::GetMaxStrip(), AliFMDParameters::GetMinStrip(), AliFMDParameters::GetPedestal(), AliFMDParameters::GetPedestalWidth(), AliFMDParameters::GetPulseGain(), AliFMDParameters::GetSampleRate(), AliFMDReconstructor::GetVertex(), AliFMDParameters::GetZeroSuppression(), AliFMDAltroMapping::Hardware2Detector(), AliFMDParameters::Hardware2Detector(), AliFMDDisplay::Idle(), AliFMDPattern::Init(), AliFMD::Init(), AliFMDParameters::InitAltroMap(), AliFMDParameters::InitDeadMap(), AliFMDParameters::InitPedestal(), AliFMDParameters::InitPulseGain(), AliFMDParameters::InitSampleRate(), AliFMDParameters::InitStripRange(), AliFMDDetector::InitTransformations(), AliFMDGeometry::InitTransformations(), AliFMDParameters::InitZeroSuppression(), AliFMDDisplay::InsideCut(), AliFMDParameters::IsDead(), AliFMDAlignFaker::MakeAlign(), AliFMDAlignFaker::MakeAlignHalf(), AliFMDAlignFaker::MakeAlignSensor(), AliFMDDisplay::MakeCanvas(), AliFMDCalibGain::MakeDeadMap(), AliFMDCalibPedestal::MakeDeadMap(), AliFMDQADataMakerRec::MakeESDs(), AliFMDHitDigitizer::MakeOutputTree(), AliFMDBaseDigitizer::MakeOutputTree(), AliFMDReconstructor::PreReconstruct(), AliFMDDisplay::ProcessDigit(), AliFMDInput::ProcessDigits(), AliFMDReconstructor::ProcessDigits(), AliFMDDisplay::ProcessRawCalibDigit(), AliFMDDisplay::ProcessRawDigit(), AliFMDInput::ProcessSDigits(), AliFMDReconstructor::ProcessSignal(), AliFMDCalibSampleRate::Rate(), AliFMD::Raw2SDigits(), AliFMDRawStream::ReadChannel(), AliFMDReconstructor::Reconstruct(), AliFMDGeometryBuilder::RingGeometry(), AliFMDCalibSampleRate::Set(), AliFMDGeometry::SetActive(), AliFMDDetector::SetAlignableVolumes(), AliFMDDisplay::ShowOnlyFMD(), AliFMDv1::StepManager(), AliFMDHitDigitizer::StoreDigits(), AliFMDBaseDigitizer::StoreDigits(), AliFMDDigitizer::SumContributions(), AliFMDHitDigitizer::SumContributions(), AliFMDv1::VMC2FMD(), AliFMDRawWriter::WriteDigits(), and AliFMDRawWriter::ZeroSuppress().