Skip to content
Snippets Groups Projects
Commit 157829af authored by Adrien Matta's avatar Adrien Matta :skull_crossbones:
Browse files

* Fixing Kinematic and Example1

        - If statement was commented out for inverse kinematic case
parent 21ec3c63
No related branches found
No related tags found
No related merge requests found
TTreeName TTreeName
SimulatedTree SimulatedTree
RootFileName RootFileName
../../Outputs/Simulation/Example1.root ./root/simulation/Example1.root
...@@ -6,6 +6,7 @@ TChain* chain=NULL ; ...@@ -6,6 +6,7 @@ TChain* chain=NULL ;
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void LoadCuts(){ void LoadCuts(){
std::cout << "Loading Cuts" << std::endl;
TFile* File_ETOF = new TFile("cuts/ETOF.root","READ"); TFile* File_ETOF = new TFile("cuts/ETOF.root","READ");
ETOF = (TCutG*) File_ETOF->FindObjectAny("ETOF"); ETOF = (TCutG*) File_ETOF->FindObjectAny("ETOF");
...@@ -15,6 +16,8 @@ void LoadCuts(){ ...@@ -15,6 +16,8 @@ void LoadCuts(){
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void LoadChain(){ void LoadChain(){
std::cout << "Loading Chain" << std::endl;
chain = new TChain("PhysicsTree"); chain = new TChain("PhysicsTree");
chain->Add("root/analysis/Example1.root"); chain->Add("root/analysis/Example1.root");
} }
......
...@@ -14,4 +14,4 @@ ConfigMust2 ...@@ -14,4 +14,4 @@ ConfigMust2
DISABLE_ALL MM6 DISABLE_ALL MM6
DISABLE_ALL MM7 DISABLE_ALL MM7
DISABLE_ALL MM8 DISABLE_ALL MM8
CSI_SIZE 256 CSI_SIZE 32
...@@ -94,8 +94,6 @@ M2Telescope ...@@ -94,8 +94,6 @@ M2Telescope
CSI= 0 CSI= 0
VIS= all VIS= all
%%%%%%%%%%%%%%%%%%%%%
SSSDArray
%%%%%%%%%% Det 1 %%%%%%%% %%%%%%%%%% Det 1 %%%%%%%%
SSSD SSSD
A= 17.61 9.85 104.11 mm A= 17.61 9.85 104.11 mm
......
...@@ -261,10 +261,10 @@ void Reaction::KineRelativistic(double& ThetaLab3, double& KineticEnergyLab3, do ...@@ -261,10 +261,10 @@ void Reaction::KineRelativistic(double& ThetaLab3, double& KineticEnergyLab3, do
// case of inverse kinematics // case of inverse kinematics
double theta = fThetaCM; double theta = fThetaCM;
/*if (m1 > m2){ if (m1 > m2){
theta = M_PI - fThetaCM; theta = M_PI - fThetaCM;
//fThetaCM = M_PI - fThetaCM; //fThetaCM = M_PI - fThetaCM;
}*/ }
fEnergyImpulsionCM_3 = TLorentzVector(pCM_3 * sin(theta), 0, pCM_3 * cos(theta), ECM_3); fEnergyImpulsionCM_3 = TLorentzVector(pCM_3 * sin(theta), 0, pCM_3 * cos(theta), ECM_3);
fEnergyImpulsionCM_4 = fTotalEnergyImpulsionCM - fEnergyImpulsionCM_3; fEnergyImpulsionCM_4 = fTotalEnergyImpulsionCM - fEnergyImpulsionCM_3;
......
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