Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
variability.hh
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////
2 // noise variability class
3 // Sergey Klimenko, University of Florida
4 //////////////////////////////////////////////////////////
5 
6 
7 #ifndef variability_h
8 #define variability_h
9 
10 #include <TROOT.h>
11 #include <TChain.h>
12 #include <TFile.h>
13 #include "wavearray.hh"
14 
15 /* Structure of WaveBurst single IFO event */
16 
17 class variability {
18  public :
19 
20  TTree *fChain; //!pointer to the analyzed TTree or TChain
21  Int_t fCurrent; //!current Tree number in a TChain
22 
23 //Declaration of leaves types
24 // for arrays: ifo1 - first index, ifo2 - second index
25 
26  Int_t nevent; // event count
27  Int_t ifo; // ifo ID: 1/2/3 - L1/H1/H2
28  Float_t value; // noise variability
29  Double_t time; // average center_of_snr time
30  Double_t gps; // segment gps time
31 
32 //List of branches
33 
34  TBranch *b_nevent; //!
35  TBranch *b_ifo; //!
36  TBranch *b_value; //!
37  TBranch *b_time; //!
38  TBranch *b_gps; //!
39 
40  variability() {fChain=NULL;};
41  variability(TTree *tree) {if(tree) Init(tree);};
42  virtual ~variability() { if (!fChain) return; delete fChain->GetCurrentFile(); };
43 
45 
46  Int_t GetEntry(Int_t);
47  void Init(TTree *);
48  Bool_t Notify();
49  TTree* setTree();
50  void output(TTree*, wavearray<float>*, int=0, double=0.);
51 
52 // void Loop();
53 // Int_t Cut(Int_t entry);
54 // Int_t LoadTree(Int_t entry);
55 
56  void Show(Int_t entry = -1);
57 
58  // used by THtml doc
59  ClassDef(variability,1)
60 };
61 
62 #endif
63 
64 
65 
66 
TTree * tree
Definition: TimeSortTree.C:20
TTree * setTree()
Definition: variability.cc:42
TBranch * b_gps
Definition: variability.hh:38
TBranch * b_ifo
Definition: variability.hh:35
virtual ~variability()
Definition: variability.hh:42
TTree * fChain
Definition: variability.hh:20
TBranch * b_nevent
Definition: variability.hh:34
Double_t gps
Definition: variability.hh:30
virtual variability & operator<<(variability &)
Definition: variability.cc:9
Int_t GetEntry(Int_t)
Definition: variability.cc:98
TBranch * b_value
Definition: variability.hh:36
Int_t fCurrent
pointer to the analyzed TTree or TChain
Definition: variability.hh:21
double * entry
Definition: cwb_setcuts.C:206
Int_t nevent
current Tree number in a TChain
Definition: variability.hh:26
void Show(Int_t entry=-1)
Definition: variability.cc:104
variability(TTree *tree)
Definition: variability.hh:41
Double_t time
Definition: variability.hh:29
void Init(TTree *)
Definition: variability.cc:22
TBranch * b_time
Definition: variability.hh:37
Float_t value
Definition: variability.hh:28
void output(TTree *, wavearray< float > *, int=0, double=0.)
Definition: variability.cc:63
Bool_t Notify()
Definition: variability.cc:87