/[PAMELA software]/yoda/event/PamelaRun.cpp
ViewVC logotype

Diff of /yoda/event/PamelaRun.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2.5 by kusanagi, Thu Dec 16 17:32:46 2004 UTC revision 2.6 by kusanagi, Wed Feb 9 22:24:33 2005 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Author: kusanagi $   * $Author: kusanagi $
3   * $Date: 2004/12/09 08:47:42 $   * $Date: 2004/12/16 17:32:46 $
4   * $Revision: 2.4 $   * $Revision: 2.5 $
5   *   *
6   * Implementation of the PamelaRun class.   * Implementation of the PamelaRun class.
7   */   */
# Line 270  static void AddAllAsFriend(TChain* tree, Line 270  static void AddAllAsFriend(TChain* tree,
270    }    }
271    TFile* File = new TFile(BaseFileName.c_str(), "read");    TFile* File = new TFile(BaseFileName.c_str(), "read");
272    if (!File->IsOpen()) {    if (!File->IsOpen()) {
273      logger->warn("Could not open file " + BaseFileName + " for reading.");      logger->error("Could not open file " + BaseFileName + " for reading.");
274      return;      return;
275    }    }
276    TList* list = File->GetListOfKeys();    TList* list = File->GetListOfKeys();
# Line 420  TTree* PamelaRun::CreateTTree(Algorithm* Line 420  TTree* PamelaRun::CreateTTree(Algorithm*
420    AlgorithmInfo ai(algo);    AlgorithmInfo ai(algo);
421    ai.Write();    ai.Write();
422    info.Write();    info.Write();
423    logger->info("Creating file " + FileName + " with Tree " + TreeName);    logger->debug("Creating file " + FileName + " with Tree " + TreeName);
424    return tree;    return tree;
425  }  }
426    
# Line 496  void PamelaRun::WriteHeader(Algorithm* a Line 496  void PamelaRun::WriteHeader(Algorithm* a
496    std::stringstream temp;    std::stringstream temp;
497    //temp.str("");    //temp.str("");
498    //temp << "Created file" << FileName.c_str() << " with Tree Pscu" ;    //temp << "Created file" << FileName.c_str() << " with Tree Pscu" ;
499    //logger->info(temp.str());    //logger->debug(temp.str());
500    tree->Branch(GetDefaultBranchName(&header).c_str(),    tree->Branch(GetDefaultBranchName(&header).c_str(),
501                 (*subpacket)->Class()->GetName(), subpacket);                 (*subpacket)->Class()->GetName(), subpacket);
502    TTreeMap.insert(RootTreeMap::value_type(type, tree));    TTreeMap.insert(RootTreeMap::value_type(type, tree));

Legend:
Removed from v.2.5  
changed lines
  Added in v.2.6

  ViewVC Help
Powered by ViewVC 1.1.23