DUNE StandardRecord
Base object for DUNE analysis files (CAFs)
Loading...
Searching...
No Matches
SRBeamBranch.h
Go to the documentation of this file.
1
5
6#ifndef DUNEANAOBJ_SRBEAMBRANCH_H
7#define DUNEANAOBJ_SRBEAMBRANCH_H
8
9#include <cmath>
10#include <limits>
11#include <vector>
12
13namespace caf
14{
16 {
17 private:
18 // save on typing below
19 constexpr static float NaN = std::numeric_limits<float>::signaling_NaN();
20
21 public:
48 bool ismc;
49
50 bool isgoodpulse = true;
51 unsigned long int pulsetimesec = 0;
52 unsigned long int pulsetimensec = 0;
53 unsigned long int gpspulsetimesec = 0;
54 unsigned long int gpspulsetimensec = 0;
55 signed long long int deltapulsetimensec = -9999999;
56 float pulsepot = NaN;
57 float potTOR101 = NaN;
58 float potTR101D = NaN;
59 float hornI = NaN;
60 float hornDir = NaN;
61 float beamHwidth = NaN;
62 float beamVwidth = NaN;
63 std::vector<double> horizontalposTGT;
64 std::vector<double> horizontalintTGT;
65 std::vector<double> horizontalpos121;
66 std::vector<double> verticalposTGT;
67 std::vector<double> verticalintTGT;
68 std::vector<double> verticalpos121;
69 std::vector<double> multiwireInfo;
70
71 bool isFHC() const { return hornI > 0; };
72 bool is0HC() const { return std::abs(hornI) < 1; };
73 bool isRHC() const { return hornI < 0; }
75
76 };
77}
78
79#endif //DUNEANAOBJ_SRBEAMBRANCH_H
Definition SRBeamBranch.h:16
signed long long int deltapulsetimensec
Delta time [ns].
Definition SRBeamBranch.h:55
unsigned long int gpspulsetimesec
pulse time from GPS [s]
Definition SRBeamBranch.h:53
float beamHwidth
Beam horizontal width [mm].
Definition SRBeamBranch.h:61
bool is0HC() const
Checks hornI to see if the polarity is positive --> this is FHC.
Definition SRBeamBranch.h:72
float hornI
Horn current [kA].
Definition SRBeamBranch.h:59
std::vector< double > horizontalpos121
horizontal beam position as measured by E:HP121 device (7 values = 6 batches + 1 mean value) [mm]
Definition SRBeamBranch.h:65
float potTR101D
POT as measured by the toroid E:TR101D device.
Definition SRBeamBranch.h:58
bool isgoodpulse
Was the pot for a pulse good? (only applicable to data)
Definition SRBeamBranch.h:50
float beamVwidth
Beam vertical width [mm].
Definition SRBeamBranch.h:62
bool ismc
data or simulated beam pulse?
Definition SRBeamBranch.h:48
std::vector< double > multiwireInfo
horizontal and vertical readout voltages measured by E:MTGTDS device (216 values) [a....
Definition SRBeamBranch.h:69
unsigned long int gpspulsetimensec
pulse time from GPS [ns]
Definition SRBeamBranch.h:54
float pulsepot
POT as measured by the toroid E:TRTGDT device.
Definition SRBeamBranch.h:56
unsigned long int pulsetimesec
pulse time in seconds [s]
Definition SRBeamBranch.h:51
std::vector< double > horizontalintTGT
horizontal beam intensity as measured by E:HITGT device (7 values = 6 batches + 1 mean value) []
Definition SRBeamBranch.h:64
std::vector< double > verticalintTGT
vertical beam intensity as measured by E:VITGT device (7 values = 6 batches + 1 mean value) [mm]
Definition SRBeamBranch.h:67
float potTOR101
POT as measured by the toroid E:TOR101 device.
Definition SRBeamBranch.h:57
std::vector< double > horizontalposTGT
horizontal beam position as measured by E:HPTGT device (7 values = 6 batches + 1 mean value) [mm]
Definition SRBeamBranch.h:63
std::vector< double > verticalposTGT
vertical beam position as measured by E:VPTGT device (7 values = 6 batches + 1 mean value) []
Definition SRBeamBranch.h:66
unsigned long int pulsetimensec
pulse time in nanoseconds [ns]
Definition SRBeamBranch.h:52
std::vector< double > verticalpos121
vertical beam position as measured by E:VP121 device (7 values = 6 batches + 1 mean value) [mm]
Definition SRBeamBranch.h:68
bool isRHC() const
Checks hornI to see if the polarity is zero.
Definition SRBeamBranch.h:73
float hornDir
Horn polarity [V].
Definition SRBeamBranch.h:60
Common Analysis Files.
Definition Navigate.cxx:8