Skip to content

Commit

Permalink
Merge pull request #27267 from cms-sw/code-format-reconstruction-upgr…
Browse files Browse the repository at this point in the history
…ade-2e1775

Running code-format for reconstruction-upgrade
  • Loading branch information
cmsbuild committed Jun 20, 2019
2 parents 1c49323 + 5c94e58 commit 5991362
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions DataFormats/HGCRecHit/interface/HGCRecHit.h
Expand Up @@ -39,8 +39,20 @@ class HGCRecHit : public CaloRecHit {
enum HGCbheFlags { kHGCbheGood, kHGCbheDead, kHGCbheHot, kHGCbhePassBX, kHGCbheSaturated };

// HFnose rechit flags
enum HFNoseFlags { kHFNoseGood, kHFNosePoorReco, kHFNoseOutOfTime, kHFNoseFaultyHardware, kHFNoseNoisy, kHFNosePoorCalib, kHFNoseSaturated, kHFNoseDead, kHFNoseKilled, kHFNoseWeird, kHFNoseDiWeird, kHFNoseUnknown };

enum HFNoseFlags {
kHFNoseGood,
kHFNosePoorReco,
kHFNoseOutOfTime,
kHFNoseFaultyHardware,
kHFNoseNoisy,
kHFNosePoorCalib,
kHFNoseSaturated,
kHFNoseDead,
kHFNoseKilled,
kHFNoseWeird,
kHFNoseDiWeird,
kHFNoseUnknown
};

/** bit structure of CaloRecHit::flags_ used in EcalRecHit:
*
Expand Down
2 changes: 1 addition & 1 deletion DataFormats/HGCRecHit/src/HGCRecHit.cc
Expand Up @@ -127,7 +127,7 @@ std::ostream& operator<<(std::ostream& s, const HGCRecHit& hit) {
return s << HGCSiliconDetId(hit.detid()) << ": " << hit.energy() << " GeV, " << hit.time() << " ns";
else if (hit.detid().det() == DetId::HGCalHSc)
return s << HGCScintillatorDetId(hit.detid()) << ": " << hit.energy() << " GeV, " << hit.time() << " ns";
else if (hit.detid().det() == DetId::Forward && hit.detid().subdetId() == HFNose)
else if (hit.detid().det() == DetId::Forward && hit.detid().subdetId() == HFNose)
return s << HFNoseDetId(hit.detid()) << ": " << hit.energy() << " GeV, " << hit.time() << " ns";
else
return s << "HGCRecHit undefined subdetector";
Expand Down

0 comments on commit 5991362

Please sign in to comment.