#ifndef UBOONE_LEE_POT
#define UBOONE_LEE_POT

namespace LEEana{
struct POTInfo{
  Int_t runNo;
  Int_t subRunNo;
  Double_t pot_tor875;
  Double_t pot_tor875good;
  Double_t spill_tor875;
  Double_t spill_tor875good;
  
};

void set_tree_address(TTree *tree0, POTInfo& tagger_info);
void put_tree_address(TTree *tree0, POTInfo& tagger_info);
}

void LEEana::set_tree_address(TTree *tree0, POTInfo& pot_info){
  tree0->SetBranchAddress("runNo",&pot_info.runNo);
  tree0->SetBranchAddress("subRunNo", &pot_info.subRunNo);
  tree0->SetBranchAddress("pot_tor875", &pot_info.pot_tor875);
  tree0->SetBranchAddress("pot_tor875good", &pot_info.pot_tor875good);
  tree0->SetBranchAddress("spill_tor875", &pot_info.spill_tor875);
  tree0->SetBranchAddress("spill_tor875good", &pot_info.spill_tor875good);
  
  
}
void LEEana::put_tree_address(TTree *tree0, POTInfo& pot_info){
  tree0->Branch("runNo",&pot_info.runNo,"data/I");
  tree0->Branch("subRunNo", &pot_info.subRunNo,"data/I");
  tree0->Branch("pot_tor875", &pot_info.pot_tor875,"data/D");
  tree0->Branch("pot_tor875good", &pot_info.pot_tor875good,"data/D");
  tree0->Branch("spill_tor875", &pot_info.spill_tor875,"data/D");
  tree0->Branch("spill_tor875good", &pot_info.spill_tor875good,"data/D");
}


#endif
