Skip to content
Snippets Groups Projects

Bugfix: Fix conversion of unit - from mm to cm

Merged Shreya Roy requested to merge s.roy/cbmroot:fix_unit_conversion into master
All threads resolved!
/* Copyright (C) 2004-2021 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
/* Copyright (C) 2004-2024 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
SPDX-License-Identifier: GPL-3.0-only
Authors: Volker Friese, Denis Bertini [committer] */
Authors: Volker Friese, Shreya Roy, Denis Bertini [committer] */
// -------------------------------------------------------------------------
// ----- CbmPlutoGenerator source file -----
@@ -62,7 +62,6 @@ CbmPlutoGenerator::CbmPlutoGenerator(std::vector<std::string> fileNames) : FairG
fAvailableEvents = fInputChain->GetEntries();
}
// ----- Destructor ---------------------------------------------------
CbmPlutoGenerator::~CbmPlutoGenerator()
{
@@ -73,7 +72,6 @@ CbmPlutoGenerator::~CbmPlutoGenerator()
}
// ------------------------------------------------------------------------
// ----- Public method ReadEvent --------------------------------------
Bool_t CbmPlutoGenerator::ReadEvent(FairPrimaryGenerator* primGen)
{
@@ -141,9 +139,9 @@ Bool_t CbmPlutoGenerator::ReadEvent(FairPrimaryGenerator* primGen)
Double_t ee = mom.E();
TVector3 vertex = part->getVertex();
Double_t vx = vertex.x();
Double_t vy = vertex.y();
Double_t vz = vertex.z();
Double_t vx = vertex.x() * 0.1; // conversion of unit from mm to cm
Double_t vy = vertex.y() * 0.1; // conversion of unit from mm to cm
Double_t vz = vertex.z() * 0.1; // conversion of unit from mm to cm
Bool_t wanttracking = kTRUE;
if (!found || idx > -1) wanttracking = kFALSE; // only tracking for decay products that are known
@@ -159,7 +157,6 @@ Bool_t CbmPlutoGenerator::ReadEvent(FairPrimaryGenerator* primGen)
}
// ------------------------------------------------------------------------
// ----- Private method CloseInput ------------------------------------
void CbmPlutoGenerator::CloseInput()
{
Loading