#include <CMSGDMLWriteStructure.h>
Definition at line 10 of file CMSGDMLWriteStructure.h.
◆ CMSGDMLWriteStructure()
CMSGDMLWriteStructure::CMSGDMLWriteStructure |
( |
| ) |
|
◆ ~CMSGDMLWriteStructure()
CMSGDMLWriteStructure::~CMSGDMLWriteStructure |
( |
| ) |
|
|
override |
◆ AddExtension()
void CMSGDMLWriteStructure::AddExtension |
( |
xercesc::DOMElement * |
volumeElement, |
|
|
const G4LogicalVolume *const |
glv |
|
) |
| |
|
override |
Definition at line 22 of file CMSGDMLWriteStructure.cc.
References cuts, ecalTB2006H4_GenSimDigiReco_cfg::G4cout, and contentValuesCheck::ss.
23 xercesc::DOMElement* auxiliaryElement =
nullptr;
25 const char* cutnames[4] = {
"pcutg",
"pcutem",
"pcutep",
"pcutp"};
27 auxiliaryElement = NewElement(
"auxiliary");
28 auxiliaryElement->setAttributeNode(NewAttribute(
"auxtype",
"G4Region"));
29 auxiliaryElement->setAttributeNode(NewAttribute(
"auxvalue", glv->GetRegion()->GetName()));
30 volumeElement->appendChild(auxiliaryElement);
32 auxiliaryElement = NewElement(
"auxiliary");
33 auxiliaryElement->setAttributeNode(NewAttribute(
"auxtype",
"pcutunit"));
34 auxiliaryElement->setAttributeNode(NewAttribute(
"auxvalue",
"GeV"));
35 volumeElement->appendChild(auxiliaryElement);
39 G4ProductionCuts*
cuts = glv->GetRegion()->GetProductionCuts();
41 for (G4int ic = 0; ic < 4; ++ic) {
42 G4cout << ic <<
". " << cutnames[ic] <<
" converter: " <<
converter[ic] <<
" cuts: " <<
cuts <<
" glv: " << glv
46 ss <<
converter[ic]->Convert(
cuts->GetProductionCut(ic), glv->GetMaterial()) / CLHEP::GeV;
48 auxiliaryElement = NewElement(
"auxiliary");
49 auxiliaryElement->setAttributeNode(NewAttribute(
"auxtype", cutnames[ic]));
50 auxiliaryElement->setAttributeNode(NewAttribute(
"auxvalue",
ss.str()));
51 volumeElement->appendChild(auxiliaryElement);
TkSoA const *__restrict__ CAHitNtupletGeneratorKernelsGPU::QualityCuts cuts
◆ converter
G4VRangeToEnergyConverter* CMSGDMLWriteStructure::converter[4] |
|
private |