From f3e6b0dc6cecea70d8fcc21c1688a64350a80731 Mon Sep 17 00:00:00 2001 From: "theodore.efremov" <theodore.efremov@cea.fr> Date: Fri, 29 Nov 2024 09:35:29 +0100 Subject: [PATCH] Added TDC MWPC Time into the analysis --- Projects/AlPhaPha/2024/Analysis.cxx | 8 +++++++- Projects/AlPhaPha/2024/Analysis.h | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Projects/AlPhaPha/2024/Analysis.cxx b/Projects/AlPhaPha/2024/Analysis.cxx index 25794b944..3fc32acb1 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 125f5ec99..07f10c034 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; -- GitLab