Skip to content
Snippets Groups Projects
Commit c0cbbda0 authored by Shreya Roy's avatar Shreya Roy Committed by Pierre-Alain Loizeau
Browse files

Bugfix: Fix conversion of unit - from mm to cm

parent d4855292
No related branches found
No related tags found
1 merge request!1981Bugfix: Fix conversion of unit - from mm to cm
Pipeline #32116 passed
/* 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()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment