Message: Re: How to fill ntuple with vector for geant4.10.01? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: How to fill ntuple with vector for geant4.10.01? 

Forum: Analysis
Re: Question How to fill ntuple with vector for geant4.10.01? (Vladimir Baranov)
Re: None Re: How to fill ntuple with vector for geant4.10.01? (Ivana Hrivnacova)
Re: Feedback Re: How to fill ntuple with vector for geant4.10.01? (Vladimir Baranov)
Re: Question Re: How to fill ntuple with vector for geant4.10.01? (Frederik Wauters)
Re: None Re: How to fill ntuple with vector for geant4.10.01? (Ivana Hrivnacova)
Date: 16 Mar, 2015
From: Frederik Wauters <Frederik Wauters>

* At the end of EndOfEventAction I have

    analysisManager->FillNtupleDColumn(0, eDep);
    analysisManager->AddNtupleRow();

* I have a tree in a ROOT file as my output

In Analysis.hh

#ifndef NC1Analysis_h
#define NC1Analysis_h 1

#include "g4root.hh" //#include "g4xml.hh"

#endif

and in RunAction.cc (constructor)

  G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
  analysisManager->SetFileName("NC1")

root [1] Germanium->Print()

******************************************************************************
*Tree    :Germanium : Germanium detector hits                                *
*Entries :    10000 : Total =          805974 bytes  File  Size =     179792 *
*        :          : Tree compression factor =   4.62                       *
******************************************************************************
*Br    0 :Edep      : Double_t Germanium                                     *
*Entries :    10000 : Total  Size=     120797 bytes  File Size  =      51659 *
*Baskets :        2 : Basket Size=      32000 bytes  Compression=   1.86     *
*............................................................................*
*Br    1 :Interactions : vector<int> Germanium                               *
*Entries :    10000 : Total  Size=     140939 bytes  File Size  =      21396 *
*Baskets :        3 : Basket Size=      32000 bytes  Compression=   6.29     *
*............................................................................*

The first branch is fine , all entries for the second one are empty.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: How to fill ntuple with vector for geant4.10.01?   (Ivana Hrivnacova - 16 Mar, 2015)
1 More: Re: How to fill ntuple with vector for geant4.10.01?   (Frederik Wauters - 16 Mar, 2015)
2 None: Re: How to fill ntuple with vector for geant4.10.01?   (Ivana Hrivnacova - 17 Mar, 2015)
1 More: Re: How to fill ntuple with vector for geant4.10.01?   (Frederik Wauters - 18 Mar, 2015)
... 8 Message(s)
 Add Message Add Message
to: "Re: How to fill ntuple with vector for geant4.10.01?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]