star-fwd-software-l AT lists.bnl.gov
Subject: FWD Software
List archive
[Star-fwd-software-l] Read StEvent + GEANT.root together in sync
- From: "Brandenburg, James" <jbrandenburg AT bnl.gov>
- To: "star-fwd-software-l AT lists.bnl.gov" <star-fwd-software-l AT lists.bnl.gov>
- Subject: [Star-fwd-software-l] Read StEvent + GEANT.root together in sync
- Date: Thu, 26 May 2022 15:37:11 +0000
Email from Jason W.:
Hi Akio,
The way to read in event.root and geant.root togeher is is by setting the
options in StIOMaker... make sure the two files are in the same directory,
and use MainFile=/path/to/steventfile ...
StIOMaker *IOMk = new StIOMaker("IO","r",MainFile,"bfcTree");
IOMk->SetDebug();
IOMk->SetIOMode("r");
// If you comment out the following lines, everything will be read...
IOMk->SetBranch("*",0,"0"); //deactivate all branches
IOMk->SetBranch("eventBranch",0,"r"); //activate event Branch
IOMk->SetBranch("geantBranch",0,"r"); //activate dst Branch
...
Reading geant.root and MuDst in sync is possible, but more tricky, because
StIOMaker does not read in the MuDst.
There is an example that Jan created back in the day...
StRoot/StEEmcPool/macros/rdMuDst_Geant2print.C
Best,
Daniel
- [Star-fwd-software-l] Read StEvent + GEANT.root together in sync, Brandenburg, James, 05/26/2022
Archive powered by MHonArc 2.6.24.