BDTarget.cxx File Reference

#include "BDTarget.h"
#include "BDProfMon.h"
#include <Conventions/Munits.h>
#include <Validity/VldTimeStamp.h>
#include <RawData/RawBeamMonBlock.h>
#include <RawData/RawBeamData.h>
#include <MessageService/MsgService.h>
#include <cmath>
#include <string>

Go to the source code of this file.

Functions

 CVSID ("$Id: BDTarget.cxx,v 1.20 2013/09/17 03:55:02 rhatcher Exp $")
static bool check_data (const RawBeamData *const *d, int n)
static double get_dae_time (const RawBeamData *const *d, int n)
static double extrapolate_position (double t1, double z1, double t2, double z2, double z3)

Variables

static const double z_hp121 = -72.2309*Munits::foot
static const double z_vp121 = -71.3142*Munits::foot
static const double z_pm121 = -70.5267*Munits::foot
static const double z_hptgt = -33.1564*Munits::foot
static const double z_vptgt = -32.2397*Munits::foot
static const double z_pmtgt = -31.5980*Munits::foot
static const double z_target_le = 0.0*Munits::foot
static const double actrn1 = 1.2467192*Munits::foot

Function Documentation

static bool check_data ( const RawBeamData *const *  d,
int  n 
) [static]

Definition at line 30 of file BDTarget.cxx.

Referenced by BDTarget::ProfileProjection(), BDTarget::SetSpill(), and BDTarget::TargetIn().

00031 {
00032     for (int ind=0; ind<n; ++ind) {
00033     if (0 == d[ind]) return false;
00034     if (0 == d[ind]->GetDataLength()) return false;
00035     }
00036     return true;
00037 }

CVSID ( "$Id: BDTarget.  cxx,
v 1.20 2013/09/17 03:55:02 rhatcher Exp $"   
)
static double extrapolate_position ( double  t1,
double  z1,
double  t2,
double  z2,
double  z3 
) [static]

Definition at line 76 of file BDTarget.cxx.

Referenced by BDTarget::ProfileProjection().

00077 {
00078     return t1+(t2-t1)*(z3-z1)/(z2-z1);
00079 }

static double get_dae_time ( const RawBeamData *const *  d,
int  n 
) [static]

Definition at line 39 of file BDTarget.cxx.

References RawBeamData::GetSeconds().

Referenced by BDTarget::ProfileProjection().

00040 {
00041 // Get the time from one of the devices
00042     double devtime =0;
00043     for (int idev=0; idev<n; ++idev){
00044         if (devtime==0) devtime = d[idev]->GetSeconds();
00045     }
00046     return devtime;
00047 }


Variable Documentation

const double actrn1 = 1.2467192*Munits::foot [static]

Definition at line 105 of file BDTarget.cxx.

const double z_hp121 = -72.2309*Munits::foot [static]

Definition at line 98 of file BDTarget.cxx.

const double z_hptgt = -33.1564*Munits::foot [static]

Definition at line 101 of file BDTarget.cxx.

const double z_pm121 = -70.5267*Munits::foot [static]

Definition at line 100 of file BDTarget.cxx.

Referenced by BDTarget::ProfileProjection().

const double z_pmtgt = -31.5980*Munits::foot [static]

Definition at line 103 of file BDTarget.cxx.

Referenced by BDTarget::ProfileProjection().

const double z_target_le = 0.0*Munits::foot [static]

Definition at line 104 of file BDTarget.cxx.

const double z_vp121 = -71.3142*Munits::foot [static]

Definition at line 99 of file BDTarget.cxx.

const double z_vptgt = -32.2397*Munits::foot [static]

Definition at line 102 of file BDTarget.cxx.


Generated on 15 Jul 2018 for loon by  doxygen 1.6.1