34 void* options,
int numOptions,
Bool_t noLogo ) :
35 THaInterface( appClassName, argc, argv, options, numOptions,
kTRUE )
50 SetPrompt(
"hcana [%d] ");
64 if( fgAint ==
this ) {
70 #if ROOT_VERSION_CODE < ROOT_VERSION(5,18,0)
78 Int_t iday,imonth,iyear,mille;
79 static const char* months[] = {
"Jan",
"Feb",
"Mar",
"Apr",
"May",
80 "Jun",
"Jul",
"Aug",
"Sep",
"Oct",
82 const char* root_version =
gROOT->GetVersion();
85 imonth = (idatqq/100)%100;
86 iyear = (idatqq/10000);
89 else if ( iyear < 1900 )
93 char* root_date =
Form(
"%s %d %4d",months[imonth-1],iday,mille);
98 #if ROOT_VERSION_CODE >= ROOT_VERSION(5,18,0)
101 Printf(
" ************************************************");
103 Printf(
" * W E L C O M E to the *");
104 Printf(
" * H A L L C ++ A N A L Y Z E R *");
108 Printf(
" * ROOT %10s %16s *",root_version,root_date);
110 Printf(
" * For information visit *");
111 Printf(
" * http://hallcweb.jlab.org/hcana/docs/ *");
113 Printf(
" ************************************************");
114 #if ROOT_VERSION_CODE >= ROOT_VERSION(5,18,0)
134 if( version_string.
IsNull() ) {
139 ostr << THaInterface::GetVersionString();
140 version_string = ostr.str().c_str();
142 return version_string.
Data();
static void SetMaxTreeSize(Long64_t maxsize=100000000000LL)
static const char * GetVersionString()
THcDetectorMap * gHcDetectorMap
Class to read and hold a Hall C style detector map.
const char * Data() const
THcInterface is the interactive interface to the Hall C Analyzer.
char * Form(const char *fmt,...)
void Printf(const char *fmt,...)
ClassImp(THcDCLookupTTDConv) THcDCLookupTTDConv
THcInterface(const char *appClassName, int *argc, char **argv, void *options=NULL, int numOptions=0, Bool_t noLogo=kFALSE)
A list parameters and their values.