Message: Empty Ntuple Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Empty Ntuple 

Forum: Analysis
Date: 21 Nov, 2017
From: Patrick Asenov <Patrick Asenov>

Good afternoon, dear friends and comrades!

I've been trying to fill an ntuple with the energy deposited per subvolume of my initial volume of a detector. I create the ntuple inside the HistoManager.cc as follows:

  // nTuples
  //
  analysisManager->SetNtupleDirectoryName("ntuple");
  analysisManager->SetFirstNtupleId(1);       
  analysisManager->CreateNtuple("101", "Primary Particle Tuple");
  for (G4int l=0; l<(2*kNbofStrips+1); l++) {
     analysisManager->CreateNtupleDColumn("EdepStrip");          //column l: 1 to 1016 correspond to Detector 1, 2 to 2032 correspond to Detector 2
  }
  analysisManager->FinishNtuple();

  analysisManager->SetNtupleActivation(false);  

Then I attempt to fill it inside EventAction.cc as follows:

  // fill ntuple  
  for (int i = 0; i < 1017; i = i + 1) {
    analysisManager->FillNtupleDColumn(i, fEnergyStrip1[i]);
    analysisManager->FillNtupleDColumn(i+1016, fEnergyStrip2[i]);
    analysisManager->AddNtupleRow();
  }  

However, when I open the ROOT file after I have run my example, I find the ntuple folder empty.

Do you have any idea what may be going wrong? I would be sincerely grateful to those of you who would grant me an explanation of my mistake.

Thank you in advance! Cheers!

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

1 None: Re: Empty Ntuple   (Ivana Hrivnacova - 23 Nov, 2017)
1 Feedback: Re: Empty Ntuple   (Patrick Asenov - 23 Nov, 2017)
2 None: Re: Empty Ntuple   (Ivana Hrivnacova - 27 Nov, 2017)
1 Feedback: Re: Empty Ntuple   (Patrick Asenov - 28 Nov, 2017)
(_ None: Re: Empty Ntuple   (Ivana Hrivnacova - 29 Nov, 2017)
(_ Feedback: Re: Empty Ntuple   (Patrick Asenov - 29 Nov, 2017)
(_ None: Re: Empty Ntuple   (Ivana Hrivnacova - 29 Nov, 2017)
(_ Question: Re: Empty Ntuple   (Patrick Asenov - 29 Nov, 2017)
(_ None: Re: Empty Ntuple   (Ivana Hrivnacova - 30 Nov, 2017)
(_ Ok: Re: Empty Ntuple   (Patrick Asenov - 05 Dec, 2017)
3 Idea: Re: Empty Ntuple   (Odera Dim - 27 Nov, 2017)
1 Feedback: Re: Empty Ntuple   (Patrick Asenov - 28 Nov, 2017)
1 Feedback: Re: Empty Ntuple   (Patrick Asenov - 28 Nov, 2017)
2 Idea: Re: Empty Ntuple   (Odera Dim - 28 Nov, 2017)
... 1 Message(s)
3 Idea: Re: Empty Ntuple   (Odera Dim - 28 Nov, 2017)
4 Question: Re: Empty Ntuple   (Patrick Asenov - 29 Nov, 2017)
1 None: Re: Empty Ntuple   (Ivana Hrivnacova - 30 Nov, 2017)
1 Ok: Re: Empty Ntuple   (Patrick Asenov - 05 Dec, 2017)
2 Ok: Re: Empty Ntuple   (Patrick Asenov - 05 Dec, 2017)
 Add Message Add Message
to: "Empty Ntuple"

 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 ]