Skip to content

Commit

Permalink
More code formatting (sorry...)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdlong committed Feb 24, 2021
1 parent b4d99ee commit af52b9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions DPGAnalysis/CommonNanoAOD/plugins/HitPositionTableProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ class HitPositionTableProducer : public edm::stream::EDProducer<> {
iSetup.get<TrackerDigiGeometryRecord>().get("idealForDigi", trackGeom_);
// Believe this is ideal, but we're not so precise here...
iSetup.get<GlobalTrackingGeometryRecord>().get(globalGeom_);

}

GlobalPoint positionFromHit(const PCaloHit& hit) {
Expand All @@ -62,7 +61,7 @@ class HitPositionTableProducer : public edm::stream::EDProducer<> {
// Should really only be used for HGCAL
GlobalPoint positionFromDetId(DetId id) {
DetId::Detector det = id.det();
if (det == DetId::Hcal || det == DetId::HGCalEE || det == DetId::HGCalHSi || det== DetId::HGCalHSc) {
if (det == DetId::Hcal || det == DetId::HGCalEE || det == DetId::HGCalHSi || det == DetId::HGCalHSc) {
return rhtools_.getPosition(id);
} else {
throw cms::Exception("HitPositionTableProducer") << "Unsupported DetId type";
Expand All @@ -71,8 +70,8 @@ class HitPositionTableProducer : public edm::stream::EDProducer<> {

GlobalPoint positionFromHit(const PSimHit& hit) {
auto detId = DetId(hit.detUnitId());
auto surface = detId.det() == DetId::Muon ? globalGeom_->idToDet(hit.detUnitId())->surface() :
trackGeom_->idToDet(hit.detUnitId())->surface();
auto surface = detId.det() == DetId::Muon ? globalGeom_->idToDet(hit.detUnitId())->surface()
: trackGeom_->idToDet(hit.detUnitId())->surface();
GlobalPoint position = surface.toGlobal(hit.localPosition());
return position;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,3 @@ class ObjectIndexFromAssociationTableProducer : public edm::global::EDProducer<>
const edm::EDGetTokenT<edm::Association<M>> objMap_;
const StringCutObjectSelector<typename T::value_type> cut_;
};

0 comments on commit af52b9b

Please sign in to comment.