#include <CMSGDMLWriteStructure.h>
Definition at line 10 of file CMSGDMLWriteStructure.h.
CMSGDMLWriteStructure::CMSGDMLWriteStructure |
( |
| ) |
|
CMSGDMLWriteStructure::~CMSGDMLWriteStructure |
( |
| ) |
|
|
override |
void CMSGDMLWriteStructure::AddExtension |
( |
xercesc::DOMElement * |
volumeElement, |
|
|
const G4LogicalVolume *const |
glv |
|
) |
| |
|
override |
Definition at line 25 of file CMSGDMLWriteStructure.cc.
References egammaForCoreTracking_cff::cuts, ecalTB2006H4_GenSimDigiReco_cfg::G4cout, and GeV.
28 xercesc::DOMElement* auxiliaryElement =
nullptr;
30 const char* cutnames[4] = {
"pcutg",
"pcutem",
"pcutep",
"pcutp"};
32 auxiliaryElement = NewElement(
"auxiliary");
33 auxiliaryElement->setAttributeNode(NewAttribute(
"auxtype",
"G4Region"));
34 auxiliaryElement->setAttributeNode(NewAttribute(
"auxvalue",glv->GetRegion()->GetName()));
35 volumeElement->appendChild(auxiliaryElement);
37 auxiliaryElement = NewElement(
"auxiliary");
38 auxiliaryElement->setAttributeNode(NewAttribute(
"auxtype",
"pcutunit"));
39 auxiliaryElement->setAttributeNode(NewAttribute(
"auxvalue",
"GeV"));
40 volumeElement->appendChild(auxiliaryElement);
44 G4ProductionCuts *
cuts = glv->GetRegion()->GetProductionCuts();
46 for(G4int ic=0; ic<4; ++ic) {
48 <<
" cuts: " << cuts <<
" glv: " << glv << G4endl;
49 ss.clear(); ss.str(
"");
52 auxiliaryElement = NewElement(
"auxiliary");
53 auxiliaryElement->setAttributeNode(NewAttribute(
"auxtype",cutnames[ic]));
54 auxiliaryElement->setAttributeNode(NewAttribute(
"auxvalue",ss.str()));
55 volumeElement->appendChild(auxiliaryElement);
G4VRangeToEnergyConverter* CMSGDMLWriteStructure::converter[4] |
|
private |