Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

BeamMon.cxx

Go to the documentation of this file.
00001 #include<iostream>
00002 #include "NueAna/BeamMon.h"
00003 
00004 BeamMon::BeamMon():
00005     goodBeamMon(-1),
00006     bI(-9999.),
00007     tortgt(-9999.),
00008     trtgtd(-9999.),
00009     tor101(-9999.),
00010     tr101d(-9999.),
00011     hpos2(-9999.),
00012     vpos2(-9999.),
00013     hpos1(-9999.),
00014     vpos1(-9999.),
00015     hbw(-9999.),
00016     vbw(-9999.),
00017     htan(-9999.),
00018     vtan(-9999.),
00019     hornI(-9999.),
00020     nuTarZ(-9999.),
00021     time(0),
00022     bmst_vts(0),
00023     stnd_time(0),
00024     stnd_vts(0),
00025     dt_bmst(-9999),
00026     dt_stnd(-9999),
00027     goodDataQual(-9999)
00028 {
00029     for (Int_t i=0;i<6;++i){
00030         batchposx[i]=-9999.;
00031         batchposy[i]=-9999.;
00032         batchint[i]=-9999.;
00033     }
00034 }
00035 
00036 BeamMon::~BeamMon()
00037 {}
00038 
00039 void BeamMon::Reset()
00040 {
00041     goodBeamMon=-1;
00042     bI=-9999.;
00043     tortgt=-9999.;
00044     trtgtd=-9999.;
00045     tor101=-9999.;
00046     tr101d=-9999.;
00047     hpos2=-9999.;
00048     vpos2=-9999.;
00049     for (Int_t i=0;i<6;++i){
00050         batchposx[i]=-9999.;
00051         batchposy[i]=-9999.;
00052         batchint[i]=-9999.;
00053     }
00054     hpos1=-9999.;
00055     vpos1=-9999.;
00056     hbw=-9999.;
00057     vbw=-9999.;
00058     htan=-9999.;
00059     vtan=-9999.;
00060     hornI=-9999.;
00061     nuTarZ=-9999.;
00062     time=0; 
00063     bmst_vts=0;
00064     stnd_time=0;
00065     stnd_vts=0;
00066     dt_bmst=-9999;
00067     dt_stnd=-9999;
00068     goodDataQual = -9999;
00069 }
00070 
00071 void BeamMon::Print(Option_t */*option*/) const
00072 {
00073     std::cout <<" goodBeamMon " << goodBeamMon << std::endl
00074               <<" bI "<<bI<<std::endl
00075               <<" tortgt "<<tortgt<<std::endl
00076               <<" tortgt "<<trtgtd<<std::endl
00077               <<" tor101 "<<tor101<<std::endl
00078               <<" tr101d "<<tr101d<<std::endl
00079               <<" hbw "<<hbw<<std::endl
00080               <<" vbw "<<vbw<<std::endl
00081               <<" hpos1 "<<hpos1<<std::endl
00082               <<" vpos1 "<<vpos1<<std::endl
00083               <<" hpos2 "<<hpos2<<std::endl
00084               <<" vpos2 "<<vpos2<<std::endl
00085               <<" htan "<<htan<<std::endl
00086               <<" vtan "<<vtan<<std::endl
00087               <<" hornI "<<hornI<<std::endl
00088               <<" nuTarZ "<<nuTarZ<<std::endl
00089               <<" time "<<time<<std::endl
00090               <<" goodDataQual"<<goodDataQual<<std::endl;
00091 }
00092 
00093 double BeamMon::GetPot()
00094 {
00095     double pot = trtgtd;
00096     if (pot==0) pot = tortgt;
00097     if (pot==0) pot = tor101;
00098     if (pot==0) pot = tr101d;
00099     return pot;
00100 }

Generated on Mon Feb 15 11:06:24 2010 for loon by  doxygen 1.3.9.1