BFC chain with AgML,dev13

comparison material in StiPixelDetectorBuilder

I've printed out the material defined for the active pixel, as defined in upgr15 and dev13 ; the reason was this crash when running BFC chain with dev13 : here

upgr15 :

StiMaker:DEBUG - ===>NEW:PIXEL:pDetector:Name               = HALL_1/CAVE_1/PXMO_1/PXL1_2/PLM1_22/PLA1_1

StiMaker:DEBUG - ===>NEW:PIXEL:pPlacement:NormalRefAngle    = -96

StiMaker:DEBUG - ===>NEW:PIXEL:pPlacement:NormalRadius      = 8

StiMaker:DEBUG - ===>NEW:PIXEL:pPlacement:NormalYoffset     = 9.50049e-07

StiMaker:DEBUG - ===>NEW:PIXEL:pPlacement:CenterRefAngle    = -96

StiMaker:DEBUG - ===>NEW:PIXEL:pPlacement:CenterRadius      = 8

StiMaker:DEBUG - ===>NEW:PIXEL:pPlacement:CenterOrientation = 6.80423e-06

StiMaker:DEBUG - ===>NEW:PIXEL:pPlacement:LayerRadius       = 8

StiMaker:DEBUG - ===>NEW:PIXEL:pPlacement:LayerAngle        = -96

StiMaker:DEBUG - ===>NEW:PIXEL:pPlacement:Zcenter           = 0

StiMaker:DEBUG - ===>NEW:PIXEL:pDetector:Layer              = 2

StiMaker:DEBUG - ===>NEW:PIXEL:pDetector:Ladder             = 22

StiMaker:DEBUG - ===>NEW:PIXEL:pDetector:Active?            = 1

StiMaker:DEBUG - ===>NEW:PIXEL:pDetector:Material:name      = PIXL_SENSITIVE_PLAC

StiMaker:DEBUG - ===>NEW:PIXEL:pDetector:Material:rad       = 21.7881

StiMaker:DEBUG - ===>NEW:PIXEL:pDetector:Material:X0        = 9.35111

StiMaker:DEBUG - ===>NEW:PIXEL:pDetector:Material:density   = 2.33

dev13 :

 StiMaker:DEBUG - ===>NEW:PIXEL:pDetector:Name               = HALL_1/CAVE_1/IDSM_1/PXMO_1/PXLA_1/PLAC_1

StiMaker:DEBUG - ===>NEW:PIXEL:pPlacement:NormalRefAngle    = 79.963

StiMaker:DEBUG - ===>NEW:PIXEL:pPlacement:NormalRadius      = 7.84251

StiMaker:DEBUG - ===>NEW:PIXEL:pPlacement:NormalYoffset     = 2.52716

StiMaker:DEBUG - ===>NEW:PIXEL:pPlacement:CenterRefAngle    = 97.824

StiMaker:DEBUG - ===>NEW:PIXEL:pPlacement:CenterRadius      = 8.23963

StiMaker:DEBUG - ===>NEW:PIXEL:pPlacement:CenterOrientation = 17.861

StiMaker:DEBUG - ===>NEW:PIXEL:pPlacement:LayerRadius       = 8.23963

StiMaker:DEBUG - ===>NEW:PIXEL:pPlacement:LayerAngle        = 97.824

StiMaker:DEBUG - ===>NEW:PIXEL:pPlacement:Zcenter           = 0

StiMaker:DEBUG - ===>NEW:PIXEL:pDetector:Layer              = 1

StiMaker:DEBUG - ===>NEW:PIXEL:pDetector:Ladder             = 1

StiMaker:DEBUG - ===>NEW:PIXEL:pDetector:Active?            = 1

StiMaker:DEBUG - ===>NEW:PIXEL:pDetector:Material:name      = PixlGeo4_Silicon_PLAC

StiMaker:DEBUG - ===>NEW:PIXEL:pDetector:Material:rad       = 21.7881

StiMaker:DEBUG - ===>NEW:PIXEL:pDetector:Material:X0        = 9.35111

StiMaker:DEBUG - ===>NEW:PIXEL:pDetector:Material:density   = 2.33

StiMaker:INFO  - Setting detector normal angle: 1.60506

 

current issue : Hits are loaded from StPixelHitLoader but tracking does not take them into account and sometimes crashes.

in StPixelDetectorBuilder.cxx :

 Bool_t ActiveVolume = kFALSE;

  if (nodeP->GetVolume()->GetMedium()->GetParam(0) == 1) {

    ActiveVolume = kTRUE;

}

always return kFALSE. nodeP is a TGeoPhysicalVolume and the pointer here refers to TGeoMedium class :

Media are used to store properties related to tracking and which are useful
 only when using geometry with a particle transport MC package (via VMC). One
 may define several tracking media for a given material. The media ID are user
 defined values that are not used by the geometry package. In case geometry
 is used via VMC (in GEANT) these numbers are overwritten, so one can only
 rely on these values after gMC->FinishGeometry() is called.
 The media parameters are inspired from GEANT3 and the values defined make sense
 in context of GEANT (3 but also 4) or FLUKA interfaces.