Skip to content

Commit

Permalink
Setting default diamond parameters, sigmaxy based on beta* from runNu…
Browse files Browse the repository at this point in the history
…mber
  • Loading branch information
preghenella committed Aug 5, 2016
1 parent b7d646a commit 3728c9e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions MC/GeneratorConfig.C
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,17 @@ GeneratorConfig(Int_t tag, Int_t run)
gen = GeneratorCustom();

}

// default diamond parameters
Float_t betast = 10; // beta* [m]
if (runNumber >= 117048) betast = 2.;
if (runNumber > 122375) betast = 3.5; // starting with fill 1179
Float_t eps = 5.e-6; // emittance [m]
Float_t gamma = energyConfig / 2.0 / 0.938272; // relativistic gamma [1]
Float_t sigmaxy = TMath::Sqrt(eps * betast / gamma) / TMath::Sqrt(2.) * 100.;
gen->SetOrigin(0., 0., 0.);
gen->SetSigma(sigmaxy, sigmaxy, 5.);

// gener->SetOrigin(0.075, 0.522, -0.884); // R+HACK
// gener->SetSigma(65e-4, 65e-4, 5.); // R+HACK
gen->SetVertexSmear(kPerEvent);
gen->Init();
printf(">>>>> Generator Configuration: %s \n", comment.Data());
Expand Down

0 comments on commit 3728c9e

Please sign in to comment.