DataQualityMonitor.h
1 /* -*- C++ -*-.*********************************************************************************************
2  Author: Ben Strutt
3  Email: b.strutt.12@ucl.ac.uk
4 
5  Description:
6  A class to take RawAnitaEvents and look for signs of bad data.
7 ***********************************************************************************************************/
8 
9 #ifndef DATAQUALITYMONITOR_H
10 #define DATAQUALITYMONITOR_H
11 
12 // Ryan things
13 #include "UsefulAnitaEvent.h"
14 #include "AnitaEventCalibrator.h"
15 #include "AnitaGeomTool.h"
16 #include "UsefulAdu5Pat.h"
17 
18 // standard c++ things
19 #include <iostream>
20 
21 // ROOT things
22 #include "TChain.h"
23 
24 
25 // My things
26 #include "CrossCorrelator.h"
27 
28 namespace Acclaim
29 {
30 
38 
39  public:
40 
42  DataQualityMonitor(TChain* c);
44  void setBranches(TChain* c);
45 
46  // tree variables
47  TChain* dataQualityChain;
48  Double_t maxAbsSecondDeriv[AnitaPol::kNotAPol][NUM_SEAVEYS];
49  Double_t maxVolts[AnitaPol::kNotAPol][NUM_SEAVEYS];
50  Int_t numPoints[AnitaPol::kNotAPol][NUM_SEAVEYS];
51  UInt_t eventNumber;
52 
53 
54  // quality variables
55  Int_t phiAboveMaxVoltsThresh[NUM_PHI];
56  Int_t numChannelsAboveSurfSaturation;
57  Int_t numAboveVoltsBlastThresh;
58  Int_t numPhiAboveMaxVoltsBlastThresh;
59 
60 
61  Int_t processEntry(Long64_t entry, UInt_t eventNumberCheck = 0);
62 
63 
64 
65 
66  // cut variables, set in constructor, public for convenience... don't mess with them
67  double maxVoltsBlastThresh;
68  double saturationVolts;
69 
70  private:
71 
72 
73 
74  };
75 }
76 
77 
78 #endif
79 
Looks for SURF saturation.
Namespace which wraps everything in the library.
USeful in for loops.