Skip to content

Commit 4df6011

Browse files
authored
Merge pull request #135 from SBNSoftware/feature/maxd_BNBQualCut
Feature/maxd bnb qual cut
2 parents 0eedd9a + f054acd commit 4df6011

2 files changed

Lines changed: 30 additions & 17 deletions

File tree

sbnobj/Common/POTAccounting/BNBSpillInfo.h

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,30 @@
66
* @file sbnobj/Common/POTAccounting/BNBSpillInfo.h
77
* @author Joseph Zennamo, FNAL (jaz8600@fnal.gov)
88
*/
9-
109
#include <vector>
1110

1211
namespace 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

sbnobj/Common/POTAccounting/classes_def.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<lcgdict>
2-
<class name="sbn::BNBSpillInfo" ClassVersion="14">
2+
<class name="sbn::BNBSpillInfo" ClassVersion="15">
3+
<version ClassVersion="15" checksum="28411542"/>
34
<version ClassVersion="14" checksum="1668136717"/>
45
<version ClassVersion="13" checksum="3323781823"/>
56
<version ClassVersion="12" checksum="3285973467"/>

0 commit comments

Comments
 (0)