Logo coherent WaveBurst  
Library Reference Guide
Logo
variability.hh
Go to the documentation of this file.
1 /*
2 # Copyright (C) 2019 Gabriele Vedovato, Sergey Klimenko
3 #
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17 
18 
19 //////////////////////////////////////////////////////////
20 // noise variability class
21 // Sergey Klimenko, University of Florida
22 //////////////////////////////////////////////////////////
23 
24 
25 #ifndef variability_h
26 #define variability_h
27 
28 #include <TROOT.h>
29 #include <TChain.h>
30 #include <TFile.h>
31 #include "wavearray.hh"
32 
33 /* Structure of WaveBurst single IFO event */
34 
35 class variability {
36  public :
37 
38  TTree *fChain; //!pointer to the analyzed TTree or TChain
39  Int_t fCurrent; //!current Tree number in a TChain
40 
41 //Declaration of leaves types
42 // for arrays: ifo1 - first index, ifo2 - second index
43 
44  Int_t nevent; // event count
45  Int_t ifo; // ifo ID: 1/2/3 - L1/H1/H2
46  Float_t value; // noise variability
47  Double_t time; // average center_of_snr time
48  Double_t gps; // segment gps time
49 
50 //List of branches
51 
52  TBranch *b_nevent; //!
53  TBranch *b_ifo; //!
54  TBranch *b_value; //!
55  TBranch *b_time; //!
56  TBranch *b_gps; //!
57 
58  variability() {fChain=NULL;};
59  variability(TTree *tree) {if(tree) Init(tree);};
60  virtual ~variability() { if (!fChain) return; delete fChain->GetCurrentFile(); };
61 
63 
64  Int_t GetEntry(Int_t);
65  void Init(TTree *);
66  Bool_t Notify();
67  TTree* setTree();
68  void output(TTree*, wavearray<float>*, int=0, double=0.);
69 
70 // void Loop();
71 // Int_t Cut(Int_t entry);
72 // Int_t LoadTree(Int_t entry);
73 
74  void Show(Int_t entry = -1);
75 
76  // used by THtml doc
77  ClassDef(variability,1)
78 };
79 
80 #endif
81 
82 
83 
84 
TTree * tree
Definition: TimeSortTree.C:20
TTree * setTree()
Definition: variability.cc:60
TBranch * b_gps
Definition: variability.hh:56
TBranch * b_ifo
Definition: variability.hh:53
virtual ~variability()
Definition: variability.hh:60
TTree * fChain
Definition: variability.hh:38
TBranch * b_nevent
Definition: variability.hh:52
Double_t gps
Definition: variability.hh:48
virtual variability & operator<<(variability &)
Definition: variability.cc:27
Int_t GetEntry(Int_t)
Definition: variability.cc:116
TBranch * b_value
Definition: variability.hh:54
Int_t fCurrent
pointer to the analyzed TTree or TChain
Definition: variability.hh:39
double * entry
Definition: cwb_setcuts.C:224
Int_t nevent
current Tree number in a TChain
Definition: variability.hh:44
void Show(Int_t entry=-1)
Definition: variability.cc:122
variability(TTree *tree)
Definition: variability.hh:59
Double_t time
Definition: variability.hh:47
void Init(TTree *)
Definition: variability.cc:40
TBranch * b_time
Definition: variability.hh:55
Float_t value
Definition: variability.hh:46
void output(TTree *, wavearray< float > *, int=0, double=0.)
Definition: variability.cc:81
Bool_t Notify()
Definition: variability.cc:105