1 |
/*************************************************************************** |
2 |
* Copyright (C) 2006 by pamelaprod * |
3 |
* pamelaprod@P1.pamela * |
4 |
* * |
5 |
* This program is free software; you can redistribute it and/or modify * |
6 |
* it under the terms of the GNU General Public License as published by * |
7 |
* the Free Software Foundation; either version 2 of the License, or * |
8 |
* (at your option) any later version. * |
9 |
* * |
10 |
* This program is distributed in the hope that it will be useful, * |
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
13 |
* GNU General Public License for more details. * |
14 |
* * |
15 |
* You should have received a copy of the GNU General Public License * |
16 |
* along with this program; if not, write to the * |
17 |
* Free Software Foundation, Inc., * |
18 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
19 |
***************************************************************************/ |
20 |
#ifndef FIRST_H |
21 |
#define FIRST_H |
22 |
|
23 |
#include <TObject.h> |
24 |
#include <iostream> |
25 |
#include <TArrayC.h> |
26 |
#include <TROOT.h> |
27 |
#include <TMath.h> |
28 |
#include <TMatrixD.h> |
29 |
|
30 |
class InclinationInfoI : public TObject { |
31 |
public: |
32 |
//Quaternions Lx_y |
33 |
// The data are organized in 5 groups according to the format |
34 |
// time - L0 - L1 - L2 - L3 |
35 |
// time[0] - quat[0][0] - quat[0][1] - quat[0][2] - quat[0][3] |
36 |
// time[1] - quat[1][0] - quat[1][1] - quat[1][2] - quat[1][3] |
37 |
// time[2] - quat[2][0] - quat[2][1] - quat[2][2] - quat[2][3] |
38 |
// time[3] - quat[3][0] - quat[3][1] - quat[3][2] - quat[3][3] |
39 |
// time[4] - quat[4][0] - quat[4][1] - quat[4][2] - quat[4][3] |
40 |
// time[5] - quat[5][0] - quat[5][1] - quat[5][2] - quat[5][3] |
41 |
// |
42 |
double time[6]; |
43 |
double quat[6][4]; |
44 |
|
45 |
InclinationInfoI(){}; |
46 |
~InclinationInfoI() {}; |
47 |
|
48 |
void fill(TArrayC* data); |
49 |
void clear(); |
50 |
// const char* toXML(char*); |
51 |
ClassDef(InclinationInfoI,1) |
52 |
}; |
53 |
|
54 |
/** |
55 |
@author pamelaprod |
56 |
*/ |
57 |
class Quaternions: public InclinationInfoI { |
58 |
public: |
59 |
|
60 |
Quaternions(); |
61 |
~Quaternions(); |
62 |
|
63 |
//Int_t CodeErrQua; |
64 |
|
65 |
ClassDef(Quaternions,1) |
66 |
}; |
67 |
|
68 |
class InclinationInfo: public TObject { |
69 |
public: |
70 |
|
71 |
InclinationInfo(); |
72 |
~InclinationInfo(); |
73 |
|
74 |
Double_t Tangazh; |
75 |
Double_t Ryskanie; |
76 |
Double_t Kren; |
77 |
|
78 |
bool mode; |
79 |
// Float_t dircutoff; |
80 |
|
81 |
void TransAngle(Double_t x,Double_t y,Double_t z,Double_t Vx0,Double_t Vy0, Double_t Vz0, Double_t q0, Double_t q1, Double_t q2, Double_t q3); |
82 |
|
83 |
// float_t procRegidity(double_t L, double_t B, double_t R); |
84 |
|
85 |
void Clear(Option_t *t=""); |
86 |
ClassDef(InclinationInfo,1) |
87 |
}; |
88 |
|
89 |
#endif |