1 |
#ifndef MyDect2Level2_h |
2 |
#define MyDect2Levev2_h |
3 |
// |
4 |
#include <TObject.h> |
5 |
#include <TClonesArray.h> |
6 |
// |
7 |
// class which contains track related variables |
8 |
// |
9 |
class MyDect2TrkVar : public TObject { |
10 |
|
11 |
private: |
12 |
|
13 |
public: |
14 |
// |
15 |
Int_t trkseqno; // tracker entry coming from tracker, 100 if image track is used, -100 if the track is not consistent with MyDetector2 one |
16 |
Int_t mytrkvar; // my track related variable |
17 |
// |
18 |
MyDect2TrkVar(); |
19 |
MyDect2TrkVar(const MyDect2TrkVar&); |
20 |
// |
21 |
ClassDef(MyDect2TrkVar,1); |
22 |
// |
23 |
}; |
24 |
|
25 |
class MyDect2Level2 : public TObject { |
26 |
private: |
27 |
|
28 |
public: |
29 |
Int_t myvar1; // my variable number three |
30 |
Int_t myvar2; // my variable number three |
31 |
Float_t myvar3; // my variable number three |
32 |
TClonesArray *myTrk; // track related variable class |
33 |
// |
34 |
// inline method which returns for each event the number of track related variables entries |
35 |
// |
36 |
Int_t ntrk(){return myTrk->GetEntries();}; |
37 |
// |
38 |
// methods to make life simplier during the analysis, returns a pointer to the MyDect2TrkVar class containing track related variables |
39 |
// |
40 |
MyDect2TrkVar *GetMyDect2TrkVar(Int_t notrack); |
41 |
// |
42 |
// constructor |
43 |
// |
44 |
MyDect2Level2(); |
45 |
// |
46 |
ClassDef(MyDect2Level2,1); |
47 |
}; |
48 |
|
49 |
#endif |