| 1 |
/** |
| 2 |
* \file CaloViewer.h |
| 3 |
* \author Elena Vannuccini |
| 4 |
*/ |
| 5 |
#ifndef caloviewer_h |
| 6 |
#define caloviewer_h |
| 7 |
|
| 8 |
#if !defined(__CINT__) || defined(__MAKECINT__) |
| 9 |
|
| 10 |
/* #include <CaloLevel2.h> */ |
| 11 |
/* #include <CaloLevel1.h> */ |
| 12 |
|
| 13 |
#include <PamLevel2.h> |
| 14 |
|
| 15 |
#include <TObject.h> |
| 16 |
#include <TObjArray.h> |
| 17 |
#include <TBox.h> |
| 18 |
#include <TColor.h> |
| 19 |
#include <TPolyMarker.h> |
| 20 |
|
| 21 |
#include <iostream> |
| 22 |
using namespace std; |
| 23 |
#endif |
| 24 |
|
| 25 |
class GCaloVolume : public TObject{ |
| 26 |
|
| 27 |
private: |
| 28 |
|
| 29 |
TBox *cavity_l; |
| 30 |
TBox *cavity_r; |
| 31 |
|
| 32 |
TBox *tplane_l[22]; |
| 33 |
TBox *tplane_r[22]; |
| 34 |
// TBox *cavity_c; |
| 35 |
|
| 36 |
public: |
| 37 |
|
| 38 |
GCaloVolume(); |
| 39 |
void DrawProjectionX(); |
| 40 |
void DrawProjectionY(); |
| 41 |
// void DrawProjectionT(); |
| 42 |
void Delete(); |
| 43 |
|
| 44 |
ClassDef(GCaloVolume,1); |
| 45 |
|
| 46 |
}; |
| 47 |
|
| 48 |
// |
| 49 |
class GCaloLevel2 : public TObject{ |
| 50 |
|
| 51 |
private: |
| 52 |
|
| 53 |
TClonesArray *HitX; ///< x hit |
| 54 |
TClonesArray *HitY; ///< y hit |
| 55 |
|
| 56 |
TPolyMarker *cbarX; |
| 57 |
TPolyMarker *cbarY; |
| 58 |
|
| 59 |
Bool_t DRAWCBAR; |
| 60 |
|
| 61 |
/* TMarker *mx[22]; */ |
| 62 |
/* TMarker *my[22]; */ |
| 63 |
|
| 64 |
public: |
| 65 |
|
| 66 |
GCaloLevel2(); |
| 67 |
// GCaloLevel2(CaloLevel1*); //implementare |
| 68 |
GCaloLevel2(CaloLevel1*); |
| 69 |
// GCaloLevel2(CaloLevel2*); |
| 70 |
GCaloLevel2(PamLevel2*); |
| 71 |
|
| 72 |
void SetLevel1(CaloLevel1*); |
| 73 |
void SetLevel2(CaloLevel2*); |
| 74 |
|
| 75 |
void SetDrawAxis(Bool_t doit){ DRAWCBAR=doit; }; |
| 76 |
|
| 77 |
void DrawProjectionX(); |
| 78 |
void DrawProjectionY(); |
| 79 |
// void DrawProjectionT(); |
| 80 |
|
| 81 |
void Delete(); |
| 82 |
void Clear(); |
| 83 |
|
| 84 |
ClassDef(GCaloLevel2,1); |
| 85 |
|
| 86 |
}; |
| 87 |
// |
| 88 |
class GCaloHit : public TObject{ |
| 89 |
|
| 90 |
private: |
| 91 |
|
| 92 |
TBox *hit; |
| 93 |
|
| 94 |
public: |
| 95 |
GCaloHit(); |
| 96 |
GCaloHit(Float_t,Float_t,Float_t); |
| 97 |
GCaloHit(GCaloHit*); |
| 98 |
// void SetColor(Int_t col){m1->SetMarkerColor(col);}; |
| 99 |
void Delete(){ hit->Delete(); }; |
| 100 |
void Draw() { hit->Draw(); }; |
| 101 |
|
| 102 |
~GCaloHit() {Delete();}; |
| 103 |
|
| 104 |
ClassDef(GCaloHit,1); |
| 105 |
}; |
| 106 |
|
| 107 |
#endif |