Skip to content

Commit ee50e37

Browse files
committed
code-check fix1
1 parent da7e287 commit ee50e37

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

IOMC/EventVertexGenerators/interface/PassThroughEvtVtxGenerator.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class PassThroughEvtVtxGenerator : public BaseEvtVtxGenerator {
2222
TMatrixD const* GetInvLorentzBoost() const override { return nullptr; };
2323

2424
private:
25-
2625
};
2726

2827
#endif

IOMC/EventVertexGenerators/src/BaseEvtVtxGenerator.cc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,17 @@ void BaseEvtVtxGenerator::produce(Event& evt, const EventSetup&) {
7575
ROOT::Math::XYZTVector VertexShift = vertexShift(engine);
7676
productcopy3->applyVtxGen(HepMC3::FourVector(VertexShift.x(), VertexShift.y(), VertexShift.z(), VertexShift.t()));
7777

78-
if(GetInvLorentzBoost() != nullptr) {
78+
if (GetInvLorentzBoost() != nullptr) {
7979
TMatrixD tmplorentz(*GetInvLorentzBoost());
8080
TMatrixD p4(4, 1);
81-
p4(0, 0) = 1.; p4(1, 0) = 1.; p4(2, 0) = 1.; p4(3, 0) = 1.; // Check if the boost matrix is not trivial
81+
p4(0, 0) = 1.;
82+
p4(1, 0) = 1.;
83+
p4(2, 0) = 1.;
84+
p4(3, 0) = 1.; // Check if the boost matrix is not trivial
8285
TMatrixD p4lab(4, 1);
8386
p4lab = tmplorentz * p4;
84-
if (p4lab(0, 0) - p4(0, 0) != 0. || p4lab(1, 0) - p4(1, 0) != 0. || p4lab(2, 0) - p4(2, 0) != 0. || p4lab(3, 0) - p4(3, 0) != 0.) { // not trivial
87+
if (p4lab(0, 0) - p4(0, 0) != 0. || p4lab(1, 0) - p4(1, 0) != 0. ||
88+
p4lab(2, 0) - p4(2, 0) != 0. || p4lab(3, 0) - p4(3, 0) != 0.) { // not trivial
8589
productcopy3->boostToLab(GetInvLorentzBoost(), "vertex");
8690
productcopy3->boostToLab(GetInvLorentzBoost(), "momentum");
8791
}

0 commit comments

Comments
 (0)