Skip to content
Snippets Groups Projects

Remove ROOT dependencies

Merged Florian Uhlig requested to merge f.uhlig/cbmroot:fix_root_dependencies into master
2 files
+ 20
13
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -11,11 +11,9 @@
@@ -11,11 +11,9 @@
#include "CbmPsdDigi.h"
#include "CbmPsdDigi.h"
#include <TBuffer.h> // for TBuffer
#include <iomanip> // for hex, setw, setfill, fixed, setprecission
#include <TClass.h> // for CbmPsdDigi::IsA()
#include <sstream> // for operator<<, basic_ostream, char_trait
#include <TString.h> // for Form, TString
#include <string> // for basic_string
#include <string> // for basic_string
// --- Copy constructor
// --- Copy constructor
CbmPsdDigi::CbmPsdDigi(const CbmPsdDigi& other) : fuAddress(other.fuAddress), fdTime(other.fdTime), fdEdep(other.fdEdep)
CbmPsdDigi::CbmPsdDigi(const CbmPsdDigi& other) : fuAddress(other.fuAddress), fdTime(other.fdTime), fdEdep(other.fdEdep)
@@ -37,8 +35,13 @@ void CbmPsdDigi::SetAddress(uint32_t moduleId, uint32_t sectionId)
@@ -37,8 +35,13 @@ void CbmPsdDigi::SetAddress(uint32_t moduleId, uint32_t sectionId)
// --- Info to string
// --- Info to string
std::string CbmPsdDigi::ToString() const
std::string CbmPsdDigi::ToString() const
{
{
TString string = Form("CbmPsdDigi: address = 0x%08X Charge = %f Time = %f", fuAddress, fdEdep, fdTime);
// Example output
return string.Data();
// CbmPsdDigi: address = 0x00001018 Charge = 0.011590 Time = 1006.438294
 
 
std::stringstream ss;
 
ss << "CbmPsdDigi: address = 0x" << std::uppercase << std::hex << std::setw(8) << std::setfill('0') << fuAddress
 
<< " Charge = " << std::fixed << std::setprecision(6) << fdEdep << " Time = " << fdTime;
 
return ss.str();
}
}
#ifndef NO_ROOT
#ifndef NO_ROOT
Loading