Message: Re: possible bug in G4HCofThisEvent Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: possible bug in G4HCofThisEvent 

Keywords: G4HCofThisEvent
Forum: Hits, Digitization and Pileup
Re: Warning possible bug in G4HCofThisEvent (Jeremy McCormick)
Re: None Re: possible bug in G4HCofThisEvent (Makoto Asai)
Date: 01 Oct, 2003
From: Jeremy McCormick <Jeremy McCormick>

There was no bug, and I wasn't setting HCID properly.

This is the working code...

SD Constructor:

  collectionName.insert(name);  // name is string parm

SD::Initialize():

  // SDName set from name parm
  calHitsCollection = new TBHitsCollection(SDName,collectionName[0]);

  // HCID is member var
  if (HCID < 0) 
  {
    HCID = G4SDManager::GetSDMpointer()->GetCollectionID(collectionName[0]);
  }

  HCE->AddHitsCollection(HCID,calHitsCollection);

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

 Add Message Add Message
to: "Re: possible bug in G4HCofThisEvent"

 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 ]