Message: Writing digis with rootio Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Writing digis with rootio 

Forum: Persistency
Date: 14 Oct, 2005
From: Emanuele Leonardi <Emanuele Leonardi>

I am adapting the structure which in examples/extended/perisitency writes
hits to a root file so that I can also write digis.

I modified the Pers01CalorHit.rootio file in this way:

@------------------------------------------------------------------@
set class_name TileCalDigi
set collection_class TileCalDigitsCollection
set collection_base_class G4VDigiCollection
set array_io_base G4VPDigitsCollectionIO
set catalog G4DCIOentryT
#set sdet_name TileCalScintSD
set add_header
  @class_name@.hh
..
set member
  @int@ PMTNumber;
  @float@ Photoel;
  @int@ ROValue;
  @int@ Overflow;
..

set constructor
  @class_root@(@class_name@* digi)
  {
    PMTNumber = digi->GetPMTNumber();
    Photoel = digi->GetPhotoel();
    ROValue = digi->GetROValue();
    Overflow = digi->GetOverflow();
  }
..

set method
  @class_name@* @make_transient@()
  {
    @class_name@* digi = new @class_name@();
    digi->SetPMTNumber(PMTNumber);
    digi->SetPhotoel(Photoel);
    digi->SetROValue(ROValue);
    if (Overflow == 0) { digi->ResetOverflow(); } else { digi->SetOverflow(); }
    return digi;
  }
..
@------------------------------------------------------------------@

The problem is that I have no idea of what to use as sdet_name and the
g4rootio script complains that it is not defined:

g4rootio: Error - sensitive detctor name is not specified.  Stop.

What should I use as "sensitive detector" for digis?

Thanks

             Emanuele Leonardi

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

 Add Message Add Message
to: "Writing digis with rootio"

 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 ]