File tree Expand file tree Collapse file tree
serialization/data_generator Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/* *******************************************************************************
2- * Copyright (C) 2014-2023 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
2+ * Copyright (C) 2014-2024 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
33 * *
44 * This software is distributed under the terms of the *
55 * GNU Lesser General Public Licence (LGPL) version 3, *
@@ -64,7 +64,7 @@ Bool_t PixelDigiSource::Init()
6464 return kTRUE ;
6565}
6666
67- int ReadIntFromString (const std::string& wholestr, const std::string& pattern)
67+ static int ReadIntFromString (const std::string& wholestr, const std::string& pattern)
6868{
6969 std::string tempstr = wholestr;
7070 tempstr.replace (0 , tempstr.find (pattern) + pattern.length (), " " );
Original file line number Diff line number Diff line change 11/* *******************************************************************************
2- * Copyright (C) 2023 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
2+ * Copyright (C) 2023-2024 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
33 * *
44 * This software is distributed under the terms of the *
55 * GNU Lesser General Public Licence (LGPL) version 3, *
@@ -40,7 +40,7 @@ using std::string;
4040using std::vector;
4141
4242// fill data payload and save to file
43- void SaveDataToFile (RootOutFileManager<MyDigi>& outMan, RooDataSet& dataset)
43+ static void SaveDataToFile (RootOutFileManager<MyDigi>& outMan, RooDataSet& dataset)
4444{
4545 vector<MyDigi> dataBunch;
4646 dataBunch.reserve (dataset.numEntries ());
Original file line number Diff line number Diff line change 11/* *******************************************************************************
2- * Copyright (C) 2014-2023 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
2+ * Copyright (C) 2014-2024 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
33 * *
44 * This software is distributed under the terms of the *
55 * GNU Lesser General Public Licence (LGPL) version 3, *
@@ -284,7 +284,10 @@ FairMultiLinkedData FairMultiLinkedData::GetLinksWithType(Int_t type) const
284284 return result;
285285}
286286
287- bool LargerWeight (FairLink val1, FairLink val2) { return val1.GetWeight () > val2.GetWeight (); }
287+ static bool LargerWeight (FairLink const & val1, FairLink const & val2)
288+ {
289+ return val1.GetWeight () > val2.GetWeight ();
290+ }
288291
289292std::vector<FairLink> FairMultiLinkedData::GetSortedMCTracks ()
290293{
Original file line number Diff line number Diff line change 11/* *******************************************************************************
2- * Copyright (C) 2014-2023 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
2+ * Copyright (C) 2014-2024 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
33 * *
44 * This software is distributed under the terms of the *
55 * GNU Lesser General Public Licence (LGPL) version 3, *
4646using std::cout;
4747using std::endl;
4848
49- Bool_t gFRAIsInterrupted ;
49+ static Bool_t gFRAIsInterrupted ;
5050
5151// _____________________________________________________________________________
52- void FRA_handler_ctrlc (int )
52+ static void FRA_handler_ctrlc (int )
5353{
5454 LOG (info) << " *********** CTRL C PRESSED *************" ;
5555 gFRAIsInterrupted = kTRUE ;
Original file line number Diff line number Diff line change 11/* *******************************************************************************
2- * Copyright (C) 2014-2023 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
2+ * Copyright (C) 2014-2024 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
33 * *
44 * This software is distributed under the terms of the *
55 * GNU Lesser General Public Licence (LGPL) version 3, *
@@ -97,9 +97,9 @@ FairRunOnline::~FairRunOnline()
9797 }
9898}
9999
100- Bool_t gIsInterrupted ;
100+ static Bool_t gIsInterrupted ;
101101
102- void handler_ctrlc (int )
102+ static void handler_ctrlc (int )
103103{
104104 gIsInterrupted = kTRUE ;
105105}
You can’t perform that action at this time.
0 commit comments