BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
NeutParams.h
Go to the documentation of this file.
1// Justin Albert and Valery Miftahov 10/27/97
2
3#ifndef NEUTPARAMS_H
4#define NEUTPARAMS_H
5
6#include <stdio.h>
7#include <iostream>
8#include <math.h>
9
10#include "TrkBase/TrkParams.h"
11#include "CLHEP/Matrix/Vector.h"
12#include "CLHEP/Matrix/Matrix.h"
13#include "CLHEP/Matrix/SymMatrix.h"
14
15using CLHEP::Hep3Vector;
16using CLHEP::HepMatrix;
17using CLHEP::HepSymMatrix;
18
19class NeutParams : public TrkParams {
20
21friend class NeutTraj;
22
23public:
24
25// Constructors and destructor
26//
27 NeutParams(const HepVector&,const HepSymMatrix&);
28 NeutParams(double,double,double,double,double,double);
29 NeutParams(const NeutParams& old);
31
32// Define the parameter meaning and order by an enum
33 enum {_d0, _phi0, _p, _z0, _tanDip, _s0,_nneutprm = 6};
34
35// access
36//
37 double& d0() { return parameter()[_d0]; }
38 double& phi0() { return parameter()[_phi0]; }
39 double& p() { return parameter()[_p]; }
40 double& z0() { return parameter()[_z0]; }
41 double& tanDip() { return parameter()[_tanDip]; }
42 double& s0() { return parameter()[_s0]; }
43
44 double d0() const { return parameter()[_d0]; }
45 double phi0() const { return parameter()[_phi0]; }
46 double p() const { return parameter()[_p]; }
47 double z0() const { return parameter()[_z0]; }
48 double tanDip() const { return parameter()[_tanDip]; }
49 double s0() const { return parameter()[_s0]; }
50
51 double sinPhi0() const;
52 double cosPhi0() const;
53 double arcRatio() const; // = fltLen / 2-d arclen
54private:
55};
56#endif
57
HepVector & parameter()
Definition: DifIndepPar.h:51
double sinPhi0() const
Definition: NeutParams.cxx:57
double & s0()
Definition: NeutParams.h:42
double z0() const
Definition: NeutParams.h:47
double arcRatio() const
Definition: NeutParams.cxx:71
double cosPhi0() const
Definition: NeutParams.cxx:64
double & phi0()
Definition: NeutParams.h:38
double & z0()
Definition: NeutParams.h:40
double & tanDip()
Definition: NeutParams.h:41
double tanDip() const
Definition: NeutParams.h:48
double d0() const
Definition: NeutParams.h:44
double s0() const
Definition: NeutParams.h:49
double & p()
Definition: NeutParams.h:39
double phi0() const
Definition: NeutParams.h:45
double p() const
Definition: NeutParams.h:46
double & d0()
Definition: NeutParams.h:37