6 #include <TDirectory.h>
25 using namespace Diana;
30 fReaderWriterFiles.clear();
31 fAppendToInput = GetBool(
"AppendToInput",
false,
false) ;
32 fSkipGenerated =
false;
34 if(fRWCommon->fEventGeneratorOn)
35 fSkipGenerated = GetBool(
"SkipGeneratedEvents",
false,
false);
36 if(!GetBool(
"SetListForReader",
true,
false)) {
37 Panic(
"AppendToInput option complains about: SetListForReader parameter"
38 " is not applicable (true is mandatory). Remove this parameter "
39 "from the config file");
41 if(!GetBool(
"SyncWithReader",
true,
false)) {
42 Panic(
"AppendToInput option complains about: SyncWithReader parameter "
43 "is not applicable (true is mandatory). Remove this parameter "
44 "from the config file");
46 if(GetBool(
"SkipEvents",
false,
false)) {
47 Panic(
"AppendToInput option complains about: SkipEvents parameter is "
48 "not applicable (false is mandatory). Remove this parameter from"
51 if(fRWCommon->fEventGeneratorOn && !fSkipGenerated) {
52 Panic(
"AppendToInput option complains about: reader parameter "
53 "\"EventGeneratorOn\" is not compatible (false is mandatory or "
54 "SkipGenerated is true)");
56 if(fRWCommon->fDeleteInputFiles) {
57 Panic(
"AppendToInput option complains about: reader parameter "
58 "\"DeleteInputFiles\" is not compatible (false is mandatory)");
60 if(fRWCommon->fReaderModuleName !=
"RootFileReader") {
61 Panic(
"AppendToInput option complains about: reader %s is not "
62 "compatible (use RootFileReader)",
63 fRWCommon->fReaderModuleName.c_str());
65 if(fRWCommon->fInclusiveMode ==
true) {
66 Warn(
"AppendToInput suggests: set the reader parameter InclusiveMode "
67 "to false, it is much more efficient!");
72 if(fSyncWithReader && fRWCommon->fParallelRW)
73 Panic(
"Cannot use serial file writer with parallel file reader and "
74 "SyncWithReader! Try ParaRootFileWriter!");
#define REGISTER_MODULE(clazz)
void Init(Diana::QEventInspector &evi)
Initialization class called by the Sequence.
Visitor class to inspect the QEvent content.
virtual void Init(QEventInspector &evi)
Init method called by the framework.
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...