#ifndef PAMELA_HH
#define PAMELA_HH

class Pamela {
public :
  TTree          *fChain;   //!pointer to the analyzed TTree or TChain

  // Declaration of leave types
  Int_t           Irun;
  Int_t           Ievnt;
  Int_t           Ipa;
  Float_t         X0;
  Float_t         Y0;
  Float_t         Z0;
  Float_t         Theta;
  Float_t         Phi;
  Float_t         P0;
  Int_t           Nthcal;
  UChar_t         Icaplane[4224];   //[Nthcal]
  UChar_t         Icastrip[4224];   //[Nthcal]
  Int_t           Icamod[4224];   //[Nthcal]
  Float_t         Enestrip[4224];   //[Nthcal]

  /*
   * List of branches
   * 
   * "//!" Prevents this data to be written of file by ROOT
   */
  TBranch        *b_Irun;   //!
  TBranch        *b_Ievnt;   //!
  TBranch        *b_Ipa;   //!
  TBranch        *b_X0;   //!
  TBranch        *b_Y0;   //!
  TBranch        *b_Z0;   //!
  TBranch        *b_Theta;   //!
  TBranch        *b_Phi;   //!
  TBranch        *b_P0;   //!
  TBranch        *b_Nthcal;   //!
  TBranch        *b_Icaplane;   //!
  TBranch        *b_Icastrip;   //!
  TBranch        *b_Icamod;   //!
  TBranch        *b_Enestrip;   //!

  Pamela(TTree *tree=0);
  Double_t EneCalo(Int_t entry = -1);
};
#endif


