12 #include <utl/ErrorLogger.h>
14 #include <det/Detector.h>
16 #include <utl/TimeStamp.h>
18 #include <evt/Event.h>
19 #include <evt/ShowerRecData.h>
20 #include <evt/ShowerSRecData.h>
22 #include <sevt/SEvent.h>
23 #include <sevt/Header.h>
24 #include <sevt/Station.h>
26 #include <sevt/PMTRecData.h>
27 #include <sevt/StationRecData.h>
28 #include <sevt/SortCriteria.h>
29 #include <fwk/LocalCoordinateSystem.h>
31 #include <utl/Trace.h>
32 #include <utl/AugerUnits.h>
33 #include <utl/MathConstants.h>
34 #include <utl/PhysicalConstants.h>
35 #include <utl/TabulatedFunctionErrors.h>
36 #include <utl/UTMPoint.h>
37 #include <fwk/CentralConfig.h>
40 #include <TObjArray.h>
42 #include <TGraphErrors.h>
43 #include <TMultiGraph.h>
52 #include <TPaveText.h>
90 if (
_Mode !=
"check") {
101 for (list<string>::const_iterator
m = module.begin();
102 m != module.end(); ++
m)
116 INFO(
"SValidStore::Run()");
118 if (
_Mode !=
"check")
119 for (map<string, ValidationObj*>::const_iterator vo =
_ObjList.begin();
125 if (vObj->
Fill(event)) {
133 for (map<string, ValidationObj*>::const_iterator vo =
_ObjList.begin();
137 cout <<
"Retrieving Module Name = " << vObj->
GetModuleName() <<
" ... " << endl;
140 cout <<
"Module name retrieved!" << endl;
143 cout <<
"INFO::before fill!" << endl;
145 if (vObj->
Fill(event)) {
148 cout <<
"\n\n\n Obj " << vObj->
GetModuleName() <<
" validated!\n\n\n";
154 cout <<
"\n+++++++++++++++++++++++++++++++++++++++++++++++++++++++\n"
155 "\n\n\n Obj " << vObj->
GetModuleName() <<
" NOT Validated!\n\n\n"
156 "\nIn Reference file:" << endl;
158 cout <<
"\nIn last checkout:" << endl;
161 cout <<
"\n+++++++++++++++++++++++++++++++++++++++++++++++++++++++\n" << endl;
174 INFO(
"SValidStore::Finish()");
175 if (
_Mode ==
"check")
176 for (map<string, ValidationObj*>::const_iterator vo =
_ObjList.begin();
180 cout <<
"\n+++++++++++++++++++++++++++++++++++++++++++++++++++++++\n"
181 "\n\n\n Obj " << vObj->
GetModuleName() <<
" NOT Validated!\n\n\n"<<endl;
182 cout<<
"\n\n\n Event rejected before the Validation Module in this Chain \n\n\n" <<endl;
183 cout <<
"\n+++++++++++++++++++++++++++++++++++++++++++++++++++++++\n" << endl;
217 if (objName ==
"SIOValidation" || objName ==
"SIOValidationObj")
219 else if (objName ==
"FIOValidation" || objName ==
"FIOValidationObj")
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
virtual std::string GetModuleName() const
virtual bool SetTVObj(TValidationObj *, const std::string &name)
virtual bool Fill(const evt::Event &event)=0
Report success to RunController.
TValidationPtr * _TvObjPtr
bool HasRecShower() const
virtual bool Validate(TValidationObj *const e)
#define INFO(message)
Macro for logging informational messages.
Branch GetChild(const std::string &childName) const
Get child of this Branch by child name.
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
void GetData(bool &b) const
Overloads of the GetData member template function.
ResultFlag
Flag returned by module methods to the RunController.
virtual void SetValidationOk()
utl::Branch _xmlSValidStore
virtual bool IsValidate()
static CentralConfig * GetInstance()
Use this the first time you get an instance of central configuration.
std::map< std::string, ValidationObj * > _ObjList
Report failure to RunController, causing RunController to terminate execution.
Main configuration utility.
void RecInfo(const evt::Event &event)
ValidationObj * Factory(const std::string &ObjName)
virtual TValidationObj * GetTObject() const
utl::Branch GetTopBranch(const std::string &id)
Get top branch for moduleConfigLink with given id (XML files)
void ExamineEvent(const evt::Event &event)
virtual TValidationObj * GetTVObj()