er  dev
Public Member Functions | List of all members
ERCalibrationSSD::CalibIOManager Class Reference
Inheritance diagram for ERCalibrationSSD::CalibIOManager:
Inheritance graph
[legend]
Collaboration diagram for ERCalibrationSSD::CalibIOManager:
Collaboration graph
[legend]

Public Member Functions

 CalibIOManager (const TString &workdir)=delete
 
TString ConstructSensorFilePath (const std::set< TString > &subdirs, const TString &prefix, const TString &nameRoot, const std::vector< SensorRunInfo * > *sensors, const TString &extension="root")
 Returns file path according to sensor names, prefix and extension by scheme [WORK_DIR]/(sensor_name_1)_..._[sensor_name_N]/(subdirs)/(prefix)_(name_root)_(sensor_name_1)_..._[sensor_name_N].(extension)
 
TString ConstructFilePath (const std::set< TString > &subdirs, const TString &prefix, const TString &nameRoot, const std::vector< SensorRunInfo * > *sensors, const TString &extension="root")
 Returns file path according to subdirs list, prefix and extension by scheme [WORK_DIR]/(subdirs)/(prefix)_(name_root).(extension)
 
TString GetPath (const Int_t fileType, const TString &nameRoot, const std::vector< SensorRunInfo * > *sensors=nullptr)
 Returns a path to a desired file File storing structure is fixed for the calibrations procedure. More...
 
TString GetPath (const Int_t fileType, const TString &nameRoot, const SensorRunInfo *sensor=nullptr)
 Returns a path to a desired file File storing structure is fixed for the calibrations procedure.
 
template<typename T >
std::vector< T > GetSensorThresholds (const SensorRunInfo *sensor, const TString &runId)
 Returns a std::vector of sensor noise threshold. If user defined file was set for sensor, values are read from it. Otherwise, standard file path is used.
 
template<typename T >
std::vector< std::vector< T > > GetCalibCoefficients (const SensorRunInfo *sensor, const TString &runId)
 
- Public Member Functions inherited from ERCalibrationSSD::IOManager
 IOManager (const TString &workdir)=delete
 
TFile * CreateRootFile (const TString &filePath)
 Creates output ROOT-file Creates a file and all the needed subdirectories. More...
 
TFile * OpenRootFile (const TString &filePath)
 Opens ROOT file. More...
 
std::ofstream CreateTextFile (const TString &filePath)
 Creates output text file Creates a file and all the needed subdirectories. More...
 
std::ifstream OpenTextFile (const TString &filePath)
 Opens output text file. More...
 
void Write (const TObjArray *arr)
 Serilizes list of objects to a current opened ROOT file directory. More...
 
void Write (TObject *obj)
 Serilizes an object to a current opened ROOT file directory. More...
 
void MakeDir (const TString &dirname)
 Creates directory in a current working directory. More...
 
void ChangeDir (const TString &dirname)
 Changes working directory. More...
 

Additional Inherited Members

- Protected Attributes inherited from ERCalibrationSSD::IOManager
TString fWorkDir = "."
 
Bool_t fRecreate = true
 

Detailed Description

Definition at line 596 of file ERCalibrationSSD.cxx.

Member Function Documentation

TString ERCalibrationSSD::CalibIOManager::GetPath ( const Int_t  fileType,
const TString &  nameRoot,
const std::vector< SensorRunInfo * > *  sensors = nullptr 
)

Returns a path to a desired file File storing structure is fixed for the calibrations procedure.

Parameters
fileTypeclassified by the enum FileType
sensorsvector of stations

Definition at line 702 of file ERCalibrationSSD.cxx.


The documentation for this class was generated from the following file: