All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FillExposure.cxx
Go to the documentation of this file.
1 
3 
4 namespace caf
5 {
6 
8  {
9  caf::SRBNBInfo single_store;
10  single_store.spill_time_sec = info.spill_time_s;
11  single_store.spill_time_nsec = info.spill_time_ns;
12  single_store.event = info.event;
13  single_store.TOR860 = info.TOR860;
14  single_store.TOR875 = info.TOR875;
15  single_store.LM875A = info.LM875A;
16  single_store.LM875B = info.LM875B;
17  single_store.LM875C = info.LM875C;
18  single_store.HP875 = info.HP875;
19  single_store.VP875 = info.VP875;
20  single_store.HPTG1 = info.HPTG1;
21  single_store.VPTG1 = info.VPTG1;
22  single_store.HPTG2 = info.HPTG2;
23  single_store.VPTG2 = info.VPTG2;
24  single_store.BTJT2 = info.BTJT2;
25  single_store.THCURR = info.THCURR;
26  single_store.M875BB = info.M875BB;
27  single_store.M876BB = info.M876BB;
28  single_store.MMBTBB = info.MMBTBB;
32  return single_store;
33  }
34 
35  void FillExposure(const std::vector<sbn::BNBSpillInfo>& bnb_spill_info,
36  std::vector<caf::SRBNBInfo>& BNBInfo,
37  double& subRunPOT)
38  {
39  for(const sbn::BNBSpillInfo& info: bnb_spill_info)
40  {
41  subRunPOT += info.POT();
42  BNBInfo.push_back(makeSRBNBInfo(info));
43  }
44  }
45  void FillExposureNuMI(const std::vector<sbn::NuMISpillInfo>& numi_spill_info,
46  std::vector<caf::SRNuMIInfo>& NuMIInfo,
47  double& subRunPOT) {
48  for (const sbn::NuMISpillInfo &info: numi_spill_info) {
49  subRunPOT += info.POT();
50 
51  NuMIInfo.emplace_back();
52  NuMIInfo.back().HP121 = info.HP121;
53  NuMIInfo.back().VP121 = info.VP121;
54  NuMIInfo.back().HPTGT = info.HPTGT;
55  NuMIInfo.back().VPTGT = info.VPTGT;
56  NuMIInfo.back().HITGT = info.HITGT;
57  NuMIInfo.back().VITGT = info.VITGT;
58  NuMIInfo.back().MTGTDS = info.MTGTDS;
59  NuMIInfo.back().HRNDIR = info.HRNDIR;
60  NuMIInfo.back().NSLINA = info.NSLINA;
61  NuMIInfo.back().NSLINB = info.NSLINB;
62  NuMIInfo.back().NSLINC = info.NSLINC;
63  NuMIInfo.back().NSLIND = info.NSLIND;
64  NuMIInfo.back().TRTGTD = info.TRTGTD;
65  NuMIInfo.back().TR101D = info.TR101D;
66  NuMIInfo.back().TORTGT = info.TORTGT;
67  NuMIInfo.back().TOR101 = info.TOR101;
68  NuMIInfo.back().time = info.time;
69  NuMIInfo.back().spill_time_s = info.spill_time_s;
70  NuMIInfo.back().spill_time_ns = info.spill_time_ns;
71  NuMIInfo.back().event = info.event;
72  NuMIInfo.back().daq_gates = info.daq_gates;
73  }
74  }
75 }
float BTJT2
Temperature of air exiting target, units Deg C.
Definition: SRBNBInfo.h:32
float M876BB_spill_time_diff
the time difference between M876BB and the matched spill
Definition: BNBSpillInfo.h:50
float TOR860
Definition: SRBNBInfo.h:17
std::vector< int > M876BB
Multiwire station after Mag 875...?
Definition: BNBSpillInfo.h:46
float TOR875
Value used for POT accounting.
Definition: SRBNBInfo.h:18
float LM875C
Loss Monitor after the RWM, unit R/s.
Definition: SRBNBInfo.h:22
float LM875C
Loss Monitor after the RWM, unit R/s.
Definition: BNBSpillInfo.h:30
unsigned long int spill_time_sec
Definition: SRBNBInfo.h:13
float VPTG2
Horizontal Position Monitor at Target Station 2, closest to target, units mm.
Definition: BNBSpillInfo.h:38
float VPTG1
Horizontal Position Monitor at Target Station 1, units mm.
Definition: BNBSpillInfo.h:35
unsigned long int spill_time_ns
The IFDB Beam Spill Time, unit nsec.
Definition: BNBSpillInfo.h:18
float HP875
Horizontal Position Monitor after Mag 875, units mm.
Definition: SRBNBInfo.h:23
float LM875B
Loss Monitor after the RWM, unit R/s.
Definition: SRBNBInfo.h:21
std::vector< int > M875BB
Multiwire station before Mag 875...?
Definition: SRBNBInfo.h:37
float THCURR
Current applied to Horn, units kiloAmperes.
Definition: SRBNBInfo.h:34
void FillExposure(const std::vector< sbn::BNBSpillInfo > &bnb_spill_info, std::vector< caf::SRBNBInfo > &BNBInfo, double &subRunPOT)
unsigned int event
Definition: SRBNBInfo.h:15
float MMBTBB_spill_time_diff
the time difference between MMBTBB and the matched spill
Definition: BNBSpillInfo.h:51
float TOR875
Toroid after Mag 875, units e12 Protons.
Definition: BNBSpillInfo.h:26
std::vector< int > MMBTBB
Multiwire station at the target station,.
Definition: SRBNBInfo.h:39
float LM875A
Loss Monitor before the RWM, unit R/s.
Definition: BNBSpillInfo.h:28
caf::SRBNBInfo makeSRBNBInfo(sbn::BNBSpillInfo const &info)
Definition: FillExposure.cxx:7
float LM875A
Loss Monitor before the RWM, unit R/s.
Definition: SRBNBInfo.h:20
float BTJT2
Temperature of air exiting target, units Deg C.
Definition: BNBSpillInfo.h:40
unsigned long int spill_time_nsec
Definition: SRBNBInfo.h:14
std::vector< int > MMBTBB
Multiwire station at the target station,.
Definition: BNBSpillInfo.h:47
float VPTG1
Horizontal Position Monitor at Target Station 1, units mm.
Definition: SRBNBInfo.h:27
float HPTG1
Horizontal Position Monitor at Target Station 1, units mm.
Definition: SRBNBInfo.h:26
float HP875
Horizontal Position Monitor after Mag 875, units mm.
Definition: BNBSpillInfo.h:31
float M875BB_spill_time_diff
the time difference between M875BB and the matched spill
Definition: SRBNBInfo.h:41
float HPTG2
Horizontal Position Monitor at Target Station 2, closest to target, units mm.
Definition: BNBSpillInfo.h:37
float THCURR
Current applied to Horn, units kiloAmperes.
Definition: BNBSpillInfo.h:42
unsigned long int spill_time_s
The IFDB Beam Spill Time, unit sec.
Definition: BNBSpillInfo.h:17
float VP875
Verticle Position Monitor after Mag 875, units mm.
Definition: SRBNBInfo.h:24
std::vector< int > M876BB
Multiwire station after Mag 875...?
Definition: SRBNBInfo.h:38
float VP875
Verticle Position Monitor after Mag 875, units mm.
Definition: BNBSpillInfo.h:32
unsigned int event
Definition: BNBSpillInfo.h:20
float TOR860
Toroid before Mag 875, units e12 Protons.
Definition: BNBSpillInfo.h:25
std::vector< int > M875BB
Multiwire station before Mag 875...?
Definition: BNBSpillInfo.h:45
float LM875B
Loss Monitor after the RWM, unit R/s.
Definition: BNBSpillInfo.h:29
void FillExposureNuMI(const std::vector< sbn::NuMISpillInfo > &numi_spill_info, std::vector< caf::SRNuMIInfo > &NuMIInfo, double &subRunPOT)
float HPTG2
Horizontal Position Monitor at Target Station 2, closest to target, units mm.
Definition: SRBNBInfo.h:29
float M876BB_spill_time_diff
the time difference between M876BB and the matched spill
Definition: SRBNBInfo.h:42
float M875BB_spill_time_diff
the time difference between M875BB and the matched spill
Definition: BNBSpillInfo.h:49
float HPTG1
Horizontal Position Monitor at Target Station 1, units mm.
Definition: BNBSpillInfo.h:34
float MMBTBB_spill_time_diff
the time difference between MMBTBB and the matched spill
Definition: SRBNBInfo.h:43
float VPTG2
Horizontal Position Monitor at Target Station 2, closest to target, units mm.
Definition: SRBNBInfo.h:30