diff --git a/Projects/AlPhaPha/2024/Analysis.cxx b/Projects/AlPhaPha/2024/Analysis.cxx index 25794b9444ff71f85c921f2e367beb1cc3117448..3fc32acb1d3ba6e257945f93245269ad4ad2a79d 100644 --- a/Projects/AlPhaPha/2024/Analysis.cxx +++ b/Projects/AlPhaPha/2024/Analysis.cxx @@ -1,4 +1,4 @@ -/***************************************************************************** +/**************************************************************************** * Copyright (C) 2009-2016 this file is part of the NPTool Project * * * * For the licensing terms see $NPTOOL/Licence/NPTool_Licence * @@ -516,6 +516,8 @@ void Analysis::VamosAnalysis(){ //////////////////////////////////////////////////////////////////////////////// void Analysis::InitOutputBranch(){ + RootOutput::getInstance()->GetTree()->Branch("Time",&Time); + RootOutput::getInstance()->GetTree()->Branch("BeamEnergy",&BeamEnergy,"BeamEnergy/D"); RootOutput::getInstance()->GetTree()->Branch("XTarget",&XTarget,"XTarget/D"); @@ -606,11 +608,15 @@ void Analysis::InitOutputBranch(){ RootOutput::getInstance()->GetTree()->Branch("VAMOS_TS_hour",&VAMOS_TS_hour,"VAMOS_TS_hour/D"); RootOutput::getInstance()->GetTree()->Branch("PISTA_TS_hour",&PISTA_TS_hour,"PISTA_TS_hour/D"); + } //////////////////////////////////////////////////////////////////////////////// void Analysis::InitInputBranch(){ + RootInput::getInstance()->GetChain()->SetBranchStatus("Time",true); + RootInput::getInstance()->GetChain()->SetBranchAddress("Time",&Time); + RootInput::getInstance()->GetChain()->SetBranchStatus("T_TMW0_FPMW0",true); RootInput::getInstance()->GetChain()->SetBranchAddress("T_TMW0_FPMW0",&T13); diff --git a/Projects/AlPhaPha/2024/Analysis.h b/Projects/AlPhaPha/2024/Analysis.h index 125f5ec99c6625ad6df2b2fc5dcb14374315da86..07f10c03457ce4690a4fc000b2d452996563b59f 100644 --- a/Projects/AlPhaPha/2024/Analysis.h +++ b/Projects/AlPhaPha/2024/Analysis.h @@ -36,6 +36,7 @@ #include "TRandom3.h" #include "TSpline.h" #include "TChain.h" +#include "TTimeData.h" class Analysis: public NPL::VAnalysis{ public: @@ -223,6 +224,7 @@ class Analysis: public NPL::VAnalysis{ Float_t MTOF_FP1_T1V[92]; private: + TTimeData* Time ; TPISTAPhysics* PISTA; TFPMWPhysics* FPMW; TICPhysics* IC;