61 ifile.open(templatefile);
63 if(!ifile.is_open()) {
64 cout <<
"Error opening template file " << templatefile << endl;
71 cout <<
"Error opening report output file " << ofile << endl;
80 for(
string line; getline(ifile,
line);) {
82 string::size_type
start;
83 while((
start =
line.find(
'{',0)) != string::npos) {
86 if(
end==string::npos)
break;
88 string::size_type formatpos = expression.find(
':',0);
90 if(formatpos != string::npos) {
91 format=expression.substr(formatpos+1);
92 expression=expression.substr(0,formatpos);
107 delete formula; formula = 0;
126 ostr <<
line << endl;
152 runnum =
new Int_t[1];
161 firstevent =
new Int_t[1];
162 gHcParms->
Define(
"gen_run_starting_event",
"First event analyzed", *firstevent);
171 lastevent =
new Int_t[1];
172 gHcParms->
Define(
"gen_event_id_number",
"Last event analyzed", *lastevent);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t format
R__EXTERN class THaVarList * gHaVars
R__EXTERN class THaCutList * gHaCuts
ClassImp(VDC::AnalyticTTDConv) using namespace std
R__EXTERN class THcParmList * gHcParms
char * Form(const char *fmt,...)
UInt_t GetFirstEvent() const
UInt_t GetNumAnalyzed() const
THaVar * Define(const char *name, const Byte_t &var, const Int_t *count=nullptr)
virtual THaVar * Find(const char *name) const
const void * GetValuePointer() const
void PrintReport(const char *templatefile, const char *ofile)
const char * GetString(const std::string &name) const