Ignore:
Timestamp:
Sep 30, 2010, 2:47:17 PM (14 years ago)
Author:
garnier
Message:

tag geant4.9.4 beta 1 + modifs locales

Location:
trunk/examples/extended/electromagnetic/TestEm2/src
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/extended/electromagnetic/TestEm2/src/DetectorConstruction.cc

    r1230 r1337  
    2626//
    2727// $Id: DetectorConstruction.cc,v 1.14 2009/09/16 18:07:30 maire Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929
    3030//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm2/src/DetectorMessenger.cc

    r1230 r1337  
    2525//
    2626// $Id: DetectorMessenger.cc,v 1.8 2006/06/29 16:50:20 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm2/src/EmAcceptance.cc

    r1230 r1337  
    2525//
    2626// $Id: EmAcceptance.cc,v 1.5 2006/06/29 16:50:22 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm2/src/EventAction.cc

    r1230 r1337  
    2424// ********************************************************************
    2525//
    26 // $Id: EventAction.cc,v 1.3 2006/06/29 16:50:24 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     26// $Id: EventAction.cc,v 1.5 2010/06/07 05:40:46 perl Exp $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
     
    3535#include "RunAction.hh"
    3636#include "G4Event.hh"
    37 #include "G4TrajectoryContainer.hh"
    38 #include "G4Trajectory.hh"
    39 #include "G4VVisManager.hh"
    4037#include "G4UnitsTable.hh"
    4138
     
    7168//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
    7269
    73 void EventAction::EndOfEventAction(const G4Event* evt)
     70void EventAction::EndOfEventAction(const G4Event*)
    7471
    7572  Run->fillPerEvent(); 
    76    
    77   if (G4VVisManager::GetConcreteInstance())
    78     {                         
    79      G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();
    80      G4int n_trajectories = 0;
    81      if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
    82      for (G4int i=0; i<n_trajectories; i++)
    83         { G4Trajectory* trj = (G4Trajectory *)
    84                                        ((*(evt->GetTrajectoryContainer()))[i]);
    85           if (drawFlag == "all") trj->DrawTrajectory(50);
    86           else if ((drawFlag == "charged")&&(trj->GetCharge() != 0.))
    87                                   trj->DrawTrajectory(50);
    88         }
    89   }
    9073}
    9174
  • trunk/examples/extended/electromagnetic/TestEm2/src/EventActionMessenger.cc

    r1230 r1337  
    2626//
    2727// $Id: EventActionMessenger.cc,v 1.3 2006/06/29 16:50:26 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030//
  • trunk/examples/extended/electromagnetic/TestEm2/src/PhysListEmStandard.cc

    r1230 r1337  
    2626//
    2727// $Id: PhysListEmStandard.cc,v 1.13 2009/11/13 16:01:10 maire Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm2/src/PhysicsList.cc

    r1230 r1337  
    2525//
    2626// $Id: PhysicsList.cc,v 1.16 2009/09/16 18:07:30 maire Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm2/src/PhysicsListMessenger.cc

    r1230 r1337  
    2525//
    2626// $Id: PhysicsListMessenger.cc,v 1.5 2006/06/29 16:50:41 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm2/src/PrimaryGeneratorAction.cc

    r1230 r1337  
    2525//
    2626// $Id: PrimaryGeneratorAction.cc,v 1.6 2006/06/29 16:50:44 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm2/src/RunAction.cc

    r1230 r1337  
    2424// ********************************************************************
    2525//
    26 // $Id: RunAction.cc,v 1.24 2009/09/16 18:07:30 maire Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     26// $Id: RunAction.cc,v 1.25 2010/02/22 15:41:29 maire Exp $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
     
    143143  histo[3] = hf->createHistogram1D( "4","longit energy profile (% of E inc)",
    144144                                    nLbin,0.,nLbin*dLradl);
     145                                   
     146  histo[4] = hf->createHistogram1D( "5","rms on longit Edep (% of E inc)",
     147                                    nLbin,0.,nLbin*dLradl);
    145148
    146149  G4double Zmin=0.5*dLradl, Zmax=Zmin+nLbin*dLradl;
    147   histo[4] = hf->createHistogram1D( "5","cumul longit energy dep (% of E inc)",
     150  histo[5] = hf->createHistogram1D( "6","cumul longit energy dep (% of E inc)",
    148151                                    nLbin,Zmin,Zmax);
    149 
    150   histo[5] = hf->createHistogram1D( "6","rms on cumul longit Edep (% of E inc)",
     152                                   
     153  histo[6] = hf->createHistogram1D( "7","rms on cumul longit Edep (% of E inc)",
    151154                                    nLbin,Zmin,Zmax);
    152155
    153   histo[6] = hf->createHistogram1D("7","radial energy profile (% of E inc)",
     156  histo[7] = hf->createHistogram1D( "8","radial energy profile (% of E inc)",
    154157                                    nRbin,0.,nRbin*dRradl);
     158                                                                   
     159  histo[8] = hf->createHistogram1D( "9","rms on radial Edep (% of E inc)",
     160                                    nRbin,0.,nRbin*dRradl);         
    155161
    156162  G4double Rmin=0.5*dRradl, Rmax=Rmin+nRbin*dRradl;
    157   histo[7]= hf->createHistogram1D("8","cumul radial energy dep (% of E inc)",
     163  histo[9] = hf->createHistogram1D("10","cumul radial energy dep (% of E inc)",
    158164                                    nRbin,Rmin,Rmax);
    159165
    160   histo[8]= hf->createHistogram1D("9","rms on cumul radial Edep (% of E inc)",
    161                                     nRbin,Rmin,Rmax);
     166  histo[10]= hf->createHistogram1D("11","rms on cumul radial Edep (% of E inc)",
     167                                    nRbin,Rmin,Rmax);               
    162168                                   
    163169 delete hf;
     
    293299      G4double bin = (i+0.5)*dLradl;
    294300      histo[3]->fill(bin,MeanELongit[i]/dLradl);
     301      histo[4]->fill(bin, rmsELongit[i]/dLradl);     
    295302      bin = (i+1)*dLradl;
    296       histo[4]->fill(bin,MeanELongitCumul[i]);
    297       histo[5]->fill(bin, rmsELongitCumul[i]);
     303      histo[5]->fill(bin,MeanELongitCumul[i]);
     304      histo[6]->fill(bin, rmsELongitCumul[i]);
    298305    }
    299306#endif
     
    320327    if(tree) {
    321328      G4double bin = (i+0.5)*dRradl;
    322       histo[6]->fill(bin,MeanERadial[i]/dRradl);
     329      histo[7]->fill(bin,MeanERadial[i]/dRradl);
     330      histo[8]->fill(bin, rmsERadial[i]/dRradl);     
    323331      bin = (i+1)*dRradl;
    324       histo[7]->fill(bin,MeanERadialCumul[i]);
    325       histo[8]->fill(bin, rmsERadialCumul[i]);
     332      histo[9] ->fill(bin,MeanERadialCumul[i]);
     333      histo[10]->fill(bin, rmsERadialCumul[i]);
    326334    }
    327335#endif
  • trunk/examples/extended/electromagnetic/TestEm2/src/RunActionMessenger.cc

    r1230 r1337  
    2525//
    2626// $Id: RunActionMessenger.cc,v 1.4 2006/06/29 16:50:50 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm2/src/StepMax.cc

    r1230 r1337  
    2525//
    2626// $Id: StepMax.cc,v 1.2 2006/06/29 16:50:52 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm2/src/StepMaxMessenger.cc

    r1230 r1337  
    2525//
    2626// $Id: StepMaxMessenger.cc,v 1.2 2006/06/29 16:50:54 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm2/src/SteppingAction.cc

    r1230 r1337  
    2525//
    2626// $Id: SteppingAction.cc,v 1.6 2006/06/29 16:50:57 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm2/src/SteppingVerbose.cc

    r1230 r1337  
    2525//
    2626// $Id: SteppingVerbose.cc,v 1.3 2006/06/29 16:50:59 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm2/src/TrackingAction.cc

    r1230 r1337  
    2525//
    2626// $Id: TrackingAction.cc,v 1.3 2006/06/29 16:51:01 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Note: See TracChangeset for help on using the changeset viewer.