JAPAn
Just Another Parity Analyzer
Loading...
Searching...
No Matches
QwRunCondition.h
Go to the documentation of this file.
1/*!
2 * \file QwRunCondition.h
3 * \brief Run condition management and metadata
4 * \author jhlee@jlab.org
5 * \date 2010-09-09
6 */
7
8#pragma once
9
10#include <unistd.h>
11#include <iostream>
12#include <fstream>
13
14#include "TROOT.h"
15#include "TList.h"
16#include "TString.h"
17#include "TObjString.h"
18#include "TTimeStamp.h"
19
20/**
21 * \class QwRunCondition
22 * \ingroup QwAnalysis
23 * \brief Run condition and quality management
24 *
25 * Manages run-level conditions including run quality flags,
26 * beam conditions, and other run-specific parameters used
27 * for data quality assessment and analysis filtering.
28 */
30{
31
32 public:
34 QwRunCondition(Int_t argc, Char_t* argv[], TString name);
35 virtual ~QwRunCondition();
36
37 TList* Get();
38 TString GetName();
39
40 void SetROCFlagsFileName(const TString in) {fROCFlagFileName = in;};
41
42
43
44 private:
45
46 void SetArgs(Int_t argc, Char_t* argv[]);
47 void SetName(const TString name);
48 void Add(TString in);
49
50 TString GetROCFlags();
51
53
55 static const Int_t fCharLength;
56
57 // Do not let compiler generate these automatically
58 QwRunCondition(const QwRunCondition& rhs); // copy constructor
59 QwRunCondition& operator = (const QwRunCondition& rhs); // assignment operator
60 QwRunCondition* operator&(); // address-of operator
61 const QwRunCondition* operator&() const; // address-of operator
62
63};
64
65
66// How to access fRunConditionList
67// TList *list = (TList*) file->FindObjectAny(fRunConditoinList name);
68// for example,
69//
70// TFile *file = TFile::Open("Qweak_5150.root")
71// TList *list = (TList*) file->FindObjectAny("5150_condition");
72// if(list) {
73// std::cout << list->Print() << std::endl;
74// std::cout << list->GetEntries() << std::endl;
75// std::cout << list->GetSize() << std::endl;
76// std::cout << list->GetName() << std::endl;
77// for(Int_t i=0; i < list->GetSize(); i++) {
78// std::cout << list->At(i)->GetName() << std::endl;
79// }
80// }
QwRunCondition & operator=(const QwRunCondition &rhs)
TString GetROCFlags()
void SetArgs(Int_t argc, Char_t *argv[])
QwRunCondition(const QwRunCondition &rhs)
QwRunCondition * operator&()
void SetROCFlagsFileName(const TString in)
TList * fRunConditionList
virtual ~QwRunCondition()
void Add(TString in)
void SetName(const TString name)
TString fROCFlagFileName
const QwRunCondition * operator&() const
static const Int_t fCharLength