#include <cmath>#include "Cuts.h"#include <HistMan/HistMan.h>#include <BeamData/ana/bmnt/AcnetDevice.h>#include <BeamData/ana/bmnt/Knot.h>#include <TH1D.h>#include <TH2D.h>Go to the source code of this file.
Functions | |
| bool | tortgt_ok (PlotterManager &pm) |
| bool | horn_off (PlotterManager &pm) |
|
|
Definition at line 48 of file Cuts.cxx. References AcnetDevice::data, HistMan::Fill1d(), Knot::GetDevice(), PlotterManager::GetKnot(), and AcnetDevice::ndata. Referenced by Cuts::Fill(). 00049 {
00050 const char* hc[] = {
00051 "E:NSLINA",
00052 "E:NSLINB",
00053 "E:NSLINC",
00054 "E:NSLIND",
00055 0
00056 };
00057 double horn_current = 0;
00058 for (int ind = 0; hc[ind]; ++ind) {
00059 const AcnetDevice* ad = pm.GetKnot().GetDevice(hc[ind]);
00060 if (!ad->ndata) continue;
00061 horn_current += ad->data[0];
00062 }
00063 HistMan hm("cuts");
00064 hm.Fill1d("horncur",horn_current);
00065 return fabs(horn_current) < 175;
00066 }
|
|
|
Definition at line 25 of file Cuts.cxx. References AcnetDevice::data, HistMan::Fill1d(), Knot::GetDevice(), PlotterManager::GetKnot(), AcnetDevice::ndata, and AcnetDevice::sec. Referenced by Cuts::Fill(). 00026 {
00027 const int ti_6067 = 1106355930-1; // 2005-01-22 01:05:30 UCT
00028 const int tf_6067 = 1106362789+1; // 2005-01-22 02:59:49 UTC
00029 const int ti_6068 = 1106409473-1; // 2005-01-22 15:57:53 UTC
00030 const int tf_6068 = 1106420416+1; // 2005-01-22 19:00:16 UTC
00031
00032 const AcnetDevice* tortgt = pm.GetKnot().GetDevice("E:TORTGT");
00033 if (!tortgt->ndata) return false;
00034
00035 HistMan hm("cuts");
00036
00037 hm.Fill1d("tortgt",tortgt->data[0]);
00038 if (tortgt->data[0] < 2.0) return false;
00039
00040 int sec = tortgt->sec;
00041 hm.Fill1d("tortgt_time",sec-ti_6067+1);
00042
00043 bool in_runs = ((sec>=ti_6067 && sec<=tf_6067) || (sec>=ti_6068 && sec<=tf_6068));
00044 return in_runs;
00045 }
|
1.3.9.1