CMS 3D CMS Logo

Functions
DDCheck.h File Reference
#include <iostream>
#include <string>
#include <utility>
#include <vector>
#include "DetectorDescription/Core/interface/DDCompactView.h"
#include "DetectorDescription/Core/interface/DDName.h"

Go to the source code of this file.

Functions

bool DDCheck (std::ostream &)
 
bool DDCheck (const DDCompactView &cpv, std::ostream &)
 
bool DDCheckMaterials (std::ostream &, std::vector< std::pair< std::string, std::string > > *=0)
 

Function Documentation

bool DDCheck ( std::ostream &  )

Definition at line 162 of file DDCheck.cc.

References DDCheckAll(), and mps_fire::result.

163 {
164  bool result = false;
165  os << "DDCore: start comprehensive checking" << std::endl;
166  DDCompactView cpv; // THE one and only (prototype restriction) CompactView
167  DDExpandedView exv(cpv);
168  result |= DDCheckAll(cpv,os);
169 
170  // done
171  os << "DDCore: end of comprehensive checking" << std::endl;
172 
173  if (result) { // at least one error found
174  edm::LogError("DDCheck") << std::endl << "DDD:DDCore:DDCheck: found inconsistency problems!" << std::endl;
175  }
176 
177  return result;
178 }
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
bool DDCheckAll(const DDCompactView &cpv, std::ostream &os)
Definition: DDCheck.cc:121
Provides an exploded view of the detector (tree-view)
bool DDCheck ( const DDCompactView cpv,
std::ostream &   
)

Definition at line 180 of file DDCheck.cc.

References DDCheckAll(), and mps_fire::result.

181 {
182  bool result = false;
183  os << "DDCore: start comprehensive checking" << std::endl;
184  // DDCompactView cpv; // THE one and only (prototype restriction) CompactView
185  DDExpandedView exv(cpv);
186  result |= DDCheckAll(cpv,os);
187 
188  // done
189  os << "DDCore: end of comprehensive checking" << std::endl;
190 
191  if (result) { // at least one error found
192  edm::LogError("DDCheck") << std::endl << "DDD:DDCore:DDCheck: found inconsistency problems!" << std::endl;
193  }
194 
195  return result;
196 }
bool DDCheckAll(const DDCompactView &cpv, std::ostream &os)
Definition: DDCheck.cc:121
Provides an exploded view of the detector (tree-view)
bool DDCheckMaterials ( std::ostream &  ,
std::vector< std::pair< std::string, std::string > > *  = 0 
)