Ignore:
Timestamp:
Jan 8, 2010, 3:02:48 PM (14 years ago)
Author:
garnier
Message:

update to geant4.9.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/advanced/xray_fluorescence/src/XrayFluoDetectorConstruction.cc

    r807 r1230  
    5959
    6060
    61 #include "G4Region.hh"
    62 #include "G4RegionStore.hh"
     61//#include "G4Region.hh"
     62//#include "G4RegionStore.hh"
    6363
    6464//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
     
    6666
    6767XrayFluoDetectorConstruction::XrayFluoDetectorConstruction()
    68   : detectorType(0),sampleGranularity(false), phaseSpaceFlag(false),
     68  : aNavigator(0), detectorType(0),sampleGranularity(false), phaseSpaceFlag(false),
    6969    DeviceSizeX(0), DeviceSizeY(0),DeviceThickness(0),
    7070    solidWorld(0),logicWorld(0),physiWorld(0),
     
    8383{
    8484  materials = XrayFluoNistMaterials::GetInstance();
     85
     86  aNavigator = new G4Navigator();
    8587 
    8688  DefineDefaultMaterials();
     
    8991  NbOfPixelColumns  =  1; // should be 1
    9092  NbOfPixels        =  NbOfPixelRows*NbOfPixelColumns;
    91   PixelSizeXY       =  std::sqrt(40.) * mm; // should be std::sqrt(40) * mm
     93  PixelSizeXY       =  7 * cm;// should be std::sqrt(40) * mm
    9294  PixelThickness = 3.5 * mm; //should be 3.5 mm
    9395
     
    9597  G4cout << "PixelSizeXY(cm): "<< PixelSizeXY/cm << G4endl;
    9698
    97   ContactSizeXY     = std::sqrt(40.) * mm; //std::sqrt(40) * mm; //should be the same as PixelSizeXY
     99  ContactSizeXY     = PixelSizeXY; //std::sqrt(40) * mm; //should be the same as PixelSizeXY
    98100  SampleThickness = 4 * mm;
    99101  SampleSizeXY = 3. * cm;
     
    132134  ComputeApparateParameters();
    133135
    134   G4String regName = "SampleRegion";
    135   sampleRegion = new G4Region(regName); 
     136  // G4String regName = "SampleRegion";
     137  //sampleRegion = new G4Region(regName); 
    136138
    137139  if (!phaseSpaceFlag) SetDetectorType(defaultDetectorType);
     
    205207  //define materials of the apparate
    206208
    207   sampleMaterial = materials->GetMaterial("Mars1");
     209  sampleMaterial = materials->GetMaterial("Dolorite");
    208210  Dia1Material = materials->GetMaterial("G4_Pb");
    209211  Dia3Material = materials->GetMaterial("Galactic");
    210   pixelMaterial = materials->GetMaterial("G4_Si");
    211   OhmicPosMaterial = materials->GetMaterial("G4_Cu");
     212  pixelMaterial = materials->GetMaterial("SiLi");
     213  //pixelMaterial = materials->GetMaterial(detectorType->GetDetectorMaterial());
     214  OhmicPosMaterial = materials->GetMaterial("Cu");
    212215  OhmicNegMaterial = materials->GetMaterial("G4_Pb");
    213216  defaultMaterial = materials->GetMaterial("Galactic");
     
    246249  //ComputeApparateParameters();
    247250 
    248   //world
     251  //world and associated navigator
    249252 
    250253  solidWorld = new G4Box("World",                               //its name
     
    261264                                 false,                 //no boolean operation
    262265                                 0);                    //copy number
     266
     267  aNavigator->SetWorldVolume(physiWorld);
     268
    263269 
    264270  //HPGeDetector
     
    378384          PixelCopyNb += PixelCopyNb;
    379385          G4cout << "PixelCopyNb: " << PixelCopyNb << G4endl;
    380       }
     386        }
    381387     
    382388      }
     
    611617  // cut per region
    612618 
    613   logicSample->SetRegion(sampleRegion);
    614   sampleRegion->AddRootLogicalVolume(logicSample);
     619  //logicSample->SetRegion(sampleRegion);
     620  //sampleRegion->AddRootLogicalVolume(logicSample);
    615621 
    616622
     
    758764
    759765
    760     G4cout << "Material Change in Progress" << newMaterial << G4endl;
     766    G4cout << "Material Change in Progress " << newMaterial << G4endl;
    761767    sampleMaterial = materials->GetMaterial(newMaterial);
    762768    logicSample->SetMaterial(sampleMaterial);
Note: See TracChangeset for help on using the changeset viewer.