Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
wavenoise.hh
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////
2 // noise variance class
3 // Sergey Klimenko, University of Florida
4 //////////////////////////////////////////////////////////
5 
6 
7 #ifndef wavenoise_h
8 #define wavenoise_h
9 
10 #include <TROOT.h>
11 #include <TChain.h>
12 #include <TFile.h>
13 #include "wseries.hh"
14 
15 /* Structure of WaveBurst single IFO event */
16 
17 class wavenoise {
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 layer; // event count
27  Int_t ifo; // ifo ID: 1/2/3 - L1/H1/H2
28  Double_t rms; // noise standard deviation
29  Float_t frequency; // frequency band
30  Double_t time; // measurement gps time
31  Double_t gps; // segment gps time
32 
33 //List of branches
34 
35  TBranch *b_layer; //!
36  TBranch *b_ifo; //!
37  TBranch *b_rms; //!
38  TBranch *b_frequency; //!
39  TBranch *b_time; //!
40  TBranch *b_gps; //!
41 
42  wavenoise() {fChain=NULL;};
43  wavenoise(TTree *tree) {if(tree) Init(tree);};
44  virtual ~wavenoise() { if (!fChain) return; delete fChain->GetCurrentFile(); };
45 
46  virtual wavenoise& operator<<(wavenoise &);
47 
48  Int_t GetEntry(Int_t);
49  void Init(TTree *);
50  Bool_t Notify();
51  TTree* setTree();
52  void output(TTree*, WSeries<double>*, int=0, double=1.);
53 
54 // void Loop();
55 // Int_t Cut(Int_t entry);
56 // Int_t LoadTree(Int_t entry);
57 
58  void Show(Int_t entry = -1);
59 
60  // used by THtml doc
61  ClassDef(wavenoise,1)
62 };
63 
64 #endif
65 
66 
67 
68 
TTree * tree
Definition: TimeSortTree.C:20
Double_t time
Definition: wavenoise.hh:30
TBranch * b_layer
Definition: wavenoise.hh:35
TBranch * b_gps
Definition: wavenoise.hh:40
Float_t frequency
Definition: wavenoise.hh:29
Int_t ifo
Definition: wavenoise.hh:27
TTree * setTree()
Definition: wavenoise.cc:44
Int_t fCurrent
pointer to the analyzed TTree or TChain
Definition: wavenoise.hh:21
TBranch * b_ifo
Definition: wavenoise.hh:36
virtual wavenoise & operator<<(wavenoise &)
Definition: wavenoise.cc:9
Int_t GetEntry(Int_t)
Definition: wavenoise.cc:105
TBranch * b_time
Definition: wavenoise.hh:39
TTree * fChain
Definition: wavenoise.hh:20
void Init(TTree *)
Definition: wavenoise.cc:23
TBranch * b_rms
Definition: wavenoise.hh:37
wavenoise(TTree *tree)
Definition: wavenoise.hh:43
void Show(Int_t entry=-1)
Definition: wavenoise.cc:111
double * entry
Definition: cwb_setcuts.C:206
Int_t layer
current Tree number in a TChain
Definition: wavenoise.hh:26
void output(TTree *, WSeries< double > *, int=0, double=1.)
Definition: wavenoise.cc:66
TBranch * b_frequency
Definition: wavenoise.hh:38
Double_t gps
Definition: wavenoise.hh:31
Double_t rms
Definition: wavenoise.hh:28
Bool_t Notify()
Definition: wavenoise.cc:92
virtual ~wavenoise()
Definition: wavenoise.hh:44