45 TString fFmsGainCorrTag;
46 Int_t fNoChainOptions;
47 vector<TString> Gproperty;
48 vector<TString> Gpattern;
49 vector<TString> Gvalue;
50 #ifdef USE_BFCTIMESTAMP
51 StVecBFCTS GTSOptions;
57 StBFChain(
const char *name=
"bfc",
const Bool_t UseOwnHeader = kFALSE) :
59 ,fBFC(0), fSetFiles(0),fInFile(
""),fFileOut(
""),fTFile(0)
60 ,FDate(0),FTime(0),FDateS(0),FTimeS(0),fFiltTrg(
""),fRunG(0)
61 ,fNoChainOptions(0), fchainOpt(0), fkChain(-1) {}
64 StBFChain(Int_t ,
const char *name=
"bfc",
const Bool_t UseOwnHeader = kFALSE) :
66 ,fSetFiles(0),fInFile(
""),fFileOut(
""),fTFile(0)
67 ,fNoChainOptions(0), fchainOpt(0), fkChain(-1) {}
69 void Setup(Int_t mode=1);
71 virtual Int_t
Make(
int number){ SetIventNumber(number);
return StChain::Make(number);};
76 virtual Int_t AddAB (
const Char_t *after=
"",
const StMaker *maker=0,
const Int_t Opt=1);
77 virtual Int_t AddAfter (
const Char_t *after,
const StMaker *maker) {
return AddAB (after,maker);}
78 virtual Int_t AddBefore (
const Char_t *before,
const StMaker *maker) {
return AddAB (before,maker,-1);}
79 static Int_t ParseString (
const TString &tChain, TObjArray &Opt, Bool_t
Sort=kFALSE);
80 void SetFlags(
const Char_t *Chain=
"gstar tfs");
81 void Set_IO_Files(
const Char_t *infile=0,
const Char_t *outfile=0);
82 void SetInputFile(
const Char_t *infile=0);
84 void SetTFile(TFile *tf) {fTFile=tf;}
85 TFile *GetTFile()
const {
return fTFile;}
86 virtual Int_t
kOpt(
const TString *Tag, Bool_t Check = kTRUE)
const;
87 virtual Int_t
kOpt(
const Char_t *Tag, Bool_t Check = kTRUE)
const;
91 virtual void SetOption(
const Int_t k,
const Char_t *chain=
"Chain");
94 virtual void SetOptions(
const Char_t* Opt,
const Char_t *chain=
"Chain");
95 virtual void SetOptionOff(
const Char_t* Opt,
const Char_t *chain=
"Chain") {
SetOption(-
kOpt(Opt),chain);}
96 virtual void SetOptionOff(
const TString* Opt,
const Char_t *chain=
"Chain") {
SetOption(-
kOpt(Opt),chain);}
98 virtual Option_t* GetOption()
const{
return TObject::GetOption();}
99 virtual Bool_t GetOption(
const Int_t k)
const;
100 virtual Bool_t GetOption(
const TString *Opt, Bool_t Check = kTRUE)
const {
return GetOption(
kOpt(Opt,Check));}
101 virtual Bool_t GetOption(
const Char_t *Opt, Bool_t Check = kTRUE)
const {
return GetOption(
kOpt(Opt,Check));}
103 virtual const TString &GetFileIn()
const {
return *(&fInFile);}
104 virtual const TString &GetFileOut()
const {
return *(&fFileOut);}
105 TString GetGeometry()
const;
106 virtual Long_t ProcessLine(
const char *line);
107 virtual const char *GetCVS()
const {
108 static const char cvs[]=
"Tag $Name: $ $Id: StBFChain.h,v 1.59 2019/11/19 17:26:17 jeromel Exp $ built " __DATE__
" " __TIME__ ;
virtual Int_t Instantiate()
Maker-instantiation handler.
virtual Int_t Finish()
Really the destructor (close files, delete pointers etc ...)
virtual Char_t * GetOptionString(const Char_t *)
Returns the comment string associated to an option.
void SetFlags(const Char_t *Chain="gstar tfs")
Scan all flags, check if they are correct, manipulate the comment if necessary.
virtual void SetTreeOptions()
Creates output-tree branches.
virtual void SetGeantOptions(StMaker *geant=0)
Handles all geant options.
virtual void SetDbOptions(StMaker *db=0)
Treats the DbV options used for database timestamp.
virtual Int_t kOpt(const TString *Tag, Bool_t Check=kTRUE) const
Check option if defined.
virtual void SetOption(const Int_t k, const Char_t *chain="Chain")
Enable/disable valid command line options.
virtual void Sort()
Sort recursively all members of the TDataSet with TList::Sort method.
virtual Int_t Load()
Routine handling library loading depending on chain options.
virtual ~StBFChain()
Destructor. Call Finish() . See this method for detail on what is cleaned.
void SetOutputFile(const Char_t *outfile=0)
Takes care of output file name (extension)