From f14b7db84b1c4f0f32361fc9bab76b02d1488c05 Mon Sep 17 00:00:00 2001 From: Zafar Ahmed <zahmed@jlab.org> Date: Tue, 3 Feb 2015 16:51:15 -0500 Subject: [PATCH] Add method to get momentum normalized total shower energy. --- src/THcShower.cxx | 4 ++++ src/THcShower.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/THcShower.cxx b/src/THcShower.cxx index 11bf6b7..449ada2 100644 --- a/src/THcShower.cxx +++ b/src/THcShower.cxx @@ -1031,5 +1031,9 @@ Int_t THcShower::FineProcess( TClonesArray& tracks ) return 0; } +Double_t THcShower::GetNormETot( ){ + return fEtotNorm; +} + ClassImp(THcShower) //////////////////////////////////////////////////////////////////////////////// diff --git a/src/THcShower.h b/src/THcShower.h index dd6d710..88079d7 100644 --- a/src/THcShower.h +++ b/src/THcShower.h @@ -147,6 +147,8 @@ public: virtual Int_t CoarseProcess( TClonesArray& tracks ); virtual Int_t FineProcess( TClonesArray& tracks ); + Double_t GetNormETot(); + Int_t GetNHits() const { return fNhits; } Int_t GetNBlocks(Int_t NLayer) const { return fNBlocks[NLayer];} -- GitLab