Follow
git clone https://github.com/Allen319/TnPtree-analyzer.git
Setting the LCG environment and compile
cd TnPtree-analyzer
. ./env.sh
mkdir build
cd build
cmake ..
make -j$(nproc)
Simple test
./bin/addBranches --config config/electron.yaml --input /path/to/tree --output /path/to/output/XXX.root --year 2018 --isMC 0
./bin/addWeights --config config/photon.yaml --input /eos/user/h/hgao/prescale/photonSample/2018RunA-part0.root --output /eos/user/h/hgao/prescale/photonSample/2018RunA-part0_prescale.root --year 2018 --isMC 0```