CMS 3D CMS Logo

Defines | Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DetectorDescription/Base/interface/DDdebug.h File Reference

#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <cstdlib>
#include <iostream>
#include <string>

Go to the source code of this file.

Defines

#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 ()

Define 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(), DDTokenize(), DDLSAX2FileHandler::endElement(), DDDividedGeometryObject::execute(), DDXMLElement::get(), DDLElementRegistry::getElement(), DDXMLElement::getVectorAttribute(), DDLRotationAndReflection::isLeftHanded(), DDXMLElement::loadAttributes(), DDDividedConsRho::makeDDLogicalPart(), DDDividedBoxX::makeDDLogicalPart(), DDDividedTrdZ::makeDDLogicalPart(), DDDividedTubsPhi::makeDDLogicalPart(), DDDividedConsZ::makeDDLogicalPart(), DDDividedPolyhedraPhi::makeDDLogicalPart(), DDDividedTrdY::makeDDLogicalPart(), DDDividedConsPhi::makeDDLogicalPart(), DDDividedPolyconePhi::makeDDLogicalPart(), DDDividedPolyhedraRho::makeDDLogicalPart(), DDDividedTrdX::makeDDLogicalPart(), DDDividedBoxZ::makeDDLogicalPart(), DDDividedPolyhedraZ::makeDDLogicalPart(), DDDividedTubsRho::makeDDLogicalPart(), DDDividedBoxY::makeDDLogicalPart(), DDDividedPolyconeRho::makeDDLogicalPart(), DDDividedPolyconeZ::makeDDLogicalPart(), DDDividedTubsZ::makeDDLogicalPart(), DDDividedPolyconePhi::makeDDRotation(), DDDividedConsPhi::makeDDRotation(), DDDividedPolyconeRho::makeDDRotation(), DDDividedTubsZ::makeDDRotation(), DDDividedPolyhedraPhi::makeDDRotation(), DDDividedConsRho::makeDDRotation(), DDDividedConsZ::makeDDRotation(), DDDividedPolyconeZ::makeDDRotation(), DDDividedTubsRho::makeDDRotation(), DDDividedTubsRho::makeDDTranslation(), DDDividedTrdZ::makeDDTranslation(), DDDividedTrdY::makeDDTranslation(), DDDividedConsZ::makeDDTranslation(), DDDividedBoxX::makeDDTranslation(), DDDividedTubsZ::makeDDTranslation(), DDDividedConsRho::makeDDTranslation(), DDDividedBoxZ::makeDDTranslation(), DDDividedPolyhedraZ::makeDDTranslation(), DDDividedTrdX::makeDDTranslation(), DDDividedBoxY::makeDDTranslation(), DDDividedConsPhi::makeDDTranslation(), DDDividedTubsPhi::makeDDTranslation(), operator<<(), DDLParser::parseOneFile(), DDLPosPart::preProcessElement(), DDXMLElement::preProcessElement(), DDLBooleanSolid::processElement(), DDLRotationSequence::processElement(), DDLSpecPar::processElement(), DDLTrapezoid::processElement(), DDLVector::processElement(), DDLCone::processElement(), DDLDivision::processElement(), DDLCompositeMaterial::processElement(), DDLEllipsoid::processElement(), DDLShapelessSolid::processElement(), DDLLogicalPart::processElement(), DDLReflectionSolid::processElement(), DDLRotationAndReflection::processElement(), DDLOrb::processElement(), DDLPseudoTrap::processElement(), DDLString::processElement(), DDLNumeric::processElement(), DDLPosPart::processElement(), DDLRotationByAxis::processElement(), DDLAlgorithm::processElement(), DDLElementaryMaterial::processElement(), DDLTubs::processElement(), DDLBox::processElement(), DDLAlgoPosPart::processElement(), DDLParallelepiped::processElement(), DDLPolyGenerator::processElement(), DDLEllipticalTube::processElement(), DDLSphere::processElement(), DDLTorus::processElement(), DDXMLElement::processElement(), DDLMap::processElement(), ClhepEvaluator::set(), DDLSolid::setReference(), DDLMaterial::setReference(), DDLSAX2ExpressionHandler::startElement(), DDLSAX2FileHandler::startElement(), DDLSAX2ConfigHandler::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 trackerHits::c.

Referenced by ddDebugS().

                              {
  static const char* c = getenv("DDEBUG");
  return c;
}
const std::string& ddDebugS ( ) [inline]

Definition at line 42 of file DDdebug.h.

References ddDebug(), and asciidump::s.

                                     {
  static const std::string s(ddDebug()? ddDebug(): ""); 
  return s;
}
const char* ddDebugV ( ) [inline]

Definition at line 37 of file DDdebug.h.

References trackerHits::c.

Referenced by ddDebugVS().

                               {
  static  const char* c = getenv("DDEBUG_V");
  return c;
}
const std::string& ddDebugVS ( ) [inline]

Definition at line 47 of file DDdebug.h.

References ddDebugV(), and asciidump::s.

                                      {
  static const std::string s(ddDebugV()? ddDebugV(): "");
  return s; 
}
int DDmem ( )

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

int DDtime ( )