AIDASoft / DD4hep

Detector Description Toolkit for High Energy Physics
http://dd4hep.cern.ch
GNU Lesser General Public License v3.0
51 stars 100 forks source link

DD4hep output with MarlinDD4hep #984

Closed dudarboh closed 1 year ago

dudarboh commented 2 years ago

Hi all,

Very similar to already raised Issue here: https://github.com/AIDASoft/DD4hep/issues/279

Running DD4hep Marlin processor

    <processor name="InitDD4hep" type="InitializeDD4hep">
        <parameter name="DD4hepXMLFile" type="string">
            /cvmfs/ilc.desy.de/sw/x86_64_gcc82_centos7/v02-02/lcgeo/v00-16-06/ILD/compact/ILD_l5_o1_v02/ILD_l5_o1_v02.xml
        </parameter>
    </processor>

leaves a lot of unwanted verbose output.

Even adding dd4hep::setPrintLevel(dd4hep::WARNING); before

dd4hep::Detector& theDetector = dd4hep::Detector::getInstance();  
theDetector.fromCompact( _dd4hepFileName );

to the MarlinDD4hep processor code still leaves a lot of output:

[ MESSAGE "InitDD4hep"]  -------------------------------------
[ MESSAGE "InitDD4hep"]  ---- Initializing DD4hep from file  /cvmfs/ilc.desy.de/sw/x86_64_gcc82_centos7/v02-02/lcgeo/v00-16-06/ILD/compact/ILD_l5_o1_v02/ILD_l5_o1_v02.xml ... 
Info in <TGeoManager::TGeoManager>: Geometry default, Detector Geometry created
Detector         WARN  +++ Object 'Hcal_endcap_zmin' is already defined and new one will be ignored
Info in <TGeoManager::SetTopVolume>: Top volume is world_volume. Master volume is world_volume
Info in <TGeoNavigator::BuildCache>: --- Maximum geometry depth set to 100
[ VERBOSE "InitDD4hep"]  ############## layer : 0 number of ladders : 10
[ VERBOSE "InitDD4hep"]   ***** place cabling for KaptonLines_00
[ VERBOSE "InitDD4hep"]  layer 0 length of the cone 8.36061 opening angle 0.166196
[ VERBOSE "InitDD4hep"]  kapton:layer 0 v phi 0 o phi 0
[ VERBOSE "InitDD4hep"]  metal:layer 0 v phi 0 o phi 0
[ VERBOSE "InitDD4hep"]  ############## layer : 1 number of ladders : 10
[ VERBOSE "InitDD4hep"] ############## thetaTube = 0.159898
[ VERBOSE "InitDD4hep"]   ***** place ladder 0 for SiActiveLayer_01
[ VERBOSE "InitDD4hep"]   ***** place ladder 1 for SiActiveLayer_01
[ VERBOSE "InitDD4hep"]   ***** place ladder 2 for SiActiveLayer_01
[ VERBOSE "InitDD4hep"]   ***** place ladder 3 for SiActiveLayer_01
[ VERBOSE "InitDD4hep"]   ***** place ladder 4 for SiActiveLayer_01
[ VERBOSE "InitDD4hep"]   ***** place ladder 5 for SiActiveLayer_01
[ VERBOSE "InitDD4hep"]   ***** place ladder 6 for SiActiveLayer_01
[ VERBOSE "InitDD4hep"]   ***** place ladder 7 for SiActiveLayer_01
[ VERBOSE "InitDD4hep"]   ***** place ladder 8 for SiActiveLayer_01
[ VERBOSE "InitDD4hep"]   ***** place ladder 9 for SiActiveLayer_01
[ VERBOSE "InitDD4hep"]  ############## layer : 2 number of ladders : 11
[ VERBOSE "InitDD4hep"]   ***** place cabling for KaptonLines_02
[ VERBOSE "InitDD4hep"]  layer 2 length of the cone 1.96 opening angle 0.33614
[ VERBOSE "InitDD4hep"]  ############## layer : 3 number of ladders : 11
[ VERBOSE "InitDD4hep"]  ############## layer : 4 number of ladders : 17
[ VERBOSE "InitDD4hep"]   ***** place cabling for KaptonLines_04
[ VERBOSE "InitDD4hep"]  layer 4 length of the cone 1.96 opening angle 0.953449
[ VERBOSE "InitDD4hep"]  ############## layer : 5 number of ladders : 17
[ VERBOSE "InitDD4hep"] FTD_Simple_Staggered:    inner support thickness = 0.1   cables thickness = 0.008    2 x cable shield thickness = 0.02   beamTubeClearance = 1.5
[ VERBOSE "InitDD4hep"] FTD_Simple_Staggered: Disk:1     z = 22  inner rad = 3.975   outer rad = 15.2    beamtube rad = 2.475    free space = 1.322
[ VERBOSE "InitDD4hep"] FTD_Simple_Staggered: Disk:2     z = 37.1309     inner rad = 5.0307  outer rad = 15.2    beamtube rad = 3.5307   free space = 1.322
[ VERBOSE "InitDD4hep"] FTD_Simple_Staggered: Disk:3     z = 64.4906     inner rad = 7.05131     outer rad = 29.89   beamtube rad = 5.55131  free space = 1.322
[ VERBOSE "InitDD4hep"] FTD_Simple_Staggered: Disk:4     z = 104.612     inner rad = 10.0069     outer rad = 30.9    beamtube rad = 8.50685  free space = 1.322
[ VERBOSE "InitDD4hep"] FTD_Simple_Staggered: Disk:5     z = 144.733     inner rad = 12.9624     outer rad = 30.9    beamtube rad = 11.4624  free space = 1.322
[ VERBOSE "InitDD4hep"] FTD_Simple_Staggered: Disk:6     z = 184.854     inner rad = 15.9179     outer rad = 30.9    beamtube rad = 14.4179  free space = 1.322
[ VERBOSE "InitDD4hep"] FTD_Simple_Staggered: Disk:7     z = 221.18  inner rad = 18.5939     outer rad = 30.9    beamtube rad = 17.0939  free space = 1.322
[ VERBOSE "InitDD4hep"] SIT_Simple_Pixel: Layer:0    half length = 36.8  sensor length = 9.2     n sensors per ladder = 8    min r sensitive = 15.29     min r support = 15.31   n ladders = 10  ladder width = 9.91604  ladder clearance = 0.01     ladder dphi = 0.628319  sensitive mat = G4_Si   support mat = G4_C  faces_IP = 1    is_SIT1 = 1     is_SIT2 = 0
[ VERBOSE "InitDD4hep"] SIT_Simple_Pixel: Layer:1    half length = 36.8  sensor length = 9.2     n sensors per ladder = 8    min r sensitive = 15.54     min r support = 15.44   n ladders = 10  ladder width = 10.0135  ladder clearance = 0.01     ladder dphi = 0.628319  sensitive mat = G4_Si   support mat = G4_C  faces_IP = 0    is_SIT1 = 0     is_SIT2 = 0
[ VERBOSE "InitDD4hep"] SIT_Simple_Pixel: Layer:2    half length = 64.4  sensor length = 9.2     n sensors per ladder = 14   min r sensitive = 29.99     min r support = 30.01   n ladders = 19  ladder width = 9.98889  ladder clearance = 0.01     ladder dphi = 0.330694  sensitive mat = G4_Si   support mat = G4_C  faces_IP = 1    is_SIT1 = 0     is_SIT2 = 1
[ VERBOSE "InitDD4hep"] SIT_Simple_Pixel: Layer:3    half length = 64.4  sensor length = 9.2     n sensors per ladder = 14   min r sensitive = 30.24     min r support = 30.14   n ladders = 19  ladder width = 10.039   ladder clearance = 0.01     ladder dphi = 0.330694  sensitive mat = G4_Si   support mat = G4_C  faces_IP = 0    is_SIT1 = 0     is_SIT2 = 0
[ VERBOSE "InitDD4hep"] SIT_Simple_Pixel done.
[ VERBOSE "InitDD4hep"] 
[ VERBOSE "InitDD4hep"]  ** building TPC10_geo in lcgeo v00-05
[ VERBOSE "InitDD4hep"]  Cathode Grip Ring Material: SiC_foam : Rad length = 1345.64 mm.
[ VERBOSE "InitDD4hep"] Endplate material mix Density   = 0.000933671 g/cm3
[ VERBOSE "InitDD4hep"] Endplate material mix Radlength = 564.518 mm
[ VERBOSE "InitDD4hep"] TPC10: Inner radius of the gas volume is  354 mm.
[ VERBOSE "InitDD4hep"] TPC10: Outer radius of the gas volume is 1714.8 mm.
[ VERBOSE "InitDD4hep"] TPC10: Inner wall thickness is   25 mm.
[ VERBOSE "InitDD4hep"] TPC10: Outer wall thickness is   55 mm.
[ VERBOSE "InitDD4hep"] TPC10: Outer wall thickness is   55 mm.
[ VERBOSE "InitDD4hep"] TPC10: Inner radius of the sensitive volume is 372.1 mm.
[ VERBOSE "InitDD4hep"] TPC10: Outer radius of the sensitive volume is 1696.7 mm.
[ VERBOSE "InitDD4hep"] TPC10: Number of Pad Rows in the TPC   220
[ VERBOSE "InitDD4hep"] TPC10: Limiting the step length in the TPC to     5 mm.
[ VERBOSE "InitDD4hep"] TPC10: Total Gas material corresponds to 0.117796% of a radiation length.
[ VERBOSE "InitDD4hep"] TPC10: Add Material to Inner Wall: dr =  0.07 mm. Material = G4_Cu X0 = 1.43559  0.00487606% X0
[ VERBOSE "InitDD4hep"] TPC10: Add Material to Inner Wall: dr =  0.05 mm. Material = G4_KAPTON X0 = 28.5747  0.00017498% X0
[ VERBOSE "InitDD4hep"] TPC10: Add Material to Inner Wall: dr =   0.3 mm. Material = g10 X0 = 16.2003  0.00185182% X0
[ VERBOSE "InitDD4hep"] TPC10: Add Material to Inner Wall: dr =  24.22 mm. Material = G4_AIR X0 = 30392  7.96919e-05% X0
[ VERBOSE "InitDD4hep"] TPC10: Add Material to Inner Wall: dr =   0.3 mm. Material = g10 X0 = 16.2003  0.00185182% X0
[ VERBOSE "InitDD4hep"] TPC10: Add Material to Inner Wall: dr =  0.05 mm. Material = G4_KAPTON X0 = 28.5747  0.00017498% X0
[ VERBOSE "InitDD4hep"] TPC10: Add Material to Inner Wall: dr =  0.01 mm. Material = G4_Al X0 = 8.89633  0.000112406% X0
[ VERBOSE "InitDD4hep"] TPC10: Inner wall material corresponds to 0.9% of a radiation length.
[ VERBOSE "InitDD4hep"] TPC10: Inner wall effective X0 = 274.07
[ VERBOSE "InitDD4hep"] TPC10: Add Material to Outer Wall: dr =  0.03 mm. Material = G4_Al X0 = 8.89633  0.000337218% X0
[ VERBOSE "InitDD4hep"] TPC10: Add Material to Outer Wall: dr =  0.15 mm. Material = G4_KAPTON X0 = 28.5747  0.000524939% X0
[ VERBOSE "InitDD4hep"] TPC10: Add Material to Outer Wall: dr =   0.9 mm. Material = g10 X0 = 16.2003  0.00555547% X0
[ VERBOSE "InitDD4hep"] TPC10: Add Material to Outer Wall: dr =  52.66 mm. Material = G4_AIR X0 = 30392  0.000173269% X0
[ VERBOSE "InitDD4hep"] TPC10: Add Material to Outer Wall: dr =   0.9 mm. Material = g10 X0 = 16.2003  0.00555547% X0
[ VERBOSE "InitDD4hep"] TPC10: Add Material to Outer Wall: dr =  0.15 mm. Material = G4_KAPTON X0 = 28.5747  0.000524939% X0
[ VERBOSE "InitDD4hep"] TPC10: Add Material to Outer Wall: dr =  0.21 mm. Material = G4_Cu X0 = 1.43559  0.0146282% X0
[ VERBOSE "InitDD4hep"] TPC10: Outer wall material corresponds to 2.7% of a radiation length.
[ VERBOSE "InitDD4hep"] TPC10: Outer wall effective X0 = 201.469
[ VERBOSE "InitDD4hep"] Cathode dz = 0.0046
[ VERBOSE "InitDD4hep"] Place cathode +z at 0.0023
[ VERBOSE "InitDD4hep"] Place cathode -z at -0.0023
[ VERBOSE "InitDD4hep"] TPC10: Readout material corresponds to 6.9% of a radiation length.
[ VERBOSE "InitDD4hep"] TPC10: Total Endplate material corresponds to 8.68633% of a radiation length.
[ VERBOSE "InitDD4hep"] SET_Simple_Planar: Layer:0   half length = 230   sensor length = 9.2     n sensors per ladder = 50   min r sensitive = 177.27    min r support = 177.29  n ladders = 24  ladder width = 46.6561  ladder clearance = 0.01     ladder dphi = 0.261799  sensitive mat = G4_Si   support mat = G4_C  faces_IP = 1
[ VERBOSE "InitDD4hep"] SET_Simple_Planar: Layer:1   half length = 230   sensor length = 9.2     n sensors per ladder = 50   min r sensitive = 177.52    min r support = 177.42  n ladders = 24  ladder width = 46.6956  ladder clearance = 0.01     ladder dphi = 0.261799  sensitive mat = G4_Si   support mat = G4_C  faces_IP = 0
[ VERBOSE "InitDD4hep"] SET_Simple_Planar done.
[ VERBOSE "InitDD4hep"] 
[ VERBOSE "InitDD4hep"] -----------------------
[ VERBOSE "InitDD4hep"] creating SEcal06_Barrel
[ VERBOSE "InitDD4hep"] -----------------------
[ VERBOSE "InitDD4hep"] SEcal06_Barrel: Preshower ? 0
[ VERBOSE "InitDD4hep"] SEcal06_Barrel: absorber layers 20*2.1 mm + 10*4.2 mm + 0*0 mm 
[ VERBOSE "InitDD4hep"] SEcal06_Barrel : module thickness = 22.32
[ VERBOSE "InitDD4hep"] SEcal06_Barrel : layer config: 0 
[ VERBOSE "InitDD4hep"] SEcal06_Barrel : width of module, alveolus = 94 18.736
[ VERBOSE "InitDD4hep"] ------------------------
[ VERBOSE "InitDD4hep"] creating SEcal06_Endcaps
[ VERBOSE "InitDD4hep"] ------------------------
[ VERBOSE "InitDD4hep"] Preshower ? 0
[ VERBOSE "InitDD4hep"] absorber layers 20*0.21mm + 10*0.42mm + 0*0mm 
[ VERBOSE "InitDD4hep"] module thickness = 22.32
[ VERBOSE "InitDD4hep"] layer config: 0 
[ VERBOSE "InitDD4hep"] ECAL endcap tower configuration 3 3 3 : 3 3 3 
[ VERBOSE "InitDD4hep"] alveolus width = 18.736
[ VERBOSE "InitDD4hep"] ---------------------------------
[ VERBOSE "InitDD4hep"]  creating Ecal ECRing ( SEcal05_ECRing ) 
[ VERBOSE "InitDD4hep"] ---------------------------------
[ VERBOSE "InitDD4hep"]  ######### dd4hep::DDSegmentation::TiledLayerGridXY() 
[ VERBOSE "InitDD4hep"] 
[ VERBOSE "InitDD4hep"]  HcalEndcap_inner_radius = 350 mm
[ VERBOSE "InitDD4hep"]  HcalEndcap_outer_radius = 3225.54 mm
[ VERBOSE "InitDD4hep"]  HcalEndcap_min_z = 2650 mm
[ VERBOSE "InitDD4hep"]  HcalEndcap_max_z = 3937 mm
[ VERBOSE "InitDD4hep"]  
[ VERBOSE "InitDD4hep"] 
[ VERBOSE "InitDD4hep"] 
[ VERBOSE "InitDD4hep"]  CREATE DETECTOR: SHcalSC04_EndcapRing_v01
[ VERBOSE "InitDD4hep"]     HCAL endcap rings: HcalEndcapRing_inner_radius: 214.584
[ VERBOSE "InitDD4hep"]     HCAL endcap rings: HcalEndcapRing_outer_radius: 298.001
[ VERBOSE "InitDD4hep"]     HCAL endcap rings: HcalEndcapRing_min_z:  241.18
[ VERBOSE "InitDD4hep"]     HCAL endcap rings: HcalEndcapRing_max_z:  263.5
[ VERBOSE "InitDD4hep"]     HCAL endcap rings: SpaceForLayers:  20.82
[ VERBOSE "InitDD4hep"]     HCAL endcap rings will have 7 layers.
[ VERBOSE "InitDD4hep"]  Build the yoke within this dimension 
[ VERBOSE "InitDD4hep"]   ...Yoke  db: symmetry             12
[ VERBOSE "InitDD4hep"]   ...Yoke  db: rInnerBarrel         447.504
[ VERBOSE "InitDD4hep"]   ...Yoke  db: zStartEndcap         407.2
[ VERBOSE "InitDD4hep"]   ...Muon  db: iron_thickness       10
[ VERBOSE "InitDD4hep"]   ...Muon  db: gap_thickness        4
[ VERBOSE "InitDD4hep"]   ...Muon  db: number_of_layers     10
[ VERBOSE "InitDD4hep"]   ...Muon par: yokeBarrelThickness  324.1
[ VERBOSE "InitDD4hep"]   ...Muon par: Barrel_half_z        404.7
[ VERBOSE "InitDD4hep"]  Build the yoke within this dimension 
[ VERBOSE "InitDD4hep"]   ...Yoke  db: symmetry             12
[ VERBOSE "InitDD4hep"]   ...Yoke  db: rInnerEndcap         35
[ VERBOSE "InitDD4hep"]   ...Yoke  db: rOuterEndcap         771.604
[ VERBOSE "InitDD4hep"]   ...Yoke  db: zStartEndcap         407.2
[ VERBOSE "InitDD4hep"]   ...Muon  db: iron_thickness       10
[ VERBOSE "InitDD4hep"]   ...Muon  db: gap_thickness        4
[ VERBOSE "InitDD4hep"]   ...Muon  db: number_of_layers     10
[ VERBOSE "InitDD4hep"]   ...Muon par: yokeEndcapThickness  264
[ VERBOSE "InitDD4hep"]   ...Muon par: Barrel_half_z        404.7
[ VERBOSE "InitDD4hep"]   ...Plug par: build_plug is true, there is space to build yoke plug
[ VERBOSE "InitDD4hep"]   ...Plug par: HCAL_half_z          393.7
[ VERBOSE "InitDD4hep"]   ...Plug par: HCAL_Plug_Gap        4.5
[ VERBOSE "InitDD4hep"]   ...Plug par: Plug Thickness       9
[ VERBOSE "InitDD4hep"]   ...Plug par: Plug Radius          339.554
[ VERBOSE "InitDD4hep"] dd4hep::Ref_t create_detector(dd4hep::Detector&, xml_h, dd4hep::SensitiveDetector)
[ VERBOSE "InitDD4hep"] 
[ VERBOSE "InitDD4hep"]  Here is my LumiCal_o1_v03 :
[ VERBOSE "InitDD4hep"] ----------------------------
[ VERBOSE "InitDD4hep"]  The crossing angle is:  0.014 radian
[ VERBOSE "InitDD4hep"]      Lcal z-begin : 2411.8 mm
[ VERBOSE "InitDD4hep"]      Lcal z-end   : 2540.5 mm
[ VERBOSE "InitDD4hep"]    (x,y,z)-center : ( 17.3333,0 ,+- 2476.15 ) mm
[ VERBOSE "InitDD4hep"]      sensorInnerR : 84.0221 mm
[ VERBOSE "InitDD4hep"]      sensorouterR : 194 mm
[ VERBOSE "InitDD4hep"]         thickness : 128.7 mm
[ VERBOSE "InitDD4hep"]           cell_dR : 1.71841 mm
[ VERBOSE "InitDD4hep"]         cell_dPhi : 0.1309  radian
[ VERBOSE "InitDD4hep"]        offset Phi : 3.75 deg
[ VERBOSE "InitDD4hep"]     stagger angle : 3.75 deg
[ VERBOSE "InitDD4hep"]     tile gap size : 2.4 mm
[ VERBOSE "InitDD4hep"]     tile span phi : 30 deg
[ VERBOSE "InitDD4hep"]    services space : 46.914 mm
[ VERBOSE "InitDD4hep"]   Layer thickness : 4.29   ( rad. length X0:  0.895844 )
[ VERBOSE "InitDD4hep"]    LumiCal length : 128.7 ( rad. length X0: 26.8753   )
[ VERBOSE "InitDD4hep"] -----------------------------------------------------------------
[ VERBOSE "InitDD4hep"] 
[ VERBOSE "InitDD4hep"] dd4hep::Ref_t create_detector(dd4hep::Detector&, xml_h, dd4hep::SensitiveDetector)
[ VERBOSE "InitDD4hep"] Here is my LHCal_v01
[ VERBOSE "InitDD4hep"]  --------------------------------------------------------------------------
[ VERBOSE "InitDD4hep"]  Building detector: LHCal
[ VERBOSE "InitDD4hep"]  - Main crossing angle: 0.014 radian
[ VERBOSE "InitDD4hep"]  - LHCal begin Z         2680 mm
[ VERBOSE "InitDD4hep"]  - LHCal end Z           3160 mm
[ VERBOSE "InitDD4hep"]  - LHCal center (X,Y,Z)  ( 20.4403,0 ,2920 ) mm
[ VERBOSE "InitDD4hep"]  - LHCal inner R         130 mm
[ VERBOSE "InitDD4hep"]  - LHCal thickness       480 mm
[ VERBOSE "InitDD4hep"]  - Layer Thickness 16 mm
[ VERBOSE "InitDD4hep"]  -            Total Length: 480 mm
[ VERBOSE "InitDD4hep"]  - Total Interacion Length: 3.91193
[ VERBOSE "InitDD4hep"]  --------------------------------------------------------------------------
[ VERBOSE "InitDD4hep"] This is the BeamCal
[ VERBOSE "InitDD4hep"] Building all.
[ VERBOSE "InitDD4hep"]  The crossing angle is: 0.014 radian
[ VERBOSE "InitDD4hep"] bcalCutOutSpan  785.398 mrad
[ VERBOSE "InitDD4hep"] bcalCutOutSpan  45 degree
[ VERBOSE "InitDD4hep"] bcalCutOutStart 2.74889 Radian
[ VERBOSE "InitDD4hep"] bcalCutOutEnd   3.53429 Radian
[ VERBOSE "InitDD4hep"] incommingBeamPipeRadius: 1.6 cm
[ VERBOSE "InitDD4hep"] cutOutRadius: 6.45257 cm 
[ VERBOSE "InitDD4hep"] Total Length 20.0024 cm
[ VERBOSE "InitDD4hep"] Layer Thickness 8.40008 cm
[ VERBOSE "InitDD4hep"] Total Length 20.0024 cm
[ VERBOSE "InitDD4hep"] Layer Thickness 0.40008 cm
[ VERBOSE "InitDD4hep"] 
[ VERBOSE "InitDD4hep"] Building Coil...
[ VERBOSE "InitDD4hep"] 
[ VERBOSE "InitDD4hep"] ... cryostat inner_radius 342.514
[ VERBOSE "InitDD4hep"] ... cryostat outer_radius 417.494
[ VERBOSE "InitDD4hep"] ... cryostat half_z       387.19
[ VERBOSE "InitDD4hep"]  ... for the time being simply use a tube of aluminum ...
[ VERBOSE "InitDD4hep"] SCoil02 done.
[ VERBOSE "InitDD4hep"] 
[ VERBOSE "InitDD4hep"] 
[ VERBOSE "InitDD4hep"] Building SServices00
[ VERBOSE "InitDD4hep"] 
[ VERBOSE "InitDD4hep"]  Ecal_inner_radius: 180.48
[ VERBOSE "InitDD4hep"]  Ecal_outer_radius: 202.8
[ VERBOSE "InitDD4hep"]   module_thickness: 22.32
[ VERBOSE "InitDD4hep"]       bottom_dim_x: 181.08
[ VERBOSE "InitDD4hep"]          top_dim_x: 136.44
[ VERBOSE "InitDD4hep"]         RailHeight: 3
[ VERBOSE "InitDD4hep"] 
[ VERBOSE "InitDD4hep"] 
[ VERBOSE "InitDD4hep"]    - HcalServicesModule_InnerServicesWidth = 20
[ VERBOSE "InitDD4hep"]    - HcalServicesModule_ZMinus_Cu_Thickness = 0.82
[ VERBOSE "InitDD4hep"]    - HcalServicesModule_ZMinus_PE_Thickness = 2.75
[ VERBOSE "InitDD4hep"]    - HcalServicesModule_ZMinus_StainlessSteel_Thickness = 1.5
[ VERBOSE "InitDD4hep"]    - HcalServicesModule_ZPlus_Cu_Thickness = 0.74
[ VERBOSE "InitDD4hep"]    - HcalServicesModule_ZPlus_PE_Thickness = 2.56
[ VERBOSE "InitDD4hep"]    - HcalServicesModule_ZPlus_StainlessSteel_Thickness = 1.5
[ VERBOSE "InitDD4hep"]    - HcalServices_outer_Cu_thickness = 0.04
[ VERBOSE "InitDD4hep"]    - HcalServices_outer_FR4_thickness = 0.28
[ VERBOSE "InitDD4hep"]    - Hcal_R_max = 339.554
[ VERBOSE "InitDD4hep"]    - Hcal_back_plate_thickness = 1.5
[ VERBOSE "InitDD4hep"]    - Hcal_nlayers = 48
[ VERBOSE "InitDD4hep"]    - Hcal_radiator_thickness = 2
[ VERBOSE "InitDD4hep"]    - Hcal_stave_gaps = 1
[ VERBOSE "InitDD4hep"]    - Hcal_steel_cassette_thickness = 0.05
[ VERBOSE "InitDD4hep"]    - BuildHcalElectronicsInterface = true 
[ VERBOSE "InitDD4hep"] 
[ VERBOSE "InitDD4hep"]    - SIT Cone Cable services: 
[ VERBOSE "InitDD4hep"]    - zPlane[0] = 37.401
[ VERBOSE "InitDD4hep"]    - zPlane[1] = 63.9506
[ VERBOSE "InitDD4hep"]    - rInner[0] = 15.3
[ VERBOSE "InitDD4hep"]    - rInner[1] = 29.89
[ VERBOSE "InitDD4hep"]    - rOuter[0] = 15.304
[ VERBOSE "InitDD4hep"]    - rOuter[1] = 29.892
[ VERBOSE "InitDD4hep"] 
[ VERBOSE "InitDD4hep"]    - SIT12_cable_thickness = 0.0063
[ VERBOSE "InitDD4hep"]    - SIT1_Radius = 15.3
[ VERBOSE "InitDD4hep"]    - SIT2_Radius = 29.99
[ VERBOSE "InitDD4hep"]    - SServices_FTD2_cone_thickness = 0.004
[ VERBOSE "InitDD4hep"]    - SServices_FTD3_cone_thickness = 0.002
[ VERBOSE "InitDD4hep"]    - TUBE_IPOuterBulge_end_z = 239.18
[ VERBOSE "InitDD4hep"]    - SServices_FTD7_cables_thickness = 0.085
[ VERBOSE "InitDD4hep"] 
[ VERBOSE "InitDD4hep"]    - VXD_cable_cross_section_area = 25 mm^2
[ VERBOSE "InitDD4hep"]    - VXD_cable_inner1_radius = 30 mm
[ VERBOSE "InitDD4hep"]    - VXD_cable_inner2_radius = 27 mm
[ VERBOSE "InitDD4hep"]    - VXD_cable_cone_middle_thickness = 0.139269 mm
[ VERBOSE "InitDD4hep"]    - VXD_cable_outer1_radius = 30.1393 mm
[ VERBOSE "InitDD4hep"]    - VXD_cable_outer2_radius = 27.1393 mm
[ VERBOSE "InitDD4hep"]    - VXD_cable_z_start = 177.7 mm
[ VERBOSE "InitDD4hep"]    - VXD_cable_z_end = 230 mm
Info in <TGeoManager::CheckGeometry>: Fixing runtime shapes...
Info in <TGeoManager::CheckGeometry>: ...Nothing to fix
Info in <TGeoManager::CloseGeometry>: Counting nodes...
Info in <TGeoManager::Voxelize>: Voxelizing...
Info in <TGeoManager::CloseGeometry>: Building cache...
Info in <TGeoManager::CountLevels>: max level = 5, max placements = 440
Info in <TGeoManager::CloseGeometry>: 709183 nodes/ 9222 volume UID's in Detector Geometry
Info in <TGeoManager::CloseGeometry>: ----------------modeler ready----------------
[ MESSAGE "InitDD4hep"]  ---- instantiated  geometry for detector ILD_l5_o1_v02
[ MESSAGE "InitDD4hep"]  -------------------------------------

Is there a way to reduce it?

Its quite hard for me to understand where does this output comes from... I could track only a single line and its seems just a straight std::cout. Is it case for every line?

https://github.com/AIDASoft/DD4hep/blob/f5df9f743c523c62f5b8517a08fc771704c9e98d/DDCore/src/segmentations/TiledLayerGridXY.cpp#L27

Could it be put into through the Printout(DEBUG, ...)?

dudarboh commented 2 years ago

Also, I think NOLOG and ALWAYS should be swapped names :)

Right now they do completely the opposite. NOLOG - print everything and ALWAYS - print nothing

https://github.com/AIDASoft/DD4hep/blob/f7775644930f27f80c63b5185feed964d60d90a7/DDCore/include/Parsers/Printout.h#L39-L48

andresailer commented 2 years ago

Hi @dudarboh Yes, I would guess these are all using cout, and they are mostly in lcgeo, e.g. https://github.com/iLCSoft/lcgeo/blob/master/detector/calorimeter/SEcal06_Endcaps.cpp

MarkusFrankATcernch commented 1 year ago

Hi @dudarboh , since this is unlikely a DD4hep issue, but rather a lcgeo one: can this issue be closed ? If yes, please close.

dudarboh commented 1 year ago

@MarkusFrankATcernch,

I will close this issue, as indeed, most of them are in the lcgeo,

However, there are still few std::cout in the dd4hep as well, which would be also nice to wrap in Printout():

E.g. https://github.com/AIDASoft/DD4hep/blob/f5df9f743c523c62f5b8517a08fc771704c9e98d/DDCore/src/segmentations/TiledLayerGridXY.cpp#L49

But I don't think we need a separate issue for few couts.

cheers