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

BDTarget.cxx File Reference

#include "BDTarget.h"
#include "BDProfMon.h"
#include <Conventions/Munits.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.17 2007/01/26 22:06:11 mdier Exp $")
bool check_data (const RawBeamData *const *d, int n)
double get_dae_time (const RawBeamData *const *d, int n)
double extrapolate_position (double t1, double z1, double t2, double z2, double z3)

Variables

const double z_hp121


Function Documentation

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

Definition at line 29 of file BDTarget.cxx.

References RawBeamData::GetDataLength().

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

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

CVSID "$Id: BDTarget cxx,
v 1.17 2007/01/26 22:06:11 mdier Exp $" 
 

double extrapolate_position double  t1,
double  z1,
double  t2,
double  z2,
double  z3
[static]
 

Definition at line 74 of file BDTarget.cxx.

Referenced by BDTarget::BpmProjection(), ProtonDist::Fill(), and BDTarget::ProfileProjection().

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

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

Definition at line 38 of file BDTarget.cxx.

References RawBeamData::GetSeconds().

Referenced by BDTarget::BpmProjection(), and BDTarget::ProfileProjection().

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


Variable Documentation

const double z_hp121 [static]
 

Initial value:

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

Definition at line 96 of file BDTarget.cxx.

Referenced by BDTarget::BpmProjection().


Generated on Mon Nov 23 05:28:52 2009 for loon by  doxygen 1.3.9.1