66 * @file sbnobj/Common/POTAccounting/BNBSpillInfo.h
77 * @author Joseph Zennamo, FNAL (jaz8600@fnal.gov)
88 */
9-
109#include < vector>
1110
1211namespace sbn {
12+
1313 class BNBSpillInfo {
1414 public:
15- // typedef enum triggertype { kBNB, kEXT, kUnbiased, kNUMI } TriggerType; //!< Which beamline are we looking at
16-
15+
1716 unsigned long int spill_time_s; // !< The IFDB Beam Spill Time, unit sec
1817 unsigned long int spill_time_ns; // !< The IFDB Beam Spill Time, unit nsec
1918
2019 unsigned int event;
21-
22- // BeamQuaility
23- // quality//BNB
24-
20+
21+ float FOM ; // /! Figure of Merit for BNB
22+
2523 float TOR860 ; // !< Toroid before Mag 875, units e12 Protons
2624 float TOR875 ; // !< Toroid after Mag 875, units e12 Protons
27-
25+
2826 float LM875A ; // !< Loss Monitor before the RWM, unit R/s
2927 float LM875B ; // !< Loss Monitor after the RWM, unit R/s
3028 float LM875C ; // !< Loss Monitor after the RWM, unit R/s
29+
3130 float HP873 ; // !< Horizontal Position Monitor after Mag 873, units mm
3231 float VP873 ; // !< Verticle Position Monitor after Mag 873, units mm
32+
3333 float HP875 ; // !< Horizontal Position Monitor after Mag 875, units mm
3434 float VP875 ; // !< Verticle Position Monitor after Mag 875, units mm
3535
@@ -38,7 +38,7 @@ namespace sbn {
3838
3939 float HPTG2 ; // !< Horizontal Position Monitor at Target Station 2, closest to target, units mm
4040 float VPTG2 ; // !< Horizontal Position Monitor at Target Station 2, closest to target, units mm
41-
41+
4242 float BTJT2 ; // !< Temperature of air exiting target, units Deg C
4343
4444 float THCURR ; // !< Current applied to Horn, units kiloAmperes
@@ -52,19 +52,31 @@ namespace sbn {
5252 float M876VS ; // !< Multiwire station after Mag 876, Fit to Vertical Sigma?
5353 float M876HM ; // !< Multiwire station after Mag 876, Fit to Horizontal Mean?
5454 float M876VM ; // !< Multiwire station after Mag 876, Fit to Vertical Mean?
55-
56- // https://cdcvs.fnal.gov/redmine/projects/ubraw/repository/revisions/master/entry/ubraw/BeamDAQ/MWRData.cpp
57- std::vector< int > M875BB ; // !< Multiwire station before Mag 875...?
55+
56+ // And add all your new offsets here:
57+ float HP875Offset; // units mm
58+ float VP875Offset; // units mm
59+ float VP873Offset; // units mm
60+ float HPTG1Offset; // units mm
61+ float HPTG2Offset; // units mm
62+ float VPTG1Offset; // units mm
63+ float VPTG2Offset; // units mm
64+
65+ std::vector<int > M875BB ; // !< Multiwire station before Mag 875...?
66+
67+
5868 std::vector< int > M876BB ; // !< Multiwire station after Mag 875...?
5969 std::vector< int > MMBTBB ; // !< Multiwire station at the target station,
60-
70+
6171 float M875BB_spill_time_diff; // !< the time difference between M875BB and the matched spill
6272 float M876BB_spill_time_diff; // !< the time difference between M876BB and the matched spill
63- float MMBTBB_spill_time_diff; // !< the time difference between MMBTBB and the matched spill
73+ float MMBTBB_spill_time_diff; // !< time diff between MMBTBB and matched spill
74+
75+
76+ double POT () const { return TOR875 ; }
6477
65- double POT () const {return TOR875 ;}
66-
6778 };
79+
6880} // end namespace sbn
6981
7082#endif
0 commit comments