Skip to content
Snippets Groups Projects
Commit 99614528 authored by Pierre Morfouace's avatar Pierre Morfouace
Browse files

Updating NPReaction for GEFReader

parent e38870b7
No related branches found
No related tags found
1 merge request!27Draft: [Epic] Preparation of the environement for the new GaseousDetectorScorers...
......@@ -639,10 +639,10 @@ void Reaction::initializePrecomputeVariable() {
}
////////////////////////////////////////////////////////////////////////////////////////////
void Reaction::SetParticle3(double EnergyLab, double ThetaLab) {
void Reaction::SetParticle3(double EnergyLab, double ThetaLab, double PhiLab) {
double p3 = sqrt(pow(EnergyLab, 2) + 2 * m3 * EnergyLab);
fEnergyImpulsionLab_3 = TLorentzVector(p3 * sin(ThetaLab), 0, p3 * cos(ThetaLab), EnergyLab + m3);
fEnergyImpulsionLab_3 = TLorentzVector(p3 * sin(ThetaLab) * cos(PhiLab), p3 * sin(ThetaLab) * sin(PhiLab), p3 * cos(ThetaLab), EnergyLab + m3);
fEnergyImpulsionLab_4 = fTotalEnergyImpulsionLab - fEnergyImpulsionLab_3;
fParticle3.SetEnergyImpulsion(fEnergyImpulsionLab_3);
......
......@@ -262,7 +262,7 @@ namespace NPL {
// Check whenever the reaction is allowed at the given energy
bool IsAllowed(double Energy);
void SetParticle3(double EnergyLab, double ThetaLab);
void SetParticle3(double EnergyLab, double ThetaLab, double PhiLab = 0);
void SetParticle1(Beam p) { fParticle1 = p; };
void SetParticle2(Particle p) { fParticle2 = p; };
......
......@@ -64,26 +64,26 @@ namespace PISTA_NS{
const double E_ResoEnergy = 0.018*MeV ;
// Trapezoid dimension PISTA1
//const double TrapezoidBaseLarge = 72.3*mm;
//const double TrapezoidBaseSmall = 41.0*mm;
//const double TrapezoidHeight = 57.7*mm;
//const double TrapezoidLength = 1*cm;
//const double FirstStageThickness = 300*um;
//const double SecondStageThickness = 1.5*mm;
//const double DistanceBetweenSi = 4*mm;
//const double FirstStageNbrOfStrips = 91;
//const double SecondStageNbrOfStrips = 57;
// Trapezoid dimension PISTA2
const double TrapezoidBaseLarge = 53*mm;
const double TrapezoidBaseSmall = 34.0*mm;
const double TrapezoidHeight = 27*mm;
const double TrapezoidBaseLarge = 72.3*mm;
const double TrapezoidBaseSmall = 41.0*mm;
const double TrapezoidHeight = 57.7*mm;
const double TrapezoidLength = 1*cm;
const double FirstStageThickness = 0.3*mm;
const double FirstStageThickness = 300*um;
const double SecondStageThickness = 1.5*mm;
const double DistanceBetweenSi = 3*mm;
const double FirstStageNbrOfStrips = 49;
const double SecondStageNbrOfStrips = 45;
const double DistanceBetweenSi = 4*mm;
const double FirstStageNbrOfStrips = 91;
const double SecondStageNbrOfStrips = 57;
// Trapezoid dimension PISTA2
//const double TrapezoidBaseLarge = 53*mm;
//const double TrapezoidBaseSmall = 34.0*mm;
//const double TrapezoidHeight = 27*mm;
//const double TrapezoidLength = 1*cm;
//const double FirstStageThickness = 0.3*mm;
//const double SecondStageThickness = 1.5*mm;
//const double DistanceBetweenSi = 3*mm;
//const double FirstStageNbrOfStrips = 49;
//const double SecondStageNbrOfStrips = 45;
}
using namespace PISTA_NS;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment