1 |
mocchiut |
1.1 |
/** |
2 |
|
|
* \file TrkLevel0.h |
3 |
|
|
* \author Elena Vannuccini |
4 |
|
|
*/ |
5 |
|
|
#ifndef trklevel0_h |
6 |
|
|
#define trklevel0_h |
7 |
|
|
|
8 |
pam-fi |
1.4 |
#include <TGraph.h> |
9 |
|
|
|
10 |
mocchiut |
1.1 |
#include <TObject.h> |
11 |
|
|
#include <physics/tracker/TrackerEvent.h> |
12 |
pam-fi |
1.2 |
#include <TrkParams.h> |
13 |
|
|
//#include <TrkStruct.h> |
14 |
mocchiut |
1.1 |
|
15 |
|
|
using namespace pamela::tracker; |
16 |
|
|
|
17 |
|
|
/** |
18 |
|
|
* \brief Class to describe tracker LEVEL0 data. |
19 |
|
|
* |
20 |
|
|
*/ |
21 |
|
|
|
22 |
pam-fi |
1.2 |
//class TrkLevel0 : public TrackerEvent{ |
23 |
|
|
class TrkLevel0 : public TObject{ |
24 |
mocchiut |
1.1 |
|
25 |
|
|
private: |
26 |
|
|
|
27 |
pam-fi |
1.2 |
TrackerEvent* yodaobj; |
28 |
|
|
|
29 |
mocchiut |
1.1 |
public: |
30 |
|
|
|
31 |
pam-fi |
1.2 |
TrkLevel0(){ yodaobj = 0; }; |
32 |
pam-fi |
1.3 |
~TrkLevel0(){ if(yodaobj) delete yodaobj; }; |
33 |
pam-fi |
1.2 |
void Set(){ yodaobj = new TrackerEvent(); }; |
34 |
|
|
|
35 |
|
|
void GetLevel0Struct(cTrkLevel0 *); |
36 |
|
|
void SetFromLevel0Struct(cTrkLevel0 *); |
37 |
|
|
void GetLevel0Struct(){ GetLevel0Struct(&level0event_); }; |
38 |
|
|
void SetFromLevel0Struct(){ SetFromLevel0Struct(&level0event_); }; |
39 |
pam-fi |
1.4 |
|
40 |
|
|
bool FillADC(); |
41 |
pam-fi |
1.5 |
bool GetCalibratedEvent( int, TGraph*, bool ); |
42 |
|
|
bool GetCalibratedEvent( int iview, TGraph* gr){ return GetCalibratedEvent(iview,gr,true); }; |
43 |
pam-fi |
1.4 |
bool GetCalibratedEvent( int iview){ return GetCalibratedEvent(iview,NULL); }; |
44 |
pam-fi |
1.2 |
|
45 |
|
|
void* GetPointerToTrackerEvent(){ return &yodaobj; }; |
46 |
|
|
TrackerEvent* GetTrackerEvent(){ return yodaobj; } |
47 |
|
|
int ProcessEvent(); |
48 |
pam-fi |
1.4 |
void Decode(int from,int to,bool &COMPRESSED,bool &FULL, int* datacomp, int* datafull); |
49 |
|
|
bool GetFullEvent(int iview, TGraph* graph); |
50 |
|
|
bool GetCompressedEvent(int iview, TGraph* graph); |
51 |
|
|
bool GetUnCompressedEvent(int iview, TGraph* graph); |
52 |
|
|
bool GetSigma(int iview, TGraph* graph); |
53 |
pam-fi |
1.2 |
|
54 |
|
|
ClassDef(TrkLevel0,1); |
55 |
|
|
|
56 |
mocchiut |
1.1 |
}; |
57 |
|
|
|
58 |
pam-fi |
1.4 |
/** |
59 |
|
|
* \brief Struct to decode tracker words |
60 |
|
|
* |
61 |
|
|
*/ |
62 |
|
|
typedef struct trkword{ |
63 |
|
|
int type; |
64 |
|
|
int decode; |
65 |
|
|
}; |
66 |
|
|
|
67 |
mocchiut |
1.1 |
#endif |