From 7805481ead90cd6822a5748c077a0835a0492604 Mon Sep 17 00:00:00 2001 From: vs19g Date: Mon, 16 Sep 2024 10:25:13 -0400 Subject: [PATCH] Refactor PCGainMatch.C and Analyzer.C for improved efficiency and readability --- PCGainMatch.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PCGainMatch.C b/PCGainMatch.C index 9dc171f..49d669e 100644 --- a/PCGainMatch.C +++ b/PCGainMatch.C @@ -233,8 +233,8 @@ Bool_t PCGainMatch::Process(Long64_t entry){ // aESum += aE; if(inPCCut){ hanVScatsum->Fill(aE, cESum);} - if (pc.index[i] < 24 && pc.e[i] > 50) { - hanVScatsum_a[pc.index[i]]->Fill(pc.e[i], cESum); + if (aID < 24 && aE > 50) { + hanVScatsum_a[aID]->Fill(aE, cESum); } @@ -320,7 +320,7 @@ Bool_t PCGainMatch::Process(Long64_t entry){ for( int j = 0; j < pc.multi; j++){ // hsx3VpcIndex->Fill( sx3.index[i], pc.index[j] ); - if( sx3.ch[index] > 8 && pc.index[j]<24 && pc.e[j]>50 && inCuth ){ + if( sx3.ch[index] > 8 && pc.index[j]<24 && pc.e[j]>50 ){ hsx3VpcE->Fill( sx3.e[i], pc.e[j] ); // hpcIndexVE->Fill( pc.index[i], pc.e[i] ); }