48 if(!opt) fExperiment =
"An experiment"; fRunNumber = fSubRunNumber = 0;
63 string tmp1, tmp2; Bool_t ok_decode =
true;
65 if ( aline.find(
"Experiment:") == 0 ) {
66 fExperiment = aline.substr(11);
69 if ( aline.find(
"RunNumber:") == 0 ) {
72 istringstream decode(aline);
75 decode >> tmp1 >> run >> subrun ;
76 if ( decode.good() ) {
77 fRunNumber = run; fSubRunNumber = subrun;
79 else ok_decode =
false;
82 if ( aline.find(
"GlobalVertex:") == 0 ) {
83 Double_t d0, d1, d2, d3, d4, d5, d6;
85 istringstream decode(aline);
88 decode >> tmp1 >> d0 >> d1 >> d2 >> d3 >> d4 >> d5 >> d6 ;
89 if ( decode.good() ) {
91 fGlobalVertex[0] = d0;
92 fGlobalVertex[1] = d1;
93 fGlobalVertex[2] = d2;
95 fGlobalVertex[3] = d3;
96 fGlobalVertex[4] = d4;
97 fGlobalVertex[5] = d5;
99 fGlobalVertex[6] = d6;
101 else ok_decode =
false;
111 out <<
"# Experiment Name \n";
112 out <<
"Experiment: " << fExperiment <<
"\n";
113 out <<
"# Run, Subrun \n";
114 out <<
"RunNumber: " << fRunNumber <<
" " << fSubRunNumber <<
"\n";
115 out <<
"# Global vertex x,y,z,dx,dy,dz,beta \n";
116 out <<
"GlobalVertex: "
DotConf : Utility for class configuration from ascii file or Configuration frames.
virtual Bool_t ProcessLine(const std::string &)
a helper template to do clones : it requires a default constructor. then it uses the Configure facili...
RunAgent(const Char_t *rid, const Char_t *srid, Bool_t is_record=true)
LogMessage fLog
the log messenger ... to know the object hae been properly intitialised/modified
virtual void Reset(const Char_t *opt="")
Reset this object.
virtual Bool_t DoConfigure(std::istream &in, Bool_t allow_init)
configure this from an input stream
header file for RunAgent.cpp
virtual std::string & GetProcessName()
To get the Process name.
Bool_t AddRecord(std::ostream &, char t= 'b')
Add a begin or end of record, return true if done.