| 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 |
|
| 28 |
class InclinationInfoI : public TObject { |
| 29 |
public: |
| 30 |
//Quaternions Lx_y |
| 31 |
// The data are organized in 5 groups according to the format |
| 32 |
// time - L0 - L1 - L2 - L3 |
| 33 |
// time[0] - quat[0][0] - quat[0][1] - quat[0][2] - quat[0][3] |
| 34 |
// time[1] - quat[1][0] - quat[1][1] - quat[1][2] - quat[1][3] |
| 35 |
// time[2] - quat[2][0] - quat[2][1] - quat[2][2] - quat[2][3] |
| 36 |
// time[3] - quat[3][0] - quat[3][1] - quat[3][2] - quat[3][3] |
| 37 |
// time[4] - quat[4][0] - quat[4][1] - quat[4][2] - quat[4][3] |
| 38 |
// time[5] - quat[5][0] - quat[5][1] - quat[5][2] - quat[5][3] |
| 39 |
// |
| 40 |
double time[6]; |
| 41 |
double quat[6][4]; |
| 42 |
|
| 43 |
InclinationInfoI(){}; |
| 44 |
~InclinationInfoI() {}; |
| 45 |
|
| 46 |
void fill(TArrayC* data); |
| 47 |
void clear(); |
| 48 |
// const char* toXML(char*); |
| 49 |
ClassDef(InclinationInfoI,1) |
| 50 |
}; |
| 51 |
|
| 52 |
/** |
| 53 |
@author pamelaprod |
| 54 |
*/ |
| 55 |
class Quaternions: public InclinationInfoI { |
| 56 |
public: |
| 57 |
|
| 58 |
Quaternions(); |
| 59 |
~Quaternions(); |
| 60 |
|
| 61 |
//Int_t CodeErrQua; |
| 62 |
|
| 63 |
ClassDef(Quaternions,1) |
| 64 |
}; |
| 65 |
|
| 66 |
class InclinationInfo: public TObject { |
| 67 |
public: |
| 68 |
|
| 69 |
InclinationInfo(); |
| 70 |
~InclinationInfo(); |
| 71 |
|
| 72 |
Double_t Tangazh; |
| 73 |
Double_t Ryskanie; |
| 74 |
Double_t Kren; |
| 75 |
|
| 76 |
bool mode; |
| 77 |
// Float_t dircutoff; |
| 78 |
|
| 79 |
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); |
| 80 |
|
| 81 |
// float_t procRegidity(double_t L, double_t B, double_t R); |
| 82 |
|
| 83 |
void Clear(Option_t *t=""); |
| 84 |
ClassDef(InclinationInfo,1) |
| 85 |
}; |
| 86 |
|
| 87 |
#endif |