12 #include "TRT_G4Utilities/TRTOutputFile.hh"
13 #include "TRT_G4Utilities/TRTParameters.hh"
22 m_verboseLevel(pProcessing->m_verboseLevel)
29 if (
m_verboseLevel>5) { G4cout <<
"######### Constructor TRTParametersForEndCapHits" << G4endl; }
33 if (
m_pParameters->GetInteger(
"PrintParametersForEndCapHits"))
36 if (
m_verboseLevel>5) { G4cout <<
"######### Constructor TRTParametersForEndCapHits done" << G4endl; }
45 if (
m_verboseLevel>5) { G4cout <<
"######### Destructor TRTParametersForEndCapHits" << G4endl; }
46 if (
m_verboseLevel>5) { G4cout <<
"######### Destructor TRTParametersForEndCapHits done" << G4endl; }
55 if (
m_verboseLevel>5) { G4cout <<
"######### TRTParametersForEndCapHits::DefineParameters" << G4endl; }
57 int numberOfStrawsInPlanesAB =
59 int numberOfStrawsInPlaneC =
67 int numberOfWheelsB =
m_pParameters->GetInteger(
"NumberOfWheelsB");
70 int numberOfWheelsAB = numberOfWheelsA + numberOfWheelsB;
74 int numberOfIdentifierSectors =
77 numberOfStrawsInPlanesAB / numberOfIdentifierSectors;
79 numberOfStrawsInPlaneC / numberOfIdentifierSectors;
83 int numberOfSectorsAB =
m_pParameters->GetInteger(
"NumberOfSectorsAB");
84 int numberOfSectorsC =
m_pParameters->GetInteger(
"NumberOfSectorsC");
85 int numberOfStrawsInSectorsAB = numberOfStrawsInPlanesAB /
87 int numberOfStrawsInSectorC = numberOfStrawsInPlaneC / numberOfSectorsC;
89 numberOfStrawsInSectorsAB;
92 numberOfStrawsInSectorsAB / 2 - 1;
94 numberOfStrawsInSectorC / 2 - 1;
98 if (
m_verboseLevel>5) { G4cout <<
"######### TRTParametersForEndCapHits::DefineParameters done" << G4endl; }
107 if (
m_verboseLevel>5) { G4cout <<
"######### Method TRTParametersForEndCapHits::PrintParameters" << G4endl; }
111 TRTOutputFile* pOutputFile = TRTOutputFile::GetPointer();
113 std::ofstream&
output = pOutputFile->GetReference();
116 output <<
"***** TRTParametersForEndCapHits::PrintParameters *****"
119 output <<
"Parameters of end-cap straws:" << std::endl;
120 output <<
" numberOfStrawsInPlanesAB="
123 output <<
" numberOfStrawsInPlaneC="
126 output <<
" numberOfStrawsInIDSectorsAB="
129 output <<
" numberOfStrawsInIDSectorC="
135 output <<
" numberOfStrawsInSectorsAB="
138 output <<
" numberOfStrawsInSectorC="
141 output <<
" initialStrawIDInSectorsAB="
144 output <<
" initialStrawIDInSectorC="
148 output << std::endl <<
"Parameters of end-cap wheels:" << std::endl;
155 if (
m_verboseLevel>5) { G4cout <<
"######### Method TRTParametersForEndCapHits::PrintParameters done" << G4endl; }