Skip to content

Commit

Permalink
Code check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Sep 3, 2021
1 parent 5dd46f5 commit e63f1d1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
25 changes: 12 additions & 13 deletions DataFormats/HcalCalibObjects/interface/HcalHBHEMuonVariables.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
#include <vector>

class HcalHBHEMuonVariables {

public:
HcalHBHEMuonVariables() { clear(); }

void clear() {
muonGood_ = muonGlobal_ = muonTracker_ = muonTight_ = muonMedium_ = false;
muonGood_ = muonGlobal_ = muonTracker_ = muonTight_ = muonMedium_ = false;
ptGlob_ = etaGlob_ = phiGlob_ = energyMuon_ = pMuon_ = 0;
muonTrkKink_ = muonChi2LocalPosition_ = muonSegComp_ = 0;
muonTrkKink_ = muonChi2LocalPosition_ = muonSegComp_ = 0;
trackerLayer_ = numPixelLayers_ = tightPixelHits_;
innerTrack_ = outerTrack_ = globalTrack_= false;
innerTrack_ = outerTrack_ = globalTrack_ = false;
chiTracker_ = dxyTracker_ = dzTracker_ = 0;
innerTrackPt_ = innerTrackEta_ = innerTrackEhi_ = 0;
outerTrackHits_ = outerTrackRHits_ = 0;
Expand All @@ -22,23 +21,23 @@ class HcalHBHEMuonVariables {
globalTrackPt_ = globalTrackEta_ = globalTrackPhi_ = chiGlobal_ = 0;
tightValidFraction_ = tightLongPara_ = tightTransImpara_ = 0;
isolationR04_ = isolationR03_ = 0;
ecalDetId_ = 0;
ecalDetId_ = 0;
ecalEnergy_ = ecal3x3Energy_ = 0;
hcalDetId_ = ehcalDetId_ = 0;
matchedId_ = hcalHot_= false;
matchedId_ = hcalHot_ = false;
hcalIeta_ = hcalIphi_ = 0;
hcalEnergy_ = hoEnergy_ = hcal1x1Energy_ = 0;
hcalDepthEnergy_.clear();
hcalDepthActiveLength_.clear();
hcalDepthEnergyHot_.clear();
hcalDepthEnergyHot_.clear();
hcalDepthActiveLengthHot_.clear();
hcalDepthChargeHot_.clear();
hcalDepthChargeHot_.clear();
hcalDepthChargeHotBG_.clear();
hcalDepthEnergyCorr_.clear();
hcalDepthEnergyCorr_.clear();
hcalDepthEnergyHotCorr_.clear();
hcalDepthMatch_.clear();
hcalDepthMatch_.clear();
hcalDepthMatchHot_.clear();
hcalActiveLength_ = hcalActiveLengthHot_ = 0;
hcalActiveLength_ = hcalActiveLengthHot_ = 0;
allTriggers_.clear();
hltResults_.clear();
}
Expand All @@ -56,7 +55,7 @@ class HcalHBHEMuonVariables {
float globalTrackPt_, globalTrackEta_, globalTrackPhi_, chiGlobal_;
float tightValidFraction_, tightLongPara_, tightTransImpara_;
float isolationR04_, isolationR03_;
unsigned int ecalDetId_;
unsigned int ecalDetId_;
float ecalEnergy_, ecal3x3Energy_;
unsigned int hcalDetId_, ehcalDetId_;
bool matchedId_, hcalHot_;
Expand All @@ -67,7 +66,7 @@ class HcalHBHEMuonVariables {
std::vector<float> hcalDepthChargeHot_, hcalDepthChargeHotBG_;
std::vector<float> hcalDepthEnergyCorr_, hcalDepthEnergyHotCorr_;
std::vector<bool> hcalDepthMatch_, hcalDepthMatchHot_;
float hcalActiveLength_, hcalActiveLengthHot_;
float hcalActiveLength_, hcalActiveLengthHot_;
std::vector<std::string> allTriggers_;
std::vector<int> hltResults_;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@
#include <vector>

class HcalIsoTrkCalibVariables {

public:
HcalIsoTrkCalibVariables() { clear(); }

void clear() {
eventWeight_ = rhoh_ = 0;
nVtx_ = goodPV_ = nTrk_ = 0;
trgbits_.clear();
mindR1_ = l1pt_ = l1eta_ = l1phi_ = 0;
mindR2_ = l3pt_ = l3eta_ = l3phi_ = 0;
p_ = pt_= phi_ = gentrackP_ = 0;
p_ = pt_ = phi_ = gentrackP_ = 0;
ieta_ = iphi_ = 0;
eMipDR_.clear();
eHcal_ = eHcal10_ = eHcal30_ = 0;
eHcal_ = eHcal10_ = eHcal30_ = 0;
emaxNearP_ = eAnnular_ = hmaxNearP_ = hAnnular_ = 0;
selectTk_ = qltyFlag_ = qltyMissFlag_ = qltyPVFlag_ = false;
detIds_.clear();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
#include <vector>

class HcalIsoTrkEventVariables {

public:
HcalIsoTrkEventVariables() { clear(); }

void clear() {
allvertex_ = 0;
tracks_ = tracksProp_ = tracksSaved_ = tracksLoose_ = tracksTight_ = 0;
Expand Down

0 comments on commit e63f1d1

Please sign in to comment.