fAlignObjArray(NULL),
fCDBUri(cdbUri),
fRemoteCDBUri(""),
- fSpecCDBUri()
+ fSpecCDBUri(),
+ fRunQA(kTRUE)
+
{
// create reconstruction object with default parameters
fAlignObjArray(rec.fAlignObjArray),
fCDBUri(rec.fCDBUri),
fRemoteCDBUri(rec.fRemoteCDBUri),
- fSpecCDBUri()
+ fSpecCDBUri(),
+ fRunQA(kTRUE)
{
// copy constructor
}
//QA
- AliQADataMakerSteer qas ;
- qas.Run(AliQA::kRECPOINTS) ;
- qas.Reset() ;
- qas.Run(AliQA::kESDS) ;
-
+ if ( fRunQA ) {
+ AliQADataMakerSteer qas ;
+ qas.Run(AliQA::kRECPOINTS) ;
+ qas.Reset() ;
+ qas.Run(AliQA::kESDS) ;
+ }
return kTRUE;
}
// AliQADataMaker* GetQADataMaker(Int_t iDet);
// const Int_t GetQACycles(const char * detector) { return fQACycles[GetDetIndex(detector)] ; }
void CheckQA() ;
+ void SetQA(const Bool_t val) { fRunQA = val ; }
//*** Global reconstruction flags *******************
Bool_t fUniformField; // uniform field tracking flag
//Quality Assurance
// AliQADataMaker * fQADataMaker[fgkNDetectors]; //! array of QA data maker objects
// Int_t fQACycles[fgkNDetectors] ; // cycle length (# events) over which QA data are accumulated
+ Bool_t fRunQA ; // Runs the QA at the end of simulation
- ClassDef(AliReconstruction, 15) // class for running the reconstruction
+ ClassDef(AliReconstruction, 16) // class for running the reconstruction
};
#endif
fRemoteCDBUri(""),
fSpecCDBUri(),
fEmbeddingFlag(kFALSE),
+ fRunQA(kTRUE),
fRunHLT("default")
{
// create simulation object with default parameters
fRemoteCDBUri(sim.fRemoteCDBUri),
fSpecCDBUri(),
fEmbeddingFlag(sim.fEmbeddingFlag),
+ fRunQA(kTRUE),
fRunHLT(sim.fRunHLT)
{
// copy constructor
}
//QA
- if (!RunQA("ALL", AliQA::kHITS))
- if (fStopOnError)
- return kFALSE ;
+ if (fRunQA)
+ if (!RunQA("ALL", AliQA::kHITS))
+ if (fStopOnError)
+ return kFALSE ;
// Set run number in CDBManager (if it is not already set in RunSimulation)
if (!SetRunNumber()) if (fStopOnError) return kFALSE;
if (!fMakeSDigits.IsNull()) {
if (!RunSDigitization(fMakeSDigits)) if (fStopOnError) return kFALSE;
//QA
- RunQA(fMakeSDigits, AliQA::kSDIGITS) ;
+ if (fRunQA)
+ RunQA(fMakeSDigits, AliQA::kSDIGITS) ;
}
if (fStopOnError) return kFALSE;
}
//QA
- if (!RunQA(fMakeDigits, AliQA::kDIGITS) )
- if (fStopOnError)
- return kFALSE ;
+ if (fRunQA)
+ if (!RunQA(fMakeDigits, AliQA::kDIGITS) )
+ if (fStopOnError)
+ return kFALSE ;
}
// hits -> digits
if (fStopOnError) return kFALSE;
}
//QA
- if( !RunQA(fMakeDigitsFromHits, AliQA::kDIGITS) )
- if (fStopOnError)
- return kFALSE ;
+ if (fRunQA)
+ if( !RunQA(fMakeDigitsFromHits, AliQA::kDIGITS) )
+ if (fStopOnError)
+ return kFALSE ;
}
const Int_t GetQACycles(const char * detector) { return fQACycles[GetDetIndex(detector)] ; }
void SetQACycles(const char * detector, const Int_t cycles) { fQACycles[GetDetIndex(detector)] = cycles ; }
Bool_t RunQA(const char* detectors, AliQA::TASKINDEX task) ;
-
+ void SetQA(const Bool_t val) { fRunQA = val ; }
+
private:
AliRunLoader* LoadRun(const char* mode = "UPDATE") const;
Int_t GetNSignalPerBkgrd(Int_t nEvents = 0) const;
static const Int_t fgkNDetectors = 15 ; // number of detectors
static const char * fgkDetectorName[fgkNDetectors] ; // names of detectors
Int_t fQACycles[fgkNDetectors] ; // cycle length (# events) over which QA data are accumulated
+ Bool_t fRunQA ; // Runs the QA at the end of simulation
//HLT
TString fRunHLT; // HLT options, HLT is disabled if empty, default='default'
- ClassDef(AliSimulation, 6) // class for running generation, simulation and digitization
+ ClassDef(AliSimulation, 7) // class for running generation, simulation and digitization
};
#endif