Changeset 1337 for trunk/examples/advanced/Rich
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- Location:
- trunk/examples/advanced/Rich/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/advanced/Rich/src/RichTbEventAction.cc
r807 r1337 120 120 // << " hits are stored in RichTbHitsCollection." << G4endl; 121 121 } 122 if(RConfig->getRichTbDrawTrajectory() > 0)123 {124 for (G4int i=0; i<n_trajectories; i++)125 {126 (*(evt->GetTrajectoryContainer()))[i]->DrawTrajectory();127 }128 }129 130 //now for the hits.131 132 if(RHC)133 {134 G4int n_hith = RHC->entries();135 for (G4int ih=0; ih<n_hith; ih++ )136 {137 RichTbHit* aHit = (*RHC)[ih];138 aHit->DrawWithVisM(pVisManager);139 }140 }141 122 142 123 //Now to Fill the Histograms -
trunk/examples/advanced/Rich/src/RichTbPhysicsList.cc
r807 r1337 161 161 #include "G4PhotoElectricEffect.hh" 162 162 163 #include "G4MultipleScattering.hh" 163 // A.R. 31-Mar-2010 : Replaced obsolete G4MultipleScattering with: 164 // - G4eMultipleScattering for e+ and e-; 165 // - G4MuMultipleScattering for mu+ and mu-; 166 // - G4hMultipleScattering for hadrons and ions. 167 //#include "G4MultipleScattering.hh" 168 #include "G4eMultipleScattering.hh" 169 #include "G4MuMultipleScattering.hh" 170 #include "G4hMultipleScattering.hh" 164 171 165 172 #include "G4eIonisation.hh" … … 188 195 189 196 if (particleName == "gamma") { 190 // gamma191 197 // Construct processes for gamma 192 198 pmanager->AddDiscreteProcess(new G4GammaConversion()); … … 195 201 196 202 } else if (particleName == "e-") { 197 //electron198 203 //Construct processes for electron 199 pmanager->AddProcess(new G4MultipleScattering(),-1,1,1); 204 //A.R. 31-Mar-2010 : replaced G4MultipleScattering with G4eMultipleScattering. 205 pmanager->AddProcess(new G4eMultipleScattering(),-1,1,1); 200 206 pmanager->AddProcess(new G4eIonisation(),-1,2,2); 201 207 pmanager->AddProcess(new G4eBremsstrahlung(),-1,-1,3); 202 208 203 209 } else if (particleName == "e+") { 204 //positron205 210 // Construct processes for positron 206 pmanager->AddProcess(new G4MultipleScattering(),-1,1,1); 211 // A.R. 31-Mar-2010 : replaced G4MultipleScattering with G4eMultipleScattering. 212 pmanager->AddProcess(new G4eMultipleScattering(),-1,1,1); 207 213 pmanager->AddProcess(new G4eIonisation(),-1,2,2); 208 214 pmanager->AddProcess(new G4eBremsstrahlung(),-1,-1,3); … … 210 216 211 217 } else if( particleName == "mu+" || 212 213 //muon214 // Construct processes for muon215 pmanager->AddProcess(new G4Mu ltipleScattering(),-1,1,1);218 particleName == "mu-" ) { 219 // Construct processes for muon 220 // A.R. 31-Mar-2010 : replaced G4MultipleScattering with G4MuMultipleScattering. 221 pmanager->AddProcess(new G4MuMultipleScattering(),-1,1,1); 216 222 pmanager->AddProcess(new G4MuIonisation(),-1,2,2); 217 223 pmanager->AddProcess(new G4MuBremsstrahlung(),-1,-1,3); … … 221 227 if ((particle->GetPDGCharge() != 0.0) && 222 228 (particle->GetParticleName() != "chargedgeantino")) { 223 // all others charged particles except geantino 224 pmanager->AddProcess(new G4MultipleScattering(),-1,1,1); 229 // all others charged particles except geantino 230 // A.R. 31-Mar-2010 : replaced G4MultipleScattering with G4hMultipleScattering. 231 pmanager->AddProcess(new G4hMultipleScattering(),-1,1,1); 225 232 pmanager->AddProcess(new G4hIonisation(),-1,2,2); 226 233 }
Note: See TracChangeset
for help on using the changeset viewer.