Logo coherent WaveBurst  
Library Reference Guide
Logo
wavenoise.hh
Go to the documentation of this file.
1 /*
2 # Copyright (C) 2019 Gabriele Vedovato
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 variance class
21 // Sergey Klimenko, University of Florida
22 //////////////////////////////////////////////////////////
23 
24 
25 #ifndef wavenoise_h
26 #define wavenoise_h
27 
28 #include <TROOT.h>
29 #include <TChain.h>
30 #include <TFile.h>
31 #include "wseries.hh"
32 
33 /* Structure of WaveBurst single IFO event */
34 
35 class wavenoise {
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 layer; // event count
45  Int_t ifo; // ifo ID: 1/2/3 - L1/H1/H2
46  Double_t rms; // noise standard deviation
47  Float_t frequency; // frequency band
48  Double_t time; // measurement gps time
49  Double_t gps; // segment gps time
50 
51 //List of branches
52 
53  TBranch *b_layer; //!
54  TBranch *b_ifo; //!
55  TBranch *b_rms; //!
56  TBranch *b_frequency; //!
57  TBranch *b_time; //!
58  TBranch *b_gps; //!
59 
60  wavenoise() {fChain=NULL;};
61  wavenoise(TTree *tree) {if(tree) Init(tree);};
62  virtual ~wavenoise() { if (!fChain) return; delete fChain->GetCurrentFile(); };
63 
64  virtual wavenoise& operator<<(wavenoise &);
65 
66  Int_t GetEntry(Int_t);
67  void Init(TTree *);
68  Bool_t Notify();
69  TTree* setTree();
70  void output(TTree*, WSeries<double>*, int=0, double=1.);
71 
72 // void Loop();
73 // Int_t Cut(Int_t entry);
74 // Int_t LoadTree(Int_t entry);
75 
76  void Show(Int_t entry = -1);
77 
78  // used by THtml doc
79  ClassDef(wavenoise,1)
80 };
81 
82 #endif
83 
84 
85 
86 
TTree * tree
Definition: TimeSortTree.C:20
Double_t time
Definition: wavenoise.hh:48
TBranch * b_layer
Definition: wavenoise.hh:53
TBranch * b_gps
Definition: wavenoise.hh:58
Float_t frequency
Definition: wavenoise.hh:47
Int_t ifo
Definition: wavenoise.hh:45
TTree * setTree()
Definition: wavenoise.cc:62
Int_t fCurrent
pointer to the analyzed TTree or TChain
Definition: wavenoise.hh:39
TBranch * b_ifo
Definition: wavenoise.hh:54
virtual wavenoise & operator<<(wavenoise &)
Definition: wavenoise.cc:27
Int_t GetEntry(Int_t)
Definition: wavenoise.cc:123
TBranch * b_time
Definition: wavenoise.hh:57
TTree * fChain
Definition: wavenoise.hh:38
void Init(TTree *)
Definition: wavenoise.cc:41
TBranch * b_rms
Definition: wavenoise.hh:55
wavenoise(TTree *tree)
Definition: wavenoise.hh:61
void Show(Int_t entry=-1)
Definition: wavenoise.cc:129
double * entry
Definition: cwb_setcuts.C:224
Int_t layer
current Tree number in a TChain
Definition: wavenoise.hh:44
void output(TTree *, WSeries< double > *, int=0, double=1.)
Definition: wavenoise.cc:84
TBranch * b_frequency
Definition: wavenoise.hh:56
Double_t gps
Definition: wavenoise.hh:49
Double_t rms
Definition: wavenoise.hh:46
Bool_t Notify()
Definition: wavenoise.cc:110
virtual ~wavenoise()
Definition: wavenoise.hh:62