1#ifndef Podd_THaAnalysisObject_h_
2#define Podd_THaAnalysisObject_h_
64 virtual void SetName(
const char* name );
65 virtual void SetNameTitle(
const char* name,
const char* title );
76 const DBRequest* request,
const char* prefix,
78 const char*
here =
"THaAnalysisObject::LoadDB" )
80 return Podd::LoadDatabase(
file, date, request, prefix, search,
here);
99 const char* def_prefix,
103 const char* comment_subst =
"" );
130 const char* def_prefix =
"",
131 const char* comment_subst =
"" )
const;
133 const char* def_prefix =
"",
134 const char* comment_subst =
"" )
const;
136 EMode mode,
const char* def_prefix =
"",
137 const char* comment_subst =
"" )
const;
139 virtual void DoError(
int level,
const char* location,
140 const char* fmt, va_list va)
const;
143 bool do_error =
true );
145 virtual const char*
Here(
const char* )
const;
148 const DBRequest* req,
Int_t search = 0 )
const;
156 void DebugPrint(
const DBRequest* list )
const;
158 template <
typename T>
159 static void WriteValue( T val,
int p=0,
int w=5 );
#define ClassDef(name, id)
static const char *const here
virtual void SetDebug(Int_t level)
static void GeoToSph(Double_t th_geo, Double_t ph_geo, Double_t &th_sph, Double_t &ph_sph)
virtual Int_t ReadRunDatabase(const TDatime &date)
virtual void SetNameTitle(const char *name, const char *title)
virtual Int_t Begin(THaRunBase *r=nullptr)
static void SphToGeo(Double_t th_sph, Double_t ph_sph, Double_t &th_geo, Double_t &ph_geo)
THaAnalysisObject(const THaAnalysisObject &)=delete
static Int_t LoadDB(FILE *file, const TDatime &date, const DBRequest *request, const char *prefix, Int_t search=0, const char *here="THaAnalysisObject::LoadDB")
const char * GetConfig() const
static Int_t DefineVarsFromList(const void *list, EType type, EMode mode, const char *def_prefix, const TObject *obj, const char *prefix, const char *here, const char *comment_subst="")
virtual Int_t InitOutput(THaOutput *)
virtual const char * Here(const char *) const
THaAnalysisObject & operator=(const THaAnalysisObject &)=delete
const char * GetPrefix() const
THaAnalysisObject * FindModule(const char *name, const char *classname, bool do_error=true)
virtual Int_t ReadDatabase(const TDatime &date)
std::map< std::string, UInt_t > fMessages
virtual const char * ClassNameHere(const char *) const
virtual void MakePrefix()
TString GetPrefixName() const
TDatime GetInitDate() const
static Bool_t IntersectPlaneWithRay(const TVector3 &xax, const TVector3 &yax, const TVector3 &org, const TVector3 &ray_start, const TVector3 &ray_vect, Double_t &length, TVector3 &intersect)
void SetConfig(const char *label)
virtual FILE * OpenRunDBFile(const TDatime &date)
const char * GetClassName() const
virtual Int_t DefineVariables(EMode mode=kDefine)
virtual void DoError(int level, const char *location, const char *fmt, va_list va) const
virtual ~THaAnalysisObject()
THaAnalysisObject(const THaAnalysisObject &&)=delete
UInt_t fNEventsWithWarnings
virtual FILE * OpenFile(const TDatime &date)
static void PrintObjects(Option_t *opt="")
virtual void Clear(Option_t *="")
virtual const char * GetDBFileName() const
Int_t DefineVariablesWrapper(EMode mode=kDefine)
THaAnalysisObject & operator=(const THaAnalysisObject &&)=delete
virtual void SetName(const char *name)
virtual void Print(Option_t *opt="") const
const char * Data() const