CMS 3D CMS Logo

MaterialBudgetData.cc
Go to the documentation of this file.
2 
3 #include "G4Step.hh"
4 #include "G4Material.hh"
5 #include "G4EventManager.hh"
6 #include "G4Event.hh"
7 
9 {
10  //instantiate categorizer to assign an ID to volumes and materials
12  allStepsToTree = false;
13  isHGCal = false;
14  densityConvertionFactor = 6.24E18;
15 }
16 
18 
19 }
20 
22 {
23  allStepsToTree = true;
24 }
25 
26 
27 void MaterialBudgetData::dataStartTrack( const G4Track* aTrack )
28 {
29 
30  const G4ThreeVector& dir = aTrack->GetMomentum() ;
31 
32  if( myMaterialBudgetCategorizer == nullptr){
33  myMaterialBudgetCategorizer = std::make_unique<MaterialBudgetCategorizer>();
34  }
35 
36  theStepN=0;
37  theTotalMB=0;
38  theTotalIL=0;
39  theEta=0;
40  thePhi=0;
41  theID=0;
42  thePt=0;
43  theEnergy=0;
44  theMass=0;
45 
46  theSupportMB = 0.;
47  theSensitiveMB = 0.;
48  theCoolingMB = 0.;
49  theElectronicsMB = 0.;
50  theOtherMB = 0.;
51 
52  //HGCal
53  theAirMB = 0.;
54  theCablesMB = 0.;
55  theCopperMB = 0.;
57  theLeadMB = 0.;
59  theSiliconMB = 0.;
61  theWCuMB = 0.;
62 
63  theSupportIL = 0.;
64  theSensitiveIL = 0.;
65  theCoolingIL = 0.;
66  theElectronicsIL = 0.;
67  theOtherIL = 0.;
68 
69  //HGCal
70  theAirIL = 0.;
71  theCablesIL = 0.;
72  theCopperIL = 0.;
74  theLeadIL = 0.;
76  theSiliconIL = 0.;
78  theWCuIL = 0.;
79 
84  theOtherFractionMB = 0.;
85  //HGCal
86  theAirFractionMB = 0.;
87  theCablesFractionMB = 0.;
88  theCopperFractionMB = 0.;
90  theLeadFractionMB = 0.;
94  theWCuFractionMB = 0.;
95 
100  theOtherFractionIL = 0.;
101  //HGCal
102  theAirFractionIL = 0.;
103  theCablesFractionIL = 0.;
104  theCopperFractionIL = 0.;
106  theLeadFractionIL = 0.;
108  theSiliconFractionIL = 0.;
110  theWCuFractionIL = 0.;
111 
112  theID = (int)(aTrack->GetDefinition()->GetPDGEncoding());
113  thePt = dir.perp();
114  if( dir.theta() != 0 ) {
115  theEta = dir.eta();
116  } else {
117  theEta = -99;
118  }
119  thePhi = dir.phi();
120  theEnergy = aTrack->GetTotalEnergy();
121  theMass = aTrack->GetDefinition()->GetPDGMass();
122 }
123 
124 
125 void MaterialBudgetData::dataEndTrack( const G4Track* aTrack )
126 {
127  LogDebug("MaterialBudget") << "MaterialBudgetData: [OVAL] MaterialBudget "
128  << G4EventManager::GetEventManager()->GetConstCurrentEvent()->GetEventID()
129  << " Eta:" << theEta << " Phi:" << thePhi << " TotalMB" << theTotalMB;
130 
131  LogDebug("MaterialBudget") << "MaterialBudgetData:" << theStepN << "Recorded steps ";
132 
133  if (!isHGCal){
134 
135  LogDebug("Material Budget") <<"MaterialBudgetData: Radiation Length "
136  << G4EventManager::GetEventManager()->GetConstCurrentEvent()->GetEventID()
137  << " Eta" << theEta << " Phi" << thePhi
138  << " TotalMB" << theTotalMB
139  << " SUP " << theSupportMB << " SEN " << theSensitiveMB
140  << " CAB " << theCablesMB << " COL " << theCoolingMB
141  << " ELE " << theElectronicsMB << " other " << theOtherMB
142  << " Air " << theAirMB;
143 
144  LogDebug("Material Budget") << "MaterialBudgetData: Interaction Length "
145  << G4EventManager::GetEventManager()->GetConstCurrentEvent()->GetEventID()
146  << " Eta " << theEta << " Phi " << thePhi
147  << " TotalIL " << theTotalIL
148  << " SUP " << theSupportIL << " SEN " << theSensitiveIL
149  << " CAB " << theCablesIL << " COL " << theCoolingIL
150  << " ELE " << theElectronicsIL << " other " << theOtherIL
151  << " Air " << theAirIL << std::endl;
152 
153  } else {
154 
155  LogDebug("MaterialBudget") << "MaterialBudgetData: HGCal Material Budget: Radiation Length "
156  << G4EventManager::GetEventManager()->GetConstCurrentEvent()->GetEventID()
157  << " Eta " << theEta << " Phi " << thePhi
158  << " TotaLMB" << theTotalMB
159  << " theCopperMB " << theCopperMB << " theH_ScintillatorMB " << theH_ScintillatorMB
160  << " CAB " << theCablesMB << " theLeadMB " << theLeadMB << " theM_NEMA_FR4_plateMB "
161  << theM_NEMA_FR4_plateMB << " theSiliconMB " << theSiliconMB
162  << " theAirMB " << theAirMB << " theStainlessSteelMB " << theStainlessSteelMB
163  << " theWCuMB " << theWCuMB;
164 
165  LogDebug("MaterialBudget") << "MaterialBudgetData: HGCal Material Budget: Interaction Length "
166  << G4EventManager::GetEventManager()->GetConstCurrentEvent()->GetEventID()
167  << " Eta " << theEta << " Phi " << thePhi
168  << " TotalIL " << theTotalIL << " theCopperIL " << theCopperIL
169  << " theH_ScintillatorIL " << theH_ScintillatorIL
170  << " CAB " << theCablesIL << " theLeadIL " << theLeadIL
171  << " theM_NEMA_FR4_plateIL " << theM_NEMA_FR4_plateIL
172  << " theSiliconIL " << theSiliconIL << " Air "
173  << theAirIL << " theStainlessSteelIL " << theStainlessSteelIL
174  << " theWCuIL " << theWCuIL << std::endl;
175  }
176 }
177 
178 void MaterialBudgetData::dataPerStep( const G4Step* aStep )
179 {
180  assert(aStep);
181  G4StepPoint* prePoint = aStep->GetPreStepPoint();
182  G4StepPoint* postPoint = aStep->GetPostStepPoint();
183  assert(prePoint);
184  assert(postPoint);
185  G4Material * theMaterialPre = prePoint->GetMaterial();
186  assert(theMaterialPre);
187 
188  CLHEP::Hep3Vector prePos = prePoint->GetPosition();
189  CLHEP::Hep3Vector postPos = postPoint->GetPosition();
190 
191  G4double steplen = aStep->GetStepLength();
192 
193  G4double radlen = theMaterialPre->GetRadlen();
194  G4double intlen = theMaterialPre->GetNuclearInterLength();
195  G4double density = theMaterialPre->GetDensity() / densityConvertionFactor; // always g/cm3
196 
197  G4String materialName = theMaterialPre->GetName();
198 
199  LogDebug("MaterialBudget") << "MaterialBudgetData: Material " << materialName
200  << " steplen " << steplen
201  << " radlen " << radlen
202  << " mb " << steplen/radlen;
203 
204  G4String volumeName = aStep->GetPreStepPoint()->GetTouchable()->GetVolume(0)->GetLogicalVolume()->GetName();
205 
206  LogDebug("MaterialBudget") << "MaterialBudgetData: Volume " << volumeName
207  << " Material " << materialName;
208 
209  // instantiate the categorizer
211  int volumeID = myMaterialBudgetCategorizer->volume( volumeName );
212  int materialID = myMaterialBudgetCategorizer->material( materialName );
213 
214  LogDebug("MaterialBudget") << "MaterialBudgetData: Volume ID " << volumeID
215  << " Material ID " << materialID;
216 
217  // FIXME: Both volume ID and material ID are zeros, so this part is not executed leaving all
218  // values as zeros.
219  if(!myMaterialBudgetCategorizer->x0fraction(materialName).empty() && (!isHGCal))
220  {
221  theSupportFractionMB = myMaterialBudgetCategorizer->x0fraction(materialName)[0];
222  theSensitiveFractionMB = myMaterialBudgetCategorizer->x0fraction(materialName)[1];
223  theCablesFractionMB = myMaterialBudgetCategorizer->x0fraction(materialName)[2];
224  theCoolingFractionMB = myMaterialBudgetCategorizer->x0fraction(materialName)[3];
225  theElectronicsFractionMB = myMaterialBudgetCategorizer->x0fraction(materialName)[4];
226  theOtherFractionMB = myMaterialBudgetCategorizer->x0fraction(materialName)[5];
227  theAirFractionMB = myMaterialBudgetCategorizer->x0fraction(materialName)[6];
228 
229  if(theOtherFractionMB!=0)
230  edm::LogWarning("MaterialBudget") << "MaterialBudgetData: Material found with no category: " << materialName
231  << " in volume " << volumeName;
232 
233  theSupportFractionIL = myMaterialBudgetCategorizer->l0fraction(materialName)[0];
234  theSensitiveFractionIL = myMaterialBudgetCategorizer->l0fraction(materialName)[1];
235  theCablesFractionIL = myMaterialBudgetCategorizer->l0fraction(materialName)[2];
236  theCoolingFractionIL = myMaterialBudgetCategorizer->l0fraction(materialName)[3];
237  theElectronicsFractionIL = myMaterialBudgetCategorizer->l0fraction(materialName)[4];
238  theOtherFractionIL = myMaterialBudgetCategorizer->l0fraction(materialName)[5];
239  theAirFractionIL = myMaterialBudgetCategorizer->l0fraction(materialName)[6];
240 
241  if(theOtherFractionIL!=0)
242  edm::LogWarning("MaterialBudget") << "MaterialBudgetData: Material found with no category: " << materialName
243  << " in volume " << volumeName;
244  }
245  else
246  {
247  theOtherFractionMB = 1;
248  theOtherFractionIL = 1;
249  }
250  if( (!myMaterialBudgetCategorizer->HGCalx0fraction(materialName).empty()) && (isHGCal) )
251  {
252 
253  theAirFractionMB = myMaterialBudgetCategorizer->HGCalx0fraction(materialName)[0];
254  theCablesFractionMB = myMaterialBudgetCategorizer->HGCalx0fraction(materialName)[1];
255  theCopperFractionMB = myMaterialBudgetCategorizer->HGCalx0fraction(materialName)[2];
256  theH_ScintillatorFractionMB = myMaterialBudgetCategorizer->HGCalx0fraction(materialName)[3];
257  theLeadFractionMB = myMaterialBudgetCategorizer->HGCalx0fraction(materialName)[4];
258  theM_NEMA_FR4_plateFractionMB = myMaterialBudgetCategorizer->HGCalx0fraction(materialName)[5];
259  theSiliconFractionMB = myMaterialBudgetCategorizer->HGCalx0fraction(materialName)[6];
260  theStainlessSteelFractionMB = myMaterialBudgetCategorizer->HGCalx0fraction(materialName)[7];
261  theWCuFractionMB = myMaterialBudgetCategorizer->HGCalx0fraction(materialName)[8];
262  theOtherFractionMB = myMaterialBudgetCategorizer->HGCalx0fraction(materialName)[9];
263 
264 
265  if(theOtherFractionMB!=0)
266  edm::LogWarning("MaterialBudget") << "MaterialBudgetData: Material found with no category: " << materialName
267  << " in volume " << volumeName << std::endl;
268 
269  theAirFractionIL = myMaterialBudgetCategorizer->HGCall0fraction(materialName)[0];
270  theCablesFractionIL = myMaterialBudgetCategorizer->HGCall0fraction(materialName)[1];
271  theCopperFractionIL = myMaterialBudgetCategorizer->HGCall0fraction(materialName)[2];
272  theH_ScintillatorFractionIL = myMaterialBudgetCategorizer->HGCall0fraction(materialName)[3];
273  theLeadFractionIL = myMaterialBudgetCategorizer->HGCall0fraction(materialName)[4];
274  theM_NEMA_FR4_plateFractionIL = myMaterialBudgetCategorizer->HGCall0fraction(materialName)[5];
275  theSiliconFractionIL = myMaterialBudgetCategorizer->HGCall0fraction(materialName)[6];
276  theStainlessSteelFractionIL = myMaterialBudgetCategorizer->HGCall0fraction(materialName)[7];
277  theWCuFractionIL = myMaterialBudgetCategorizer->HGCall0fraction(materialName)[8];
278  theOtherFractionIL = myMaterialBudgetCategorizer->HGCall0fraction(materialName)[9];
279 
280 
281  if(theOtherFractionIL!=0)
282  edm::LogWarning("MaterialBudget") << "MaterialBudgetData: Material found with no category " << materialName
283  << " in volume " << volumeName << std::endl;
284  }
285  else
286  {
287  theOtherFractionMB = 1;
288  theOtherFractionIL = 1;
289  }
290 
291  float dmb = steplen/radlen;
292  float dil = steplen/intlen;
293 
294  G4VPhysicalVolume* pv = aStep->GetPreStepPoint()->GetPhysicalVolume();
295  const G4VTouchable* t = aStep->GetPreStepPoint()->GetTouchable();
296  const G4ThreeVector& objectTranslation = t->GetTranslation();
297  const G4RotationMatrix* objectRotation = t->GetRotation();
298  const G4VProcess* interactionPre = prePoint->GetProcessDefinedStep();
299  const G4VProcess* interactionPost = postPoint->GetProcessDefinedStep();
300 
301  G4Track* track = aStep->GetTrack();
302  if(theStepN==0)
303  LogDebug("MaterialBudget") << "MaterialBudgetData: Simulated Particle " << theID
304  << "\tMass " << theMass << " MeV/c2"
305  << "\tPt = " << thePt << " MeV/c"
306  << "\tEta = " << theEta
307  << "\tPhi = " << thePhi
308  << "\tEnergy = " << theEnergy << " MeV";
309 
310  //fill data per step
311  if( allStepsToTree ){
312  assert(theStepN < MAXNUMBERSTEPS);
314  theDmb[theStepN] = dmb;
315  theDil[theStepN] = dil;
321  //HGCal
330  theWCuDmb[theStepN] = (dmb * theWCuFractionMB);
331 
337  //HGCal
346  theWCuDil[theStepN] = (dil * theWCuFractionIL);
347 
348  theInitialX[theStepN] = prePos.x();
349  theInitialY[theStepN] = prePos.y();
350  theInitialZ[theStepN] = prePos.z();
351  theFinalX[theStepN] = postPos.x();
352  theFinalY[theStepN] = postPos.y();
353  theFinalZ[theStepN] = postPos.z();
354  theVolumeID[theStepN] = volumeID;
355  theVolumeName[theStepN] = volumeName;
356  theVolumeCopy[theStepN] = pv->GetCopyNo();
357  theVolumeX[theStepN] = objectTranslation.x();
358  theVolumeY[theStepN] = objectTranslation.y();
359  theVolumeZ[theStepN] = objectTranslation.z();
360  theVolumeXaxis1[theStepN] = objectRotation->xx();
361  theVolumeXaxis2[theStepN] = objectRotation->xy();
362  theVolumeXaxis3[theStepN] = objectRotation->xz();
363  theVolumeYaxis1[theStepN] = objectRotation->yx();
364  theVolumeYaxis2[theStepN] = objectRotation->yy();
365  theVolumeYaxis3[theStepN] = objectRotation->yz();
366  theVolumeZaxis1[theStepN] = objectRotation->zx();
367  theVolumeZaxis2[theStepN] = objectRotation->zy();
368  theVolumeZaxis3[theStepN] = objectRotation->zz();
369  theMaterialID[theStepN] = materialID;
370  theMaterialName[theStepN] = materialName;
371  theMaterialX0[theStepN] = radlen;
372  theMaterialLambda0[theStepN] = intlen;
373  theMaterialDensity[theStepN] = density;
374  theStepID[theStepN] = track->GetDefinition()->GetPDGEncoding();
375  theStepInitialPt[theStepN] = prePoint->GetMomentum().perp();
376  theStepInitialEta[theStepN] = prePoint->GetMomentum().eta();
377  theStepInitialPhi[theStepN] = prePoint->GetMomentum().phi();
378  theStepInitialEnergy[theStepN] = prePoint->GetTotalEnergy();
379  theStepInitialPx[theStepN] = prePoint->GetMomentum().x();
380  theStepInitialPy[theStepN] = prePoint->GetMomentum().y();
381  theStepInitialPz[theStepN] = prePoint->GetMomentum().z();
382  theStepInitialBeta[theStepN] = prePoint->GetBeta();
383  theStepInitialGamma[theStepN] = prePoint->GetGamma();
384  theStepInitialMass[theStepN] = prePoint->GetMass();
385  theStepFinalPt[theStepN] = postPoint->GetMomentum().perp();
386  theStepFinalEta[theStepN] = postPoint->GetMomentum().eta();
387  theStepFinalPhi[theStepN] = postPoint->GetMomentum().phi();
388  theStepFinalEnergy[theStepN] = postPoint->GetTotalEnergy();
389  theStepFinalPx[theStepN] = postPoint->GetMomentum().x();
390  theStepFinalPy[theStepN] = postPoint->GetMomentum().y();
391  theStepFinalPz[theStepN] = postPoint->GetMomentum().z();
392  theStepFinalBeta[theStepN] = postPoint->GetBeta();
393  theStepFinalGamma[theStepN] = postPoint->GetGamma();
394  theStepFinalMass[theStepN] = postPoint->GetMass();
395  int preProcType = -99;
396  int postProcType = -99;
397  if (interactionPre) preProcType = interactionPre->GetProcessType();
398  theStepPreProcess[theStepN] = preProcType;
399  if (interactionPost) postProcType = interactionPost->GetProcessType();
400  theStepPostProcess[theStepN] = postProcType;
401 
402  LogDebug("MaterialBudget")
403  << "MaterialBudgetData: Step " << theStepN
404  << "\tDelta MB = " << theDmb[theStepN]
405  << std::endl
406  << " Support " << theSupportDmb[theStepN]
407  << " Sensitive " << theSensitiveDmb[theStepN]
408  << " Cables " << theCablesDmb[theStepN]
409  << " Cooling " << theCoolingDmb[theStepN]
410  << " Electronics " << theElectronicsDmb[theStepN]
411  << " Other " << theOtherDmb[theStepN]
412  << " Air " << theAirDmb[theStepN]
413  << std::endl
414  << "\tDelta IL = " << theDil[theStepN]
415  << std::endl
416  << " Support " << theSupportDil[theStepN]
417  << " Sensitive " << theSensitiveDil[theStepN]
418  << " Cables " << theCablesDil[theStepN]
419  << " Cooling " << theCoolingDil[theStepN]
420  << " Electronics " << theElectronicsDil[theStepN]
421  << " Other " << theOtherDil[theStepN]
422  << " Air " << theAirDil[theStepN];
423 
424  if (interactionPre)
425  LogDebug("MaterialBudget")
426  << "MaterialBudgetData: Process Pre " << interactionPre->GetProcessName()
427  << " type " << theStepPreProcess[theStepN]
428  << " name " << interactionPre->GetProcessTypeName(G4ProcessType(theStepPreProcess[theStepN]));
429  if (interactionPost)
430  LogDebug("MaterialBudget")
431  << "MaterialBudgetData: Process Post " << interactionPost->GetProcessName()
432  << " type " << theStepPostProcess[theStepN]
433  << " name "<< interactionPost->GetProcessTypeName(G4ProcessType(theStepPostProcess[theStepN]))
434  << " Pre x = " << theInitialX[theStepN]
435  << " y = " << theInitialY[theStepN]
436  << " z = " << theInitialZ[theStepN]
437  << " Polar Radius = " << sqrt(prePos.x()*prePos.x()+prePos.y()*prePos.y())
438  << " Pt = " << theStepInitialPt[theStepN]
439  << " Energy = " << theStepInitialEnergy[theStepN]
440  << " Final: "
441  << " Post x = " << theFinalX[theStepN]
442  << " y = " << theFinalY[theStepN]
443  << " z = " << theFinalZ[theStepN]
444  << " Polar Radius = " << sqrt(postPos.x()*postPos.x()+postPos.y()*postPos.y())
445  << " Pt = " << theStepFinalPt[theStepN]
446  << " Energy = " << theStepFinalEnergy[theStepN]
447  << std::endl
448  << " Volume " << volumeID << " name " << theVolumeName[theStepN]
449  << " copy number " << theVolumeCopy[theStepN]
450  << " material " << theMaterialID[theStepN] << " " << theMaterialName[theStepN]
451  << " Density = " << theMaterialDensity[theStepN] << " g/cm3"
452  << " X0 = " << theMaterialX0[theStepN] << " mm"
453  << " Lambda0 = " << theMaterialLambda0[theStepN] << " mm"
454  << std::endl
455  << " Particle " << theStepID[theStepN]
456  << " Initial Pt = " << theStepInitialPt[theStepN] << " MeV/c"
457  << " eta = " << theStepInitialEta[theStepN]
458  << " phi = " << theStepInitialPhi[theStepN]
459  << " Energy = " << theStepInitialEnergy[theStepN] << " MeV"
460  << " Mass = " << theStepInitialMass[theStepN] << " MeV/c2"
461  << " Beta = " << theStepInitialBeta[theStepN]
462  << " Gamma = " << theStepInitialGamma[theStepN]
463  << std::endl
464  << " Particle " << theStepID[theStepN]
465  << " Final Pt = " << theStepFinalPt[theStepN] << " MeV/c"
466  << " eta = " << theStepFinalEta[theStepN]
467  << " phi = " << theStepFinalPhi[theStepN]
468  << " Energy = " << theStepFinalEnergy[theStepN] << " MeV"
469  << " Mass = " << theStepFinalMass[theStepN] << " MeV/c2"
470  << " Beta = " << theStepFinalBeta[theStepN]
471  << " Gamma = " << theStepFinalGamma[theStepN]
472  << std::endl
473  << " Volume Centre x = " << theVolumeX[theStepN]
474  << " y = " << theVolumeY[theStepN]
475  << " z = " << theVolumeZ[theStepN]
476  << "Polar Radius = " << sqrt( theVolumeX[theStepN]*theVolumeX[theStepN] +
477  theVolumeY[theStepN]*theVolumeY[theStepN] )
478  << std::endl
479  << " x axis = ("
480  << theVolumeXaxis1[theStepN] << ","
481  << theVolumeXaxis2[theStepN] << ","
482  << theVolumeXaxis3[theStepN] << ")"
483  << std::endl
484  << " y axis = ("
485  << theVolumeYaxis1[theStepN] << ","
486  << theVolumeYaxis2[theStepN] << ","
487  << theVolumeYaxis3[theStepN] << ")"
488  << std::endl
489  << " z axis = ("
490  << theVolumeZaxis1[theStepN] << ","
491  << theVolumeZaxis2[theStepN] << ","
492  << theVolumeZaxis3[theStepN] << ")"
493  << std::endl
494  << " Secondaries"
495  << std::endl;
496 
497  for(G4TrackVector::const_iterator iSec = aStep->GetSecondary()->begin(); iSec!=aStep->GetSecondary()->end(); iSec++) {
498  LogDebug("MaterialBudget")
499  << "MaterialBudgetData: tid " << (*iSec)->GetDefinition()->GetPDGEncoding()
500  << " created through process type " << (*iSec)->GetCreatorProcess()->GetProcessType()
501  << (*iSec)->GetCreatorProcess()->GetProcessTypeName(G4ProcessType((*iSec)->GetCreatorProcess()->GetProcessType()));
502  }
503  }
504 
505  theTrkLen = aStep->GetTrack()->GetTrackLength();
506  thePVname = pv->GetName();
507  thePVcopyNo = pv->GetCopyNo();
508  theRadLen = radlen;
509  theIntLen = intlen;
510  theTotalMB += dmb;
511  theTotalIL += dil;
512 
517  theOtherMB += (dmb * theOtherFractionMB);
518 
519  //HGCal
520  theAirMB += (dmb * theAirFractionMB);
521  theCablesMB += (dmb * theCablesFractionMB);
522  theCopperMB += (dmb * theCopperFractionMB);
524  theLeadMB += (dmb * theLeadFractionMB);
528  theWCuMB += (dmb * theWCuFractionMB);
529 
534  theOtherIL += (dil * theOtherFractionIL);
535  //HGCal
536  theAirIL += (dil * theAirFractionIL);
537  theCablesIL += (dil * theCablesFractionIL);
538  theCopperIL += (dil * theCopperFractionIL);
540  theLeadIL += (dil * theLeadFractionIL);
544  theWCuIL += (dil * theWCuFractionIL);
545 
546 
547 
548  // rr
549 
550  theStepN++;
551 
552 }
553 
554 
#define LogDebug(id)
std::array< float, MAXNUMBERSTEPS > theStepInitialMass
std::array< float, MAXNUMBERSTEPS > theWCuDil
std::array< float, MAXNUMBERSTEPS > theMaterialX0
std::array< float, MAXNUMBERSTEPS > theVolumeZaxis1
std::array< float, MAXNUMBERSTEPS > theAirDil
std::array< float, MAXNUMBERSTEPS > theStepInitialBeta
std::array< float, MAXNUMBERSTEPS > theSupportDmb
std::array< float, MAXNUMBERSTEPS > theStepFinalEta
std::array< float, MAXNUMBERSTEPS > theM_NEMA_FR4_plateDmb
std::array< int, MAXNUMBERSTEPS > theStepPreProcess
std::array< float, MAXNUMBERSTEPS > theStainlessSteelDil
std::array< int, MAXNUMBERSTEPS > theStepPostProcess
std::array< float, MAXNUMBERSTEPS > theSiliconDil
std::array< float, MAXNUMBERSTEPS > theCopperDmb
std::array< double, MAXNUMBERSTEPS > theFinalX
std::array< float, MAXNUMBERSTEPS > theStepFinalBeta
std::array< float, MAXNUMBERSTEPS > theAirDmb
std::array< float, MAXNUMBERSTEPS > theStepInitialPt
std::array< float, MAXNUMBERSTEPS > theWCuDmb
std::array< float, MAXNUMBERSTEPS > theStepInitialPz
std::array< float, MAXNUMBERSTEPS > theStepInitialPx
std::array< float, MAXNUMBERSTEPS > theStepFinalPhi
std::array< float, MAXNUMBERSTEPS > theVolumeYaxis1
std::array< float, MAXNUMBERSTEPS > theM_NEMA_FR4_plateDil
std::array< double, MAXNUMBERSTEPS > theInitialY
std::array< float, MAXNUMBERSTEPS > theStepFinalGamma
std::array< float, MAXNUMBERSTEPS > theVolumeZaxis2
std::array< float, MAXNUMBERSTEPS > theStepFinalMass
std::unique_ptr< MaterialBudgetCategorizer > myMaterialBudgetCategorizer
std::array< float, MAXNUMBERSTEPS > theSiliconDmb
std::array< int, MAXNUMBERSTEPS > theVolumeCopy
std::array< float, MAXNUMBERSTEPS > theLeadDmb
std::array< double, MAXNUMBERSTEPS > theInitialZ
std::array< float, MAXNUMBERSTEPS > theMaterialDensity
std::array< float, MAXNUMBERSTEPS > theVolumeXaxis1
std::array< float, MAXNUMBERSTEPS > theOtherDmb
std::array< int, MAXNUMBERSTEPS > theStepID
T sqrt(T t)
Definition: SSEVec.h:18
void dataEndTrack(const G4Track *aTrack)
std::array< float, MAXNUMBERSTEPS > theSensitiveDil
std::array< double, MAXNUMBERSTEPS > theFinalY
def pv(vc)
Definition: MetAnalyzer.py:7
void dataPerStep(const G4Step *aStep)
std::array< float, MAXNUMBERSTEPS > theStepFinalPx
std::array< float, MAXNUMBERSTEPS > theStepInitialEta
std::array< float, MAXNUMBERSTEPS > theStepInitialPhi
std::array< float, MAXNUMBERSTEPS > theCoolingDmb
std::array< float, MAXNUMBERSTEPS > theVolumeX
std::array< float, MAXNUMBERSTEPS > theLeadDil
std::array< float, MAXNUMBERSTEPS > theCablesDil
std::array< float, MAXNUMBERSTEPS > theVolumeXaxis2
std::array< float, MAXNUMBERSTEPS > theSupportDil
std::array< float, MAXNUMBERSTEPS > theVolumeXaxis3
std::array< float, MAXNUMBERSTEPS > theStepFinalPt
std::array< float, MAXNUMBERSTEPS > theStepFinalPy
std::array< float, MAXNUMBERSTEPS > theDil
std::array< float, MAXNUMBERSTEPS > theMaterialLambda0
std::array< double, MAXNUMBERSTEPS > theFinalZ
std::array< float, MAXNUMBERSTEPS > theVolumeZ
std::array< int, MAXNUMBERSTEPS > theVolumeID
std::array< float, MAXNUMBERSTEPS > theVolumeY
std::array< float, MAXNUMBERSTEPS > theDmb
std::array< std::string, MAXNUMBERSTEPS > theVolumeName
void dataStartTrack(const G4Track *aTrack)
std::array< float, MAXNUMBERSTEPS > theStepFinalEnergy
std::array< float, MAXNUMBERSTEPS > theH_ScintillatorDmb
std::array< float, MAXNUMBERSTEPS > theStepInitialGamma
std::array< float, MAXNUMBERSTEPS > theSensitiveDmb
std::array< int, MAXNUMBERSTEPS > theMaterialID
std::array< float, MAXNUMBERSTEPS > theElectronicsDmb
std::array< float, MAXNUMBERSTEPS > theVolumeYaxis3
std::array< float, MAXNUMBERSTEPS > theVolumeYaxis2
std::array< float, MAXNUMBERSTEPS > theCoolingDil
std::array< float, MAXNUMBERSTEPS > theH_ScintillatorDil
std::array< float, MAXNUMBERSTEPS > theOtherDil
std::array< float, MAXNUMBERSTEPS > theStepInitialEnergy
std::array< float, MAXNUMBERSTEPS > theElectronicsDil
dbl *** dir
Definition: mlp_gen.cc:35
std::array< float, MAXNUMBERSTEPS > theStainlessSteelDmb
std::array< float, MAXNUMBERSTEPS > theCablesDmb
std::array< float, MAXNUMBERSTEPS > theCopperDil
std::array< std::string, MAXNUMBERSTEPS > theMaterialName
std::array< float, MAXNUMBERSTEPS > theVolumeZaxis3
std::array< float, MAXNUMBERSTEPS > theStepInitialPy
std::array< float, MAXNUMBERSTEPS > theStepFinalPz
std::array< double, MAXNUMBERSTEPS > theInitialX