11#ifndef EMCSELBHAEVENT_H
12#define EMCSELBHAEVENT_H
22#include "GaudiKernel/Algorithm.h"
23#include "GaudiKernel/IProperty.h"
32#include "EmcGeneralClass/EmcStructure.h"
33#include "GaudiKernel/NTuple.h"
35#include "EmcCalibConstSvc/IEmcCalibConstSvc.h"
37#include "BeamEnergySvc/IBeamEnergySvc.h"
38#include "ScanEnergySvc/IScanEnergySvc.h"
60 EmcSelBhaEvent(
const std::string& name, ISvcLocator* pSvcLocator );
83 int index(
int theta,
int phi )
const {
84 int val = ( ( m_index )[theta][phi] );
130 double m_lowEnergyShowerCut;
131 double m_highEnergyShowerCut;
132 double m_matchThetaCut;
133 double m_matchPhiCut;
135 double m_highMomentumCut;
138 double m_minAngShEnergyCut;
143 double m_oneProngMomentumCut;
147 int m_selectedTrkID1;
148 int m_selectedTrkID2;
151 int m_oneProngsSelected;
152 int m_twoProngsMatchedSelected;
153 int m_twoProngsOneMatchedSelected;
156 double expectedEnergy(
long int ixtal );
165 double m_eDepEne[56];
167 double m_eRawMean[6240];
168 double m_eRawRMS[6240];
170 double m_eRawPeak[6240];
171 double m_eMcPeak[6240];
173 double m_eMeanData[6240];
174 double m_eMeanMC[6240];
175 double m_eRmsData[6240];
176 double m_eRmsMC[6240];
178 double m_eDepMean[6240];
179 double m_eDepPeak[6240];
180 double m_eDepSigma[6240];
182 double m_eSigmaExp[56];
189 double m_ShEneThreshCut;
192 double m_ShEneLeptonCut;
195 int m_minNrXtalsShowerCut;
198 int m_maxNrXtalsShowerCut;
201 double m_phiDiffMinCut;
204 double m_phiDiffMaxCut;
213 double m_thetaDiffCut;
230 long int m_TwoProngMatched;
232 long int m_TwoProngOneMatched;
238 long m_showersAccepted;
243 list<EmcShower> m_showerList;
250 bool m_writeMVToFile;
252 std::string m_fileExt;
255 std::string m_fileDir;
258 std::string m_inputFileDir;
261 std::string m_selMethod;
276 bool m_ReadBeamEFromDB;
277 bool m_useBeamDetectorEnergy;
279 bool m_elecSaturation;
292 double m_inputConst[6240];
int selectedTrkID2() const
double findPhiDiff(double phi1, double phi2)
void readDataAndMCIxtal()
int selectedTrkID1() const
EmcSelBhaEvent(const std::string &name, ISvcLocator *pSvcLocator)
void setPassed(bool passed)
int index(int theta, int phi) const
double Angle2ClosestShower(int ShowerID)
StatusCode SelectFillBhabha()