From b86d21bac5797d31517688d2b6eda9e3b0b798a5 Mon Sep 17 00:00:00 2001 From: GernotMaier Date: Mon, 30 Dec 2024 14:57:06 +0100 Subject: [PATCH] compile bugs --- inc/CData.h | 2 +- src/CData.cpp | 2 +- src/VDispTableAnalyzer.cpp | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/inc/CData.h b/inc/CData.h index 7a956915..67e39e93 100644 --- a/inc/CData.h +++ b/inc/CData.h @@ -258,7 +258,7 @@ class CData TBranch* b_Xoff_intersect; TBranch* b_Yoff_intersect; - CData( TTree* tree = 0, bool bMC = false, int iVersion = 5, bool bShort = false ); + CData( TTree* tree = 0, bool bMC = false, bool bShort = false ); virtual ~CData(); virtual Int_t GetEntry( Long64_t entry ); virtual Long64_t LoadTree( Long64_t entry ); diff --git a/src/CData.cpp b/src/CData.cpp index aa7697d6..8267742b 100644 --- a/src/CData.cpp +++ b/src/CData.cpp @@ -818,7 +818,7 @@ void CData::reconstruct_3tel_images_direction() * Reconstruct shower energy for 3-telescope events. * */ -void CData:reconstruct_3tel_images_energy() +void CData::reconstruct_3tel_images_energy() { VDispAnalyzer i_dispAnalyzer; vector< float > disp_energy_T; diff --git a/src/VDispTableAnalyzer.cpp b/src/VDispTableAnalyzer.cpp index 5633390c..a8d6b49d 100644 --- a/src/VDispTableAnalyzer.cpp +++ b/src/VDispTableAnalyzer.cpp @@ -294,7 +294,14 @@ void VDispTableAnalyzer::calculateMeanDirection( float& xs, float& ys, vector< f return; } + // use first NTOT_MAX telescopes for event reconstruction only + // (number of possible combinations is 2^NTOT_MAX ) + const unsigned int NTOT_MAX = 16; unsigned int iNTel_max = x.size(); + if( x.size() > NTOT_MAX ) + { + iNTel_max = NTOT_MAX; + } // prepare bit mask to go through all possible combinations of sign for disp calculation vector< bitset< NTOT_MAX > > iComb;