10 #include "KVINDRAGeneDataAnalyser.h"
12 #include "KVDataSet.h"
13 #include "KVINDRAGeneDataSelector.h"
14 #include <KVINDRADBRun.h>
61 while (!GetRunList().
End()) {
63 run = GetRunList().Next();
66 cout <<
" to the TChain." << endl;
72 if (!selector || !selector->
InheritsFrom(
"KVINDRAGeneDataSelector")) {
73 cout <<
"The selector \"" << GetUserClass() <<
"\" is not valid." << endl;
74 cout <<
"Process aborted." << endl;
77 if (GetNbEventToRead()) {
78 t->
Process(GetUserClass(),
"", GetNbEventToRead());
84 if (selector)
delete selector;
102 GetDataSet()->GetRunList(datatype.
Data(), GetSystem());
106 vector<int> triggers;
108 while (!all_runs.
End()) {
109 dbrun = (
KVINDRADBRun*)GetDataSet()->GetDataBase()->GetDBRun(all_runs.
Next());
110 if (triggers.size() == 0
111 || std::find(triggers.begin(), triggers.end(), dbrun->
GetTrigger()) != triggers.end()) {
116 std::sort(triggers.begin(), triggers.end());
119 for (std::vector<int>::iterator it = triggers.begin(); it != triggers.end(); ++it) {
120 cout <<
" ---> Trigger M>" << *it << endl;
122 while (!all_runs.
End()) {
123 dbrun = (
KVINDRADBRun*)GetDataSet()->GetDataBase()->GetDBRun(all_runs.
Next());
127 cout <<
"\t[File written: " << dbrun->
GetDatime().
char * Form(const char *fmt,...)
virtual Int_t GetNumber() const
ULong64_t GetEvents() const
const TDatime & GetDatime() const
const Char_t * GetComments() const
TString GetFullPathToRunfile(const Char_t *type, Int_t run) const
Database entry for each run of an INDRA experiment.
For analysing INDRA gene (pulser) data.
virtual ~KVINDRAGeneDataAnalyser()
Destructor.
virtual KVNumberList PrintAvailableRuns(KVString &datatype)
virtual void SubmitTask()
For analysing INDRA pulser & laser data.
Strings used to represent a set of ranges of values.
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
virtual Int_t Add(const char *name, Long64_t nentries=TTree::kMaxEntries)
Long64_t Process(const char *filename, Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0) override
void SetDirectory(TDirectory *dir) override
virtual Bool_t InheritsFrom(const char *classname) const
const char * Data() const
BinData::ErrorType GetDataType(const TGraph *gr, DataOptions &fitOpt)