test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros | Functions
DDdebug.h File Reference
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <cstdlib>
#include <iostream>
#include <string>

Go to the source code of this file.

Macros

#define DCOUT(M_v_Y, M_v_S)   { for(std::string::size_type M_v_i=0; M_v_i < ddDebugS().size(); ++M_v_i) if(ddDebugS()[M_v_i]==M_v_Y) LogDebug("DDdebug") << ddDebugS()[M_v_i] << " : " << M_v_S << std::endl; }
 
#define DCOUT_V(M_v_Y, M_v_S)   { for(std::string::size_type M_v_i=0; M_v_i < ddDebugVS().size(); ++M_v_i) if(ddDebugVS()[M_v_i]==M_v_Y) LogDebug("DDdebug") << ddDebugVS()[M_v_i] << "v: " << M_v_S << std::endl; }
 
#define DDEBUG
 
#define DEBUGOUT(s)   if (ddDebug()) { LogDebug("DDdebug") << s << std::endl; }
 
#define DEBUGOUT_V(s)   if (ddDebugV()) { LogDebug("DDdebug") << s << std::endl; }
 

Functions

const char * ddDebug ()
 
const std::string & ddDebugS ()
 
const char * ddDebugV ()
 
const std::string & ddDebugVS ()
 
int DDmem ()
 
int DDtime ()
 

Macro Definition Documentation

#define DCOUT (   M_v_Y,
  M_v_S 
)    { for(std::string::size_type M_v_i=0; M_v_i < ddDebugS().size(); ++M_v_i) if(ddDebugS()[M_v_i]==M_v_Y) LogDebug("DDdebug") << ddDebugS()[M_v_i] << " : " << M_v_S << std::endl; }
#define DCOUT_V (   M_v_Y,
  M_v_S 
)    { for(std::string::size_type M_v_i=0; M_v_i < ddDebugVS().size(); ++M_v_i) if(ddDebugVS()[M_v_i]==M_v_Y) LogDebug("DDdebug") << ddDebugVS()[M_v_i] << "v: " << M_v_S << std::endl; }

Definition at line 54 of file DDdebug.h.

Referenced by DDDividedGeometryObject::calculateNDiv(), DDDividedGeometryObject::calculateWidth(), DDLSAX2FileHandler::characters(), DDDividedGeometryObject::checkNDivAndWidth(), DDDividedGeometryObject::checkOffset(), DDDividedBoxX::DDDividedBoxX(), DDDividedBoxY::DDDividedBoxY(), DDDividedBoxZ::DDDividedBoxZ(), DDDividedConsPhi::DDDividedConsPhi(), DDDividedConsRho::DDDividedConsRho(), DDDividedConsZ::DDDividedConsZ(), DDDividedGeometryObject::DDDividedGeometryObject(), DDDividedPolyconePhi::DDDividedPolyconePhi(), DDDividedPolyconeRho::DDDividedPolyconeRho(), DDDividedPolyconeZ::DDDividedPolyconeZ(), DDDividedPolyhedraPhi::DDDividedPolyhedraPhi(), DDDividedPolyhedraRho::DDDividedPolyhedraRho(), DDDividedPolyhedraZ::DDDividedPolyhedraZ(), DDDividedTrdX::DDDividedTrdX(), DDDividedTrdY::DDDividedTrdY(), DDDividedTrdZ::DDDividedTrdZ(), DDDividedTubsRho::DDDividedTubsRho(), DDDividedTubsZ::DDDividedTubsZ(), DDLParser::DDLParser(), DDLSAX2FileHandler::endElement(), DDDividedGeometryObject::execute(), DDXMLElement::get(), DDLElementRegistry::getElement(), DDXMLElement::getVectorAttribute(), DDLRotationAndReflection::isLeftHanded(), DDXMLElement::loadAttributes(), DDDividedConsRho::makeDDLogicalPart(), DDDividedTubsRho::makeDDLogicalPart(), DDDividedTrdX::makeDDLogicalPart(), DDDividedBoxX::makeDDLogicalPart(), DDDividedPolyconeRho::makeDDLogicalPart(), DDDividedPolyhedraRho::makeDDLogicalPart(), DDDividedBoxY::makeDDLogicalPart(), DDDividedConsPhi::makeDDLogicalPart(), DDDividedTubsPhi::makeDDLogicalPart(), DDDividedTrdY::makeDDLogicalPart(), DDDividedPolyconePhi::makeDDLogicalPart(), DDDividedPolyhedraPhi::makeDDLogicalPart(), DDDividedBoxZ::makeDDLogicalPart(), DDDividedTubsZ::makeDDLogicalPart(), DDDividedConsZ::makeDDLogicalPart(), DDDividedTrdZ::makeDDLogicalPart(), DDDividedPolyconeZ::makeDDLogicalPart(), DDDividedPolyhedraZ::makeDDLogicalPart(), DDDividedConsRho::makeDDRotation(), DDDividedTubsRho::makeDDRotation(), DDDividedPolyconeRho::makeDDRotation(), DDDividedConsPhi::makeDDRotation(), DDDividedPolyconePhi::makeDDRotation(), DDDividedPolyhedraPhi::makeDDRotation(), DDDividedTubsZ::makeDDRotation(), DDDividedConsZ::makeDDRotation(), DDDividedPolyconeZ::makeDDRotation(), DDDividedTubsRho::makeDDTranslation(), DDDividedConsRho::makeDDTranslation(), DDDividedBoxX::makeDDTranslation(), DDDividedTrdX::makeDDTranslation(), DDDividedBoxY::makeDDTranslation(), DDDividedConsPhi::makeDDTranslation(), DDDividedTubsPhi::makeDDTranslation(), DDDividedTrdY::makeDDTranslation(), DDDividedBoxZ::makeDDTranslation(), DDDividedTubsZ::makeDDTranslation(), DDDividedConsZ::makeDDTranslation(), DDDividedTrdZ::makeDDTranslation(), DDDividedPolyhedraZ::makeDDTranslation(), operator<<(), DDLParser::parseOneFile(), DDLPosPart::preProcessElement(), DDXMLElement::preProcessElement(), DDLTubs::processElement(), DDLTrapezoid::processElement(), DDLSpecPar::processElement(), DDLPseudoTrap::processElement(), DDLTorus::processElement(), DDLBox::processElement(), DDLShapelessSolid::processElement(), DDLAlgorithm::processElement(), DDLParallelepiped::processElement(), DDLReflectionSolid::processElement(), DDLCone::processElement(), DDLEllipsoid::processElement(), DDLEllipticalTube::processElement(), DDLSphere::processElement(), DDLOrb::processElement(), DDLDivision::processElement(), DDLPolyGenerator::processElement(), DDLElementaryMaterial::processElement(), DDLBooleanSolid::processElement(), DDLRotationSequence::processElement(), DDLPosPart::processElement(), DDLNumeric::processElement(), DDLString::processElement(), DDLRotationAndReflection::processElement(), DDLRotationByAxis::processElement(), DDLCompositeMaterial::processElement(), DDLLogicalPart::processElement(), DDLVector::processElement(), DDLMap::processElement(), DDXMLElement::processElement(), ClhepEvaluator::set(), DDLMaterial::setReference(), DDLSolid::setReference(), DDLSAX2ExpressionHandler::startElement(), DDLSAX2ConfigHandler::startElement(), DDLSAX2FileHandler::startElement(), DDCompactViewImpl::weight(), and DDLParser::~DDLParser().

#define DDEBUG

Definition at line 9 of file DDdebug.h.

#define DEBUGOUT (   s)    if (ddDebug()) { LogDebug("DDdebug") << s << std::endl; }

Definition at line 57 of file DDdebug.h.

#define DEBUGOUT_V (   s)    if (ddDebugV()) { LogDebug("DDdebug") << s << std::endl; }

Definition at line 58 of file DDdebug.h.

Function Documentation

const char* ddDebug ( )
inline

Definition at line 32 of file DDdebug.h.

References EnergyCorrector::c.

Referenced by ddDebugS().

32  {
33  static const char* c = getenv("DDEBUG");
34  return c;
35 }
const std::string& ddDebugS ( )
inline

Definition at line 42 of file DDdebug.h.

References ddDebug(), alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.

42  {
43  static const std::string s(ddDebug()? ddDebug(): "");
44  return s;
45 }
const char * ddDebug()
Definition: DDdebug.h:32
const char* ddDebugV ( )
inline

Definition at line 37 of file DDdebug.h.

References EnergyCorrector::c.

Referenced by ddDebugVS().

37  {
38  static const char* c = getenv("DDEBUG_V");
39  return c;
40 }
const std::string& ddDebugVS ( )
inline

Definition at line 47 of file DDdebug.h.

References ddDebugV(), alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.

47  {
48  static const std::string s(ddDebugV()? ddDebugV(): "");
49  return s;
50 }
const char * ddDebugV()
Definition: DDdebug.h:37
int DDmem ( )

only for LINUX returns the size of the running program in kbytes

int DDtime ( )