Message: Re: Disabling a persistency manager Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Disabling a persistency manager 

Forum: Persistency
Re: Question Disabling a persistency manager (Jeremy McCormick)
Date: 09 Nov, 2016
From: Jeremy McCormick <Jeremy McCormick>

Extra info in case it is needed ...

I am creating and registering my persistency manager as follows:

RootPersistencyManager()
    : G4PersistencyManager(G4PersistencyCenter::GetPersistencyCenter(), "RootPersistencyManager") {
    G4PersistencyCenter::GetPersistencyCenter()->RegisterPersistencyManager(this);
    G4PersistencyCenter::GetPersistencyCenter()->SetPersistencyManager(this, "RootPersistencyManager");
}

I then check layer if it is registered using ...

if (G4PersistencyCenter::GetPersistencyCenter()->GetPersistencyManager("RootPersistencyManager")) {
    // ...
}

I need to activate it in a few user action hooks so I would like to be able to check if it is installed.

Thanks.

 Add Message Add Message
to: "Re: Disabling a persistency manager"

 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 ]