File indexing completed on 2024-09-27 07:03:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #pragma once
0011
0012 #include <stdio.h>
0013 #include <stdlib.h>
0014 #include <iostream>
0015 #include <sstream>
0016
0017
0018 #include "Kinematics.h"
0019
0020
0021 #include <TTree.h>
0022
0023 class SidisTree
0024 {
0025 public:
0026 SidisTree(TString treeName_, std::shared_ptr<Kinematics> K_, std::shared_ptr<Kinematics> Ktrue_);
0027 ~SidisTree();
0028
0029 TTree *GetTree() { return T; };
0030 std::shared_ptr<Kinematics> GetKinematics() { return K; };
0031 std::shared_ptr<Kinematics> GetKinematicsTrue() { return Ktrue; };
0032 void FillTree(Double_t w) { weight = w; T->Fill(); };
0033 void WriteTree() { T->Write(); };
0034
0035 private:
0036 Double_t weight;
0037 TTree *T;
0038 std::shared_ptr<Kinematics> K;
0039 std::shared_ptr<Kinematics> Ktrue;
0040 TString treeName;
0041
0042 ClassDef(SidisTree,1);
0043 };