Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/physics_lists/builders/src/G4OpticalPhysicsMessenger.cc

    r1203 r1340  
    5555    fSetCerenkovMaxBetaChangeCmd(0),
    5656    fSetScintillationYieldFactorCmd(0),
     57    fSetScintillationByParticleTypeCmd(0),
    5758    fSetOpticalSurfaceModelCmd(0),
    5859    fSetWLSTimeProfileCmd(0),
     
    105106  fSetScintillationYieldFactorCmd->SetRange("ScintillationYieldFactor>=0");
    106107  fSetScintillationYieldFactorCmd->AvailableForStates(G4State_Idle,G4State_GeomClosed,G4State_EventProc);
     108
     109  fSetScintillationByParticleTypeCmd
     110   = new G4UIcmdWithABool("/optics_engine/setScintillationByParticleType", this);
     111  fSetScintillationByParticleTypeCmd->SetGuidance("Activate/Inactivate scintillation process by particle type");
     112  fSetScintillationByParticleTypeCmd->SetParameterName("ScintillationByParticleTypeActivation", false);
     113  fSetScintillationByParticleTypeCmd->AvailableForStates(G4State_Idle,G4State_GeomClosed,G4State_EventProc);
    107114
    108115  fSetOpticalSurfaceModelCmd
     
    141148  delete fSetCerenkovMaxBetaChangeCmd;
    142149  delete fSetScintillationYieldFactorCmd;
     150  delete fSetScintillationByParticleTypeCmd;
    143151  delete fSetOpticalSurfaceModelCmd;
    144152  delete fSetWLSTimeProfileCmd;
     
    160168    else if ( newValue == "OpRayleigh" )    fSelectedProcess = fOpticalPhysics->
    161169                                            GetOpRayleighProcess();
     170    else if ( newValue == "OpMieHG" )       fSelectedProcess = fOpticalPhysics->
     171                                            GetOpMieHGProcess();
    162172    else if ( newValue == "OpBoundary" )    fSelectedProcess = fOpticalPhysics->
    163173                                            GetOpBoundaryProcess();
     
    208218      ->SetScintillationYieldFactor(
    209219          fSetScintillationYieldFactorCmd->GetNewDoubleValue(newValue));
    210   } 
     220  }
     221  else if (command == fSetScintillationByParticleTypeCmd) {
     222    fOpticalPhysics
     223      ->SetScintillationByParticleType(
     224         fSetScintillationByParticleTypeCmd->GetNewBoolValue(newValue));
     225  }
    211226  else if (command == fSetOpticalSurfaceModelCmd) {
    212227    if ( newValue == "glisur" ) {
Note: See TracChangeset for help on using the changeset viewer.