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

ProtonDist.cxx File Reference

#include "ProtonDist.h"
#include <HistMan/HistMan.h>
#include <BeamData/ana/bmnt/AcnetDevice.h>
#include <BeamData/ana/bmnt/Knot.h>
#include <BeamData/ana/bmnt/ProfMon.h>
#include <TH2D.h>
#include <TH1D.h>
#include <iostream>
#include <cmath>

Go to the source code of this file.

Functions

bool run_6067 (double ts)
bool run_6068 (double ts)
double extrapolate_position (double t1, double z1, double t2, double z2, double z3)
double extrapolate_direction (double t1, double z1, double t2, double z2)


Function Documentation

double extrapolate_direction double  t1,
double  z1,
double  t2,
double  z2
[static]
 

Definition at line 144 of file ProtonDist.cxx.

Referenced by ProtonDist::Fill().

00145 {
00146     return atan2(t2-t1,z2-z1);
00147 }

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

Definition at line 139 of file ProtonDist.cxx.

00140 {
00141     return t1+(t2-t1)*(z3-z1)/(z2-z1);
00142 }

bool run_6067 double  ts  )  [static]
 

Definition at line 121 of file ProtonDist.cxx.

Referenced by ProtonDist::Fill().

00122 {
00123     const int ti_6067 = 1106355930-1; // 2005-01-22 01:05:30 UCT
00124     const int tf_6067 = 1106362789+1; // 2005-01-22 02:59:49 UTC
00125 
00126     return ts>ti_6067 && ts<tf_6067;
00127 }

bool run_6068 double  ts  )  [static]
 

Definition at line 129 of file ProtonDist.cxx.

Referenced by ProtonDist::Fill().

00130 {
00131     const int ti_6068 = 1106409473-1; // 2005-01-22 15:57:53 UTC
00132     const int tf_6068 = 1106420416+1; // 2005-01-22 19:00:16 UTC
00133 
00134     return ts>ti_6068 && ts<tf_6068;
00135 }


Generated on Mon Feb 15 11:08:09 2010 for loon by  doxygen 1.3.9.1