void read_obj()
{
  TFile *roofile = new TFile("file_pred_01_01.root", "read");

  TTree *tree = (TTree*)roofile->Get("tree");


  // Declaration of leaf types
  vector<int>     *vec_dm2_t14_t24_other;
  vector<double>  *vec_pred_before_collapse;

  // List of branches
  TBranch        *b_vec_dm2_t14_t24_other;   //!
  TBranch        *b_vec_pred_before_collapse;   //!
  
  // Set object pointer
  vec_dm2_t14_t24_other = 0;
  vec_pred_before_collapse = 0;
  
  // Set branch addresses and branch pointers
  tree->SetBranchAddress("vec_dm2_t14_t24_other", &vec_dm2_t14_t24_other, &b_vec_dm2_t14_t24_other);
  tree->SetBranchAddress("vec_pred_before_collapse", &vec_pred_before_collapse, &b_vec_pred_before_collapse);

  int entries = tree->GetEntry();
  
  for(int ientry=0; ientry<entries; ientry++) {
    tree->GetEntry(ientry);

    int jdm2 = vec_dm2_t14_t24_other->at(0);
    int jt14 = vec_dm2_t14_t24_other->at(1);
    int jt24 = vec_dm2_t14_t24_other->at(2);

    int vc_size = vec_pred_before_collapse->size();

    cout<<jdm2<<"\t"<<jt14<<"\t"<<jt24<<endl;
    
    if( jdm2==1 && jt14==1 && jt24==52 )
      for(int idx=0; idx<100; idx++) {
	cout<<TString::Format(" ---> %04d, %12.4f", idx, vec_pred_before_collapse->at(idx) )<<endl;
      }
    
  }
  
}
