PandaRoot
PndFileNameCreator.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
29 #ifndef PNDFILENAMECREATOR_H
30 #define PNDFILENAMECREATOR_H
31 
32 #include <vector>
33 #include <string>
34 
35 #include "TObject.h"
36 
37 class PndFileNameCreator : public TObject {
38  public:
40  explicit PndFileNameCreator(std::string fileName);
41 
42  void SetFileName(std::string fileName) { fFileName = fileName; }
43  void SetVerbose(Int_t v) { fVerbose = v; }
44  std::string GetFileName() const { return fFileName; }
45 
46  std::string GetParFileName(std::string addon = "", bool cut = false);
47  std::string GetSimFileName(std::string addon = "", bool cut = false);
48  std::string GetDigiFileName(std::string addon = "", bool cut = false);
49  std::string GetRecoFileName(std::string addon = "", bool cut = false);
50  std::string GetPidFileName(std::string addon = "", bool cut = false);
51  std::string GetTrackFindingFileName(std::string addon = "", bool cut = false);
52  std::string GetRiemannFileName(std::string addon = "", bool cut = false);
53  std::string GetCombinedRiemannFileName(std::string addon = "", bool cut = false);
54 
55  std::string GetIdealTrackFindingFileName(std::string addon = "", bool cut = false);
56  std::string GetKalmanFileName(std::string addon = "", bool cut = false);
57  std::string GetVertexFileName(std::string addon = "", bool cut = false);
58 
59  std::string GetCustomFileName(std::string ext, std::string addon = "", bool cut = false);
60 
61  std::string GetCustomFileNameInitial(std::string ext);
62 
63  std::string GetPath();
64  std::string GetFileName();
65 
66  private:
67  std::string fFileName;
68  std::string fExtPar;
69  std::string fExtSim;
70  std::string fExtDigi;
71  std::string fExtReco;
72  std::string fExtPid;
73  std::string fExtTrackF;
74  std::string fExtIdealTrackF;
75  std::string fExtRiemann;
76  std::string fExtCombinedRiemann;
77  std::string fExtKalman;
78  std::string fExtVertex;
79 
80  std::string TruncateFileName(bool cut);
81  std::string TruncateInitial();
82  Int_t fVerbose;
83  ClassDef(PndFileNameCreator, 2);
84 };
85 
86 #endif
std::string GetRiemannFileName(std::string addon="", bool cut=false)
std::string GetParFileName(std::string addon="", bool cut=false)
std::string GetVertexFileName(std::string addon="", bool cut=false)
std::string GetDigiFileName(std::string addon="", bool cut=false)
std::string GetCombinedRiemannFileName(std::string addon="", bool cut=false)
void SetFileName(std::string fileName)
std::string GetSimFileName(std::string addon="", bool cut=false)
__m128 v
Definition: P4_F32vec4.h:15
std::string GetIdealTrackFindingFileName(std::string addon="", bool cut=false)
std::string GetRecoFileName(std::string addon="", bool cut=false)
A simple class which adds the corresponding file extensions to a given base class.
std::string GetCustomFileName(std::string ext, std::string addon="", bool cut=false)
std::string GetTrackFindingFileName(std::string addon="", bool cut=false)
void SetVerbose(Int_t v)
std::string GetCustomFileNameInitial(std::string ext)
std::string GetFileName() const
std::string GetPath()
std::string GetKalmanFileName(std::string addon="", bool cut=false)
std::string GetPidFileName(std::string addon="", bool cut=false)