Skip to content

Commit

Permalink
Initialize enum field in CaloPoint class
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodozov committed Aug 28, 2021
1 parent 310e644 commit fbd882a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions FastSimulation/CaloGeometryTools/src/CaloPoint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ CaloPoint::CaloPoint(const DetId& cell, CaloDirection side, const XYZPoint& posi
CaloPoint::CaloPoint(DetId::Detector det, const XYZPoint& position) : XYZPoint(position), detector_(det) {
subdetector_ = 0;
layer_ = 0;
side_ = CaloDirection::NONE;
}

//preshower
CaloPoint::CaloPoint(DetId::Detector detector, int subdetn, int layer, const XYZPoint& position)
: XYZPoint(position), detector_(detector), subdetector_(subdetn), layer_(layer) {
cellid_ = DetId();
side_ = CaloDirection::NONE;
}

0 comments on commit fbd882a

Please sign in to comment.