// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // // // // // // Test routine for cerenkov proximity geometry taking into account reflection // // History: // // 07.11.07, V. Grichine #include "G4ios.hh" #include #include #include "globals.hh" #include "Randomize.hh" #include "G4RandomDirection.hh" #include "G4UnitsTable.hh" #include "G4Timer.hh" #include #include "G4Isotope.hh" #include "G4Element.hh" #include "G4Material.hh" #include "G4MaterialCutsCouple.hh" #include "G4Region.hh" #include "G4ProductionCuts.hh" #include "G4RegionStore.hh" #include "G4MaterialTable.hh" #include "G4Box.hh" #include "G4LogicalVolume.hh" #include "G4Cerenkov.hh" #include "G4ParticleDefinition.hh" #include "G4Proton.hh" int main() { G4int i, iMax = 20; // , k, kMax; // G4double energy, refA, refB, gamma, numberBC, numberABC, beta, protonMass, protonMom; std::ofstream writef("PbWO4.dat", std::ios::out ) ; writef.setf( std::ios::scientific, std::ios::floatfield ); /* // Arrays of CMS crystal dimensions, table 3.2 from ECAL TDR G4double cmsAF[17] = { 21.83, 21.83, 21.83, 21.83, 21.83, 21.83, 21.83, 21.83, 21.83, 21.83, 21.83, 21.83, 21.83, 21.83, 21.83, 21.83, 21.83 }; G4double cmsBF[17] = { 23.59, 22.22, 22.34, 22.47, 22.61, 22.60, 22.55, 22.67, 22.82, 23.08, 23.14, 23.29, 23.47, 23.71, 23.88, 24.06, 24.29 }; G4double cmsCF[17] = { 21.85, 21.87, 21.91, 21.94, 21.97, 22.00, 22.03, 22.05, 22.08, 22.10, 22.12, 22.14, 22.15, 22.17, 22.18, 22.20, 22.21 }; G4double cmsAR[17] = { 25.84, 25.81, 25.75, 25.67, 25.56, 25.43, 25.29, 25.14, 24.98, 24.82, 24.65, 24.49, 24.33, 24.17, 24.02, 23.88, 23.74 }; G4double cmsBR[17] = { 25.48, 26.22, 26.28, 26.32, 26.34, 26.18, 25.96, 25.92, 25.90, 26.00, 25.89, 25.86, 25.87, 25.95, 25.96, 25.99, 26.07 }; G4double cmsCR[17] = { 25.86, 25.86, 25.84, 25.80, 25.72, 25.63, 25.52, 25.39, 25.26, 25.12, 24.97, 24.83, 24.68, 24.54, 24.40, 24.27, 24.15 }; iMax = 17; G4double meanAF = 0., meanBF = 0., meanCF = 0., meanAR = 0., meanBR = 0., meanCR = 0.; for(i=0;i= 0; i-- ) { G4cout << photonEnergy[i]/eV << "*eV, " ; // << G4endl; } G4cout<= 0; i-- ) { G4cout << isoRefInd[i] << ", " ; // << G4endl; } G4cout<= 0; i-- ) { G4cout << fastSpectrum[i] << ", " ; // << G4endl; } G4cout<= 0; i-- ) { aCof = alphaCof[i]*0.025/166.5; absLength = 1/aCof; G4cout << absLength << "*cm, " ; // << G4endl; } G4cout<