Skip to content
Snippets Groups Projects
Commit b293d078 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Generate 1 to 10 GeV electrons

parent 3b844b94
Branches
No related tags found
1 merge request!33Generate 1 to 10 GeV electrons
...@@ -118,7 +118,7 @@ vtxcluster_trk_init = TrackParamVertexClusterInit("vtxcluster_trk_init", ...@@ -118,7 +118,7 @@ vtxcluster_trk_init = TrackParamVertexClusterInit("vtxcluster_trk_init",
# Tracking algorithms # Tracking algorithms
trk_find_alg = TrackFindingAlgorithm("trk_find_alg", trk_find_alg = TrackFindingAlgorithm("trk_find_alg",
inputSourceLinks="BarrelTrackSourceLinks", inputSourceLinks="BarrelSourceLinks",
inputInitialTrackParameters= "InitTrackParams",#"InitTrackParamsFromClusters", inputInitialTrackParameters= "InitTrackParams",#"InitTrackParamsFromClusters",
outputTrajectories="trajectories", outputTrajectories="trajectories",
OutputLevel=DEBUG) OutputLevel=DEBUG)
...@@ -129,7 +129,7 @@ parts_from_fit = ParticlesFromTrackFit("parts_from_fit", ...@@ -129,7 +129,7 @@ parts_from_fit = ParticlesFromTrackFit("parts_from_fit",
OutputLevel=DEBUG) OutputLevel=DEBUG)
trk_find_alg1 = TrackFindingAlgorithm("trk_find_alg1", trk_find_alg1 = TrackFindingAlgorithm("trk_find_alg1",
inputSourceLinks="BarrelTrackSourceLinks", inputSourceLinks="BarrelSourceLinks",
inputInitialTrackParameters= "InitTrackParamsFromClusters", inputInitialTrackParameters= "InitTrackParamsFromClusters",
outputTrajectories="trajectories1", outputTrajectories="trajectories1",
OutputLevel=DEBUG) OutputLevel=DEBUG)
......
...@@ -39,7 +39,7 @@ void gen_central_electrons(int n_events = 100, ...@@ -39,7 +39,7 @@ void gen_central_electrons(int n_events = 100,
FourVector(0.0, 0.0, 0.0, 0.938), 2212, 4); FourVector(0.0, 0.0, 0.0, 0.938), 2212, 4);
// Define momentum // Define momentum
Double_t p = r1->Uniform(9.0, 10.0); Double_t p = r1->Uniform(1.0, 10.0);
Double_t phi = r1->Uniform(0.0, 2.0 * M_PI); Double_t phi = r1->Uniform(0.0, 2.0 * M_PI);
Double_t costh = r1->Uniform(cos_theta_min, cos_theta_max); Double_t costh = r1->Uniform(cos_theta_min, cos_theta_max);
Double_t th = std::acos(costh); Double_t th = std::acos(costh);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment