|
ATLAS Offline Software
|
This Algorithm provides an easy interface to Tauola C++ interface.
More...
#include <TauolaPP.h>
|
| TauolaPP (const std::string &name, ISvcLocator *pSvcLocator) |
| Constructor. More...
|
|
virtual StatusCode | initialize () override |
| Initialization of Tauola++ and setting of JO configurables. More...
|
|
virtual StatusCode | execute () override |
| Pass each event in the McEventCollection to Tauola to (re)decay the taus. More...
|
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
DataObjIDColl | m_extendedExtraObjects |
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
|
IntegerProperty | m_decay_particle {this, "decay_particle", 15} |
| PDG ID of particle to study. More...
|
|
IntegerProperty | m_decay_mode_same {this, "decay_mode_same", 1} |
| TAUOLA decay mode of particles with same charge as "decay_particle". More...
|
|
IntegerProperty | m_decay_mode_opp {this, "decay_mode_opposite", 2} |
| TAUOLA decay mode of particles with opposite charge as "decay_particle". More...
|
|
DoubleProperty | m_tau_mass {this, "tau_mass", 1.77684} |
| tau mass to be taken by TAUOLA More...
|
|
BooleanProperty | m_spin_correlation {this, "spin_correlation", true} |
| TAUOLA switch for spin effects. More...
|
|
BooleanProperty | m_setRadiation {this, "setRadiation", true} |
| TAUOLA switch for radiative corrections for leptonic tau decays. More...
|
|
DoubleProperty | m_setRadiationCutOff {this, "setRadiationCutOff", 0.01} |
| TAUOLA cut-off for radiative corrections. More...
|
|
|
StringProperty | m_key {this, "McEventKey", "GEN_EVENT"} |
| Event record container key - FIXME should be using Read/WriteHandles here. More...
|
|
ServiceHandle< IAthRNGSvc > | m_rndmSvc {this, "RndmSvc", "AthRNGSvc"} |
|
IntegerProperty | m_dsid {this, "Dsid", 999999} |
|
IntegerProperty | m_randomSeed {this, "RandomSeed", 1234567, "Random seed for the built-in random engine"} |
| Seed for random number engine. More...
|
|
void | reseedRandomEngine (const std::string &streamName, const EventContext &ctx) |
|
CLHEP::HepRandomEngine * | getRandomEngine (const std::string &streamName, unsigned long int randomSeedOffset, const EventContext &ctx) const |
|
CLHEP::HepRandomEngine * | getRandomEngineDuringInitialize (const std::string &streamName, unsigned long int randomSeedOffset, unsigned int conditionsRun=1, unsigned int lbn=1) const |
|
This Algorithm provides an easy interface to Tauola C++ interface.
- Author
- Nadia Davidson, Marcin Wolter
- Todo:
- Convert to use standard GenModule base class
Definition at line 23 of file TauolaPP.h.
◆ StoreGateSvc_t
◆ TauolaPP()
TauolaPP::TauolaPP |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode TauolaPP::execute |
( |
| ) |
|
|
overridevirtual |
Pass each event in the McEventCollection to Tauola to (re)decay the taus.
Definition at line 115 of file TauolaPP.cxx.
118 const EventContext& ctx = Gaudi::Hive::currentContext();
129 for (HepMC::GenEvent*
evt : *mcCollptr) {
131 auto t_event =
new Tauolapp::TauolaHepMCEvent(
evt);
134 t_event->undecayTaus();
136 t_event->decayTaus();
140 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ getRandomEngine()
CLHEP::HepRandomEngine * TauolaPP::getRandomEngine |
( |
const std::string & |
streamName, |
|
|
unsigned long int |
randomSeedOffset, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
private |
◆ getRandomEngineDuringInitialize()
CLHEP::HepRandomEngine * TauolaPP::getRandomEngineDuringInitialize |
( |
const std::string & |
streamName, |
|
|
unsigned long int |
randomSeedOffset, |
|
|
unsigned int |
conditionsRun = 1 , |
|
|
unsigned int |
lbn = 1 |
|
) |
| const |
|
private |
Definition at line 98 of file TauolaPP.cxx.
103 ctx.setEventID (EventIDBase (conditionsRun,
104 EventIDBase::UNDEFEVT,
105 EventIDBase::UNDEFNUM,
106 EventIDBase::UNDEFNUM,
◆ initialize()
StatusCode TauolaPP::initialize |
( |
| ) |
|
|
overridevirtual |
Initialization of Tauola++ and setting of JO configurables.
Definition at line 44 of file TauolaPP.cxx.
51 using Tauolapp::Tauola;
62 Tauola::setEtaK0sPi(1,0,1);
68 Tauola::setRandomGenerator(AthenaRandomGenerator);
72 Tauola::setSeed(
int(std::abs(sip[0])%(900000000)),0,0);
77 return StatusCode::SUCCESS;
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ reseedRandomEngine()
void TauolaPP::reseedRandomEngine |
( |
const std::string & |
streamName, |
|
|
const EventContext & |
ctx |
|
) |
| |
|
private |
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_decay_mode_opp
IntegerProperty TauolaPP::m_decay_mode_opp {this, "decay_mode_opposite", 2} |
|
private |
TAUOLA decay mode of particles with opposite charge as "decay_particle".
Definition at line 68 of file TauolaPP.h.
◆ m_decay_mode_same
IntegerProperty TauolaPP::m_decay_mode_same {this, "decay_mode_same", 1} |
|
private |
TAUOLA decay mode of particles with same charge as "decay_particle".
Definition at line 65 of file TauolaPP.h.
◆ m_decay_particle
IntegerProperty TauolaPP::m_decay_particle {this, "decay_particle", 15} |
|
private |
PDG ID of particle to study.
Definition at line 62 of file TauolaPP.h.
◆ m_detStore
◆ m_dsid
IntegerProperty TauolaPP::m_dsid {this, "Dsid", 999999} |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_key
StringProperty TauolaPP::m_key {this, "McEventKey", "GEN_EVENT"} |
|
private |
Event record container key - FIXME should be using Read/WriteHandles here.
Definition at line 47 of file TauolaPP.h.
◆ m_randomSeed
IntegerProperty TauolaPP::m_randomSeed {this, "RandomSeed", 1234567, "Random seed for the built-in random engine"} |
|
private |
Seed for random number engine.
Definition at line 56 of file TauolaPP.h.
◆ m_rndmSvc
◆ m_setRadiation
BooleanProperty TauolaPP::m_setRadiation {this, "setRadiation", true} |
|
private |
TAUOLA switch for radiative corrections for leptonic tau decays.
Definition at line 77 of file TauolaPP.h.
◆ m_setRadiationCutOff
DoubleProperty TauolaPP::m_setRadiationCutOff {this, "setRadiationCutOff", 0.01} |
|
private |
TAUOLA cut-off for radiative corrections.
Definition at line 80 of file TauolaPP.h.
◆ m_spin_correlation
BooleanProperty TauolaPP::m_spin_correlation {this, "spin_correlation", true} |
|
private |
TAUOLA switch for spin effects.
Definition at line 74 of file TauolaPP.h.
◆ m_tau_mass
DoubleProperty TauolaPP::m_tau_mass {this, "tau_mass", 1.77684} |
|
private |
tau mass to be taken by TAUOLA
Definition at line 71 of file TauolaPP.h.
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ p_rndmEngine
CLHEP::HepRandomEngine * TauolaPP::p_rndmEngine = nullptr |
|
static |
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
void setSeed(const std::string &algName, const EventContext &ctx)
Set the random seed using a string (e.g.
void reseedRandomEngine(const std::string &streamName, const EventContext &ctx)
StringProperty m_key
Event record container key - FIXME should be using Read/WriteHandles here.
static CLHEP::HepRandomEngine * p_rndmEngine
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
BooleanProperty m_setRadiation
TAUOLA switch for radiative corrections for leptonic tau decays.
CLHEP::HepRandomEngine * getRandomEngineDuringInitialize(const std::string &streamName, unsigned long int randomSeedOffset, unsigned int conditionsRun=1, unsigned int lbn=1) const
ServiceHandle< IAthRNGSvc > m_rndmSvc
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
IntegerProperty m_decay_mode_opp
TAUOLA decay mode of particles with opposite charge as "decay_particle".
CLHEP::HepRandomEngine * getRandomEngine(const std::string &streamName, unsigned long int randomSeedOffset, const EventContext &ctx) const
virtual void setOwner(IDataHandleHolder *o)=0
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
DoubleProperty m_setRadiationCutOff
TAUOLA cut-off for radiative corrections.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
A wrapper class for event-slot-local random engines.
CLHEP::HepRandomEngine * getEngine(const EventContext &ctx) const
Retrieve the random engine corresponding to the provided EventContext.
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
void calculateSeedsMC21(long *seeds, const std::string &algName, uint64_t ev, uint64_t run, uint64_t offset=0)
Set the random seed using a string (e.g.
IntegerProperty m_randomSeed
Seed for random number engine.
AthAlgorithm()
Default constructor:
DoubleProperty m_tau_mass
tau mass to be taken by TAUOLA
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
void setExtendedEventContext(EventContext &ctx, ExtendedEventContext &&ectx)
Move an extended context into a context object.
BooleanProperty m_spin_correlation
TAUOLA switch for spin effects.
IntegerProperty m_decay_mode_same
TAUOLA decay mode of particles with same charge as "decay_particle".