Skip to content
Snippets Groups Projects
Commit 79734b40 authored by Bertrand Laforge's avatar Bertrand Laforge Committed by Graeme Stewart
Browse files

fix some warning from automatic code check (egammaPerformance-00-03-27)

parent 4f42c56a
No related branches found
No related tags found
No related merge requests found
......@@ -96,7 +96,11 @@ class electronHist
m_hEtaPhi (nullptr),
m_hTopoEtCone40 (nullptr),
m_hPtCone20 (nullptr),
m_hTime (nullptr)
m_hTime (nullptr),
m_lumiBlockNumber(0),
m_nElectronsInCurrentLB(0),
m_nElectrons(0),
m_hLB_N(nullptr)
{
m_nameOfElectronType = name;
}
......
......@@ -119,7 +119,6 @@ class photonHist
TH1 *m_hLB_N; // Histogram for number of photons vs LB
TH1 *m_hLB_NUnconv; // Histogram for number of photons vs LB
TH1 *m_hLB_NConv; // Histogram for number of photons vs LB
TH1 *m_hLB_fConv; // Histogram of Conv. photon fraction vs LB
photonHist(std::string name)
......@@ -152,6 +151,13 @@ class photonHist
m_hLB_fConv(nullptr)
{
m_nameOfPhotonType = name;
m_lumiBlockNumber = 0;
m_nPhotonsInCurrentLB = 0;
m_nPhotonsInCurrentLBUnconv = 0;
m_nPhotonsInCurrentLBConv = 0;
m_nPhotons = 0;
m_nPhotonsUnconv = 0;
m_nPhotonsConv = 0;
}
~photonHist(){}
......
......@@ -29,6 +29,7 @@ using CLHEP::GeV;
ZeeTaPMonTool::ZeeTaPMonTool(const std::string & type, const std::string & name, const IInterface* parent)
: egammaMonToolBase(type,name,parent),
m_hNZcandidates(nullptr),
m_hMass(nullptr),
m_hIDEt(nullptr),
m_hIDEta(nullptr),
......@@ -51,7 +52,9 @@ ZeeTaPMonTool::ZeeTaPMonTool(const std::string & type, const std::string & name,
declareProperty("massUpperCut", m_MassUpperCut = 110*GeV,"Upper mass cut");
m_lumiBlockNumber=-1;
m_lumiBlockNumber = 0;
m_nZCandidatesInCurrentLB = 0;
m_nZCandidates = 0;
}
ZeeTaPMonTool::~ZeeTaPMonTool()
......@@ -393,7 +396,7 @@ void ZeeTaPMonTool::fillElectronProbe(const xAOD::Electron *el, bool isTight, bo
unsigned char numberOfSCTHits=-1;
unsigned char numberOfTRTHits=-1;
if(t) {
trackp = t->pt()/cosh(t->eta());
trackp = t->pt()*cosh(t->eta());
// retrieve track summary information
if( t->summaryValue(numberOfBLayerHits,xAOD::numberOfBLayerHits) ) {
fillTH1FperRegion(m_hvNOfBLayerHits,ir,numberOfBLayerHits);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment