GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Analysis » [FIXED] Propagate Functions in PndAnalysis
Re: Propagate Functions in PndAnalysis [message #14934 is a reply to message #14931] Fri, 05 July 2013 08:39 Go to previous message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 499
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: *pool.mediaWays.net
Hi Andreas,

I suppose it is important where to put that line in the initialization. For reference I post the head of my macro in all it's glory. (We don't need rootlogon.C anymore and Tools.C moved to macro/run)
void testParticles ( int nevts=0 )
{ 
  // *** some variables
  int i=0,j=0, k=0, l=0;
  TString plotfile="datakin/testParticles.root";
  TString OutFile="datakin/dummyOut.root";

  // *** the files coming from the simulation
  TString inPidFile  = "datakin/pid_complete.root";    // this file contains the PndPidCandidates
  TString inRecoFile = "datakin/reco_complete.root";
  TString inDigiFile = "datakin/digi_complete.root";
  TString inSimFile  = "datakin/sim_complete.root";  // this file contains the MC truth
  TString inParFile  = "datakin/simparams.root";

  gStyle->SetOptFit ( 1011 );
  gROOT->LoadMacro ( "$VMCWORKDIR/macro/run/Tools.C" );
  ImproveDefaultStyle();

  FairLogger::GetLogger()->SetLogToFile ( kFALSE );

  // *** initialization
  FairRunAna* fRun = new FairRunAna();
  FairRuntimeDb* rtdb = fRun->GetRuntimeDb();
  fRun->SetInputFile ( inSimFile );
  fRun->AddFriend ( inDigiFile );
  fRun->AddFriend ( inRecoFile );
  fRun->AddFriend ( inPidFile );

  FairParRootFileIo* parIO = new FairParRootFileIo();
  parIO->open ( inParFile );
  rtdb->setFirstInput ( parIO );
  rtdb->setOutput ( parIO );

  fRun->SetOutputFile ( OutFile );
  FairGeane *Geane = new FairGeane();
  fRun->AddTask(Geane);
  fRun->Init();


As I see it you want to create a FairGeanePro object without initializing FairGeane, the thing which interfaces to the Field, Geo and Framework.

Cheers
Ralf
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to convert kinematic variables from lab frame to cm frame in root
Next Topic: RHO: Major Modifications
Goto Forum:
  


Current Time: Wed Apr 24 04:13:39 CEST 2019

Total time taken to generate the page: 0.02481 seconds