| 1 |
mocchiut |
1.1 |
/** |
| 2 |
|
|
* \file CaloProfile.h |
| 3 |
|
|
* \author Emiliano Mocchiutti |
| 4 |
|
|
*/ |
| 5 |
|
|
#ifndef caloprofile_h |
| 6 |
|
|
#define caloprofile_h |
| 7 |
|
|
|
| 8 |
|
|
#include <PamLevel2.h> |
| 9 |
|
|
|
| 10 |
|
|
#include <TTree.h> |
| 11 |
|
|
#include <TFriendElement.h> |
| 12 |
|
|
#include <TChain.h> |
| 13 |
|
|
#include <TCanvas.h> |
| 14 |
|
|
#include <TGraph.h> |
| 15 |
|
|
#include <TH1F.h> |
| 16 |
|
|
#include <TH2F.h> |
| 17 |
|
|
#include <TFile.h> |
| 18 |
|
|
#include <TPolyLine.h> |
| 19 |
|
|
#include <TMath.h> |
| 20 |
|
|
#include <TStyle.h> |
| 21 |
|
|
#include <TList.h> |
| 22 |
|
|
#include <TKey.h> |
| 23 |
|
|
#include <TSystemFile.h> |
| 24 |
|
|
#include <TSystemDirectory.h> |
| 25 |
|
|
#include <TSQLServer.h> |
| 26 |
|
|
#include <TF1.h> |
| 27 |
|
|
#include <iostream> |
| 28 |
|
|
|
| 29 |
|
|
using namespace std; |
| 30 |
|
|
|
| 31 |
|
|
/** |
| 32 |
|
|
* |
| 33 |
|
|
*/ |
| 34 |
|
|
class CaloLat : public TObject { |
| 35 |
|
|
|
| 36 |
|
|
private: |
| 37 |
|
|
// |
| 38 |
|
|
PamLevel2 *L2; |
| 39 |
|
|
Bool_t debug; |
| 40 |
|
|
// |
| 41 |
|
|
// needed to avoid reprocessing the same event over and over to obtain the variables |
| 42 |
|
|
// |
| 43 |
|
|
UInt_t OBT; |
| 44 |
|
|
UInt_t PKT; |
| 45 |
|
|
UInt_t atime; |
| 46 |
|
|
// |
| 47 |
|
|
Float_t estrip[2][22][96]; |
| 48 |
|
|
// |
| 49 |
|
|
|
| 50 |
|
|
public: |
| 51 |
|
|
// |
| 52 |
|
|
// |
| 53 |
|
|
void Draw(); |
| 54 |
|
|
void Draw(Int_t,Int_t); |
| 55 |
|
|
// |
| 56 |
|
|
CaloLat(); |
| 57 |
|
|
CaloLat(PamLevel2 *L2); |
| 58 |
|
|
~CaloLat(){ Delete(); }; |
| 59 |
|
|
// |
| 60 |
|
|
void SetDebug(Bool_t d){ debug=d; }; |
| 61 |
|
|
// |
| 62 |
|
|
void Clear(); |
| 63 |
|
|
void Clear(Option_t *option){Clear();}; |
| 64 |
|
|
void Delete(); |
| 65 |
|
|
// |
| 66 |
|
|
void Process(); ///< Process data |
| 67 |
|
|
void Print(); |
| 68 |
|
|
// |
| 69 |
|
|
ClassDef(CaloLat,1); |
| 70 |
|
|
}; |
| 71 |
|
|
|
| 72 |
|
|
/** |
| 73 |
|
|
* |
| 74 |
|
|
*/ |
| 75 |
|
|
class CaloLong : public TObject { |
| 76 |
|
|
|
| 77 |
|
|
private: |
| 78 |
|
|
// |
| 79 |
|
|
PamLevel2 *L2; |
| 80 |
|
|
Bool_t debug; |
| 81 |
|
|
// |
| 82 |
|
|
// needed to avoid reprocessing the same event over and over to obtain the variables |
| 83 |
|
|
// |
| 84 |
|
|
UInt_t OBT; |
| 85 |
|
|
UInt_t PKT; |
| 86 |
|
|
UInt_t atime; |
| 87 |
|
|
// |
| 88 |
|
|
Float_t eplane[2][22]; |
| 89 |
|
|
// |
| 90 |
|
|
|
| 91 |
|
|
public: |
| 92 |
|
|
// |
| 93 |
|
|
// |
| 94 |
|
|
void Draw(); |
| 95 |
|
|
void Draw(Int_t); |
| 96 |
|
|
// |
| 97 |
|
|
CaloLong(); |
| 98 |
|
|
CaloLong(PamLevel2 *L2); |
| 99 |
|
|
~CaloLong(){ Delete(); }; |
| 100 |
|
|
// |
| 101 |
|
|
void SetDebug(Bool_t d){ debug=d; }; |
| 102 |
|
|
// |
| 103 |
|
|
void Clear(); |
| 104 |
|
|
void Clear(Option_t *option){Clear();}; |
| 105 |
|
|
void Delete(); |
| 106 |
|
|
// |
| 107 |
|
|
void Process(); ///< Process data |
| 108 |
|
|
void Print(); |
| 109 |
|
|
// |
| 110 |
|
|
ClassDef(CaloLong,1); |
| 111 |
|
|
}; |
| 112 |
|
|
|
| 113 |
|
|
#endif |
| 114 |
|
|
|