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

Merge branch 'NPTool.2.dev' of https://gitlab.in2p3.fr/np/nptool into NPTool.2.dev

parents faeeb796 b7c54b01
No related branches found
No related tags found
No related merge requests found
Pipeline #187132 passed
...@@ -52,7 +52,7 @@ TVendetaPhysics::TVendetaPhysics() ...@@ -52,7 +52,7 @@ TVendetaPhysics::TVendetaPhysics()
m_E_Threshold(0), // MeV m_E_Threshold(0), // MeV
m_AnodeNumber(-1), m_AnodeNumber(-1),
m_NumberOfDetectors(0) { m_NumberOfDetectors(0) {
} }
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
/// A usefull method to bundle all operation to add a detector /// A usefull method to bundle all operation to add a detector
......
...@@ -25,6 +25,7 @@ using namespace std; ...@@ -25,6 +25,7 @@ using namespace std;
#include"NPAnalysisFactory.h" #include"NPAnalysisFactory.h"
#include"NPDetectorManager.h" #include"NPDetectorManager.h"
#include"NPOptionManager.h" #include"NPOptionManager.h"
#include"RootInput.h"
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
Analysis::Analysis(){ Analysis::Analysis(){
...@@ -35,11 +36,11 @@ Analysis::~Analysis(){ ...@@ -35,11 +36,11 @@ Analysis::~Analysis(){
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void Analysis::Init(){ void Analysis::Init(){
InitOutputBranch();
Vendeta= (TVendetaPhysics*) m_DetectorManager->GetDetector("Vendeta"); Vendeta= (TVendetaPhysics*) m_DetectorManager->GetDetector("Vendeta");
FC= (TFissionChamberPhysics*) m_DetectorManager->GetDetector("FissionChamber"); FC= (TFissionChamberPhysics*) m_DetectorManager->GetDetector("FissionChamber");
InitOutputBranch();
neutron = new NPL::Particle("1n"); neutron = new NPL::Particle("1n");
} }
...@@ -54,6 +55,7 @@ void Analysis::TreatEvent(){ ...@@ -54,6 +55,7 @@ void Analysis::TreatEvent(){
Vendeta->SetAnodeNumber(anode); Vendeta->SetAnodeNumber(anode);
Vendeta->BuildPhysicalEvent(); Vendeta->BuildPhysicalEvent();
unsigned int Vendeta_mult = Vendeta->DetectorNumber.size(); unsigned int Vendeta_mult = Vendeta->DetectorNumber.size();
for(unsigned int i=0; i<Vendeta_mult; i++){ for(unsigned int i=0; i<Vendeta_mult; i++){
int DetNbr = Vendeta->DetectorNumber[i]; int DetNbr = Vendeta->DetectorNumber[i];
......
...@@ -36,6 +36,7 @@ class Analysis: public NPL::VAnalysis{ ...@@ -36,6 +36,7 @@ class Analysis: public NPL::VAnalysis{
void Init(); void Init();
void TreatEvent(); void TreatEvent();
void End(); void End();
void InitInputBranch();
void InitOutputBranch(); void InitOutputBranch();
void ReInitValue(); void ReInitValue();
......
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Alias Theta Alias Theta
Action= Copy Action= Copy
Value= 25 36.8 46.6 60.5 72.3 84.1 95.9 107.7 119.6 131.4 143.2 155 Value= 25 36.8 48.6 60.5 72.3 84.1 95.9 107.7 119.6 131.4 143.2 155
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Alias Phi Alias Phi
Action= Copy Action= Copy
......
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