RootInterface.cc problem

From: Agnieszka Priebe <Agnieszka.Priebe_at_cern.ch>
Date: Mon, 15 Nov 2010 16:42:43 +0100


Hello,

My root version 5.22, machine: Intel Core, CERN scientific Linux.

My RootInterface.cc contains:


//_________________________________________________________________________ 
RootInterface::RootInterface() {

  // Declare and open here the histograms and/or ntuples.   G4cout << "RootInterface::RootInterface() incarnation" << G4endl;   static TROOT rootBase("simple","I/O for beam losses simulations");

  // root stuff initialyzing

//---->create a new ROOT file

  rootfile = new TFile("out.root","RECREATE","root file with hits in magnet coil");   G4cout << "rootfile created" << G4endl; // rootfile->SetCompressionLevel(0);
//---->create a tree

  tree= new TTree("tree","energy deposits in coil and particles in BLM");   tree->SetAutoSave(1000000);
  tree->SetBranchStyle(1);

  G4cout << "tree created" << G4endl;

// new:

   event = new Event();
  G4cout << "event created" << G4endl;  

   //<-------------------------------------------------------------------------------------------------------- Somewhere here an errror occurs
   
//   TTree::SetBranchStyle(0);
   //         BranchName  ClassName  addobj buffsize splitlevel
   // buffsize might be increased as I have more than 256 MB of RAM    // split level=0 is memory saving (no division into subbranches) // magnet=tree->Branch("MQI","Event",&event);

   tree->Branch("MQI.","Event",&event,128000,99);

  G4cout << "RootInterface::RootInterface() incarnation end" << G4endl;          

}


While compiling it (gmake) everything is ok, but when I type "bin/Linux-g++/MQ" and then "/run/beamOn 1" I obtain an error:


### Run 0 start.
 Generating event number 0
shooting baryon with charge 1
RootInterface::RootInterface() incarnation rootfile created
tree created
event created

Could you please help me solving this problem?

Best regards,
Agnieszka Priebe Received on Mon Nov 15 2010 - 16:42:56 CET

This archive was generated by hypermail 2.2.0 : Tue Nov 23 2010 - 11:50:01 CET