 |
ATLAS Offline Software
|
#include <Photospp_i.h>
|
| Photospp_i (const std::string &name, ISvcLocator *pSvcLocator) |
| Standard Athena algorithm constructor. More...
|
|
StatusCode | initialize () |
| Initialise the Photospp_i algorithm and required services. More...
|
|
StatusCode | execute () |
| Run Photos on one event Will require a pre-existing HepMC event in Storegate. More...
|
|
void | setupPhotos () |
| Set up the Photos class This may be called in the initialize method or directly before the generation of the first event. More...
|
|
friend | double ::phoranc_ (int *idum) |
| This external fortran function is the PHOTOS++ random number generator We make it a friend so it can access our AthRNGSvc. 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, V, H > &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 |
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> 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...
|
|
StringProperty | m_genEventKey {this, "MCEventKey", "GEN_EVENT"} |
| The GenEvent StoreGate key - FIXME should be using Read/WriteHandles here. More...
|
|
BooleanProperty | m_exponentiation {this, "ExponentiationMode", true} |
| Whether to use exponentiation mode (default = yes) More...
|
|
BooleanProperty | m_createHistory {this, "CreateHistory", false} |
| Whether to create history entries (default = yes) More...
|
|
BooleanProperty | m_stopCritical {this, "StopCriticalErrors", false} |
| Whether to stop on critical error (default = no) More...
|
|
BooleanProperty | m_delayInitialisation {this, "DelayInitialisation", false} |
| Delay initialisation until just before first event execution (default = no) More...
|
|
BooleanProperty | m_ZMECorrection {this, "ZMECorrection", false} |
| Whether to apply ME correction to Z decays (default = no, until validated) More...
|
|
BooleanProperty | m_WMECorrection {this, "WMECorrection", false} |
| Whether to apply ME correction to W decays (default = no, until validated) More...
|
|
BooleanProperty | m_photonSplitting {this, "PhotonSplitting", false} |
| Whether to include photon splitting. More...
|
|
DoubleProperty | m_infraRedCutOff {this, "InfraRedCutOff", -1.} |
|
DoubleProperty | m_maxWtInterference {this, "WtInterference", 3.} |
|
DoubleProperty | m_alphaQED {this, "AlphaQED", 0.00729735039} |
| Value of alpha_QED. 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 |
|
Definition at line 16 of file Photospp_i.h.
◆ StoreGateSvc_t
◆ Photospp_i()
Photospp_i::Photospp_i |
( |
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()
◆ double ::phoranc_()
Photospp_i::double ::phoranc_ |
( |
int * |
idum | ) |
|
This external fortran function is the PHOTOS++ random number generator We make it a friend so it can access our AthRNGSvc.
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode Photospp_i::execute |
( |
| ) |
|
Run Photos on one event Will require a pre-existing HepMC event in Storegate.
Definition at line 135 of file Photospp_i.cxx.
145 const EventContext& ctx = Gaudi::Hive::currentContext();
152 if (
sc.isFailure() || eventCollection == 0) {
154 return StatusCode::FAILURE;
160 HepMC::GenEvent *
event = eventCollection->back();
163 return StatusCode::FAILURE;
165 switch(
event->momentum_unit()) {
171 case HepMC3::Units::MomentumUnit::MEV:
172 Photos::setMomentumUnit(Photos::MEV);
180 case HepMC::Units::MEV:
181 Photos::setMomentumUnit(Photos::MEV);
186 ATH_MSG_ERROR(
"Photospp_i received a event with unknown units.");
187 Photos::setMomentumUnit(Photos::DEFAULT_MOMENTUM);
190 PhotosHepMCEvent photosEvent(
event);
191 photosEvent.process();
193 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 * Photospp_i::getRandomEngine |
( |
const std::string & |
streamName, |
|
|
unsigned long int |
randomSeedOffset, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
private |
◆ getRandomEngineDuringInitialize()
CLHEP::HepRandomEngine * Photospp_i::getRandomEngineDuringInitialize |
( |
const std::string & |
streamName, |
|
|
unsigned long int |
randomSeedOffset, |
|
|
unsigned int |
conditionsRun = 1 , |
|
|
unsigned int |
lbn = 1 |
|
) |
| const |
|
private |
Definition at line 118 of file Photospp_i.cxx.
123 ctx.setEventID (EventIDBase (conditionsRun,
124 EventIDBase::UNDEFEVT,
125 EventIDBase::UNDEFNUM,
126 EventIDBase::UNDEFNUM,
◆ initialize()
StatusCode Photospp_i::initialize |
( |
| ) |
|
Initialise the Photospp_i algorithm and required services.
Definition at line 45 of file Photospp_i.cxx.
53 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 Photospp_i::reseedRandomEngine |
( |
const std::string & |
streamName, |
|
|
const EventContext & |
ctx |
|
) |
| |
|
private |
◆ setupPhotos()
void Photospp_i::setupPhotos |
( |
| ) |
|
Set up the Photos class This may be called in the initialize method or directly before the generation of the first event.
Definition at line 56 of file Photospp_i.cxx.
60 Photos::setInterference(
true);
61 Photos::setCorrectionWtForW(
true);
66 Photos::forceMassFrom4Vector(
true);
67 Photos::forceMassFromEventRecord(13);
68 Photos::forceMassFromEventRecord(15);
70 Photos::forceMassFromEventRecord(211);
71 Photos::setTopProcessRadiation(
false);
79 Photos::setExponentiation(
true);
81 Photos::setInfraredCutOff(0.01);
82 Photos::setDoubleBrem(
true);
83 Photos::setQuatroBrem(
false);
92 Photospp::Log::LogWarning(
false);
◆ 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_alphaQED
DoubleProperty Photospp_i::m_alphaQED {this, "AlphaQED", 0.00729735039} |
|
private |
◆ m_createHistory
BooleanProperty Photospp_i::m_createHistory {this, "CreateHistory", false} |
|
private |
Whether to create history entries (default = yes)
Definition at line 66 of file Photospp_i.h.
◆ m_delayInitialisation
BooleanProperty Photospp_i::m_delayInitialisation {this, "DelayInitialisation", false} |
|
private |
Delay initialisation until just before first event execution (default = no)
Definition at line 72 of file Photospp_i.h.
◆ m_detStore
◆ m_dsid
IntegerProperty Photospp_i::m_dsid {this, "Dsid", 999999} |
|
private |
◆ m_evtStore
◆ m_exponentiation
BooleanProperty Photospp_i::m_exponentiation {this, "ExponentiationMode", true} |
|
private |
Whether to use exponentiation mode (default = yes)
Definition at line 63 of file Photospp_i.h.
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_genEventKey
StringProperty Photospp_i::m_genEventKey {this, "MCEventKey", "GEN_EVENT"} |
|
private |
The GenEvent StoreGate key - FIXME should be using Read/WriteHandles here.
Definition at line 60 of file Photospp_i.h.
◆ m_infraRedCutOff
DoubleProperty Photospp_i::m_infraRedCutOff {this, "InfraRedCutOff", -1.} |
|
private |
◆ m_maxWtInterference
DoubleProperty Photospp_i::m_maxWtInterference {this, "WtInterference", 3.} |
|
private |
◆ m_photonSplitting
BooleanProperty Photospp_i::m_photonSplitting {this, "PhotonSplitting", false} |
|
private |
Whether to include photon splitting.
Definition at line 81 of file Photospp_i.h.
◆ m_randomSeed
IntegerProperty Photospp_i::m_randomSeed {this, "RandomSeed", 1234567, "Random seed for the built-in random engine"} |
|
private |
Seed for random number engine.
Definition at line 57 of file Photospp_i.h.
◆ m_rndmSvc
◆ m_stopCritical
BooleanProperty Photospp_i::m_stopCritical {this, "StopCriticalErrors", false} |
|
private |
Whether to stop on critical error (default = no)
Definition at line 69 of file Photospp_i.h.
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_WMECorrection
BooleanProperty Photospp_i::m_WMECorrection {this, "WMECorrection", false} |
|
private |
Whether to apply ME correction to W decays (default = no, until validated)
Definition at line 78 of file Photospp_i.h.
◆ m_ZMECorrection
BooleanProperty Photospp_i::m_ZMECorrection {this, "ZMECorrection", false} |
|
private |
Whether to apply ME correction to Z decays (default = no, until validated)
Definition at line 75 of file Photospp_i.h.
◆ p_rndmEngine
CLHEP::HepRandomEngine * Photospp_i::p_rndmEngine = nullptr |
|
static |
The documentation for this class was generated from the following files:
CLHEP::HepRandomEngine * getRandomEngine(const std::string &streamName, unsigned long int randomSeedOffset, const EventContext &ctx) const
void setSeed(const std::string &algName, const EventContext &ctx)
Set the random seed using a string (e.g.
BooleanProperty m_photonSplitting
Whether to include photon splitting.
CLHEP::HepRandomEngine * getRandomEngineDuringInitialize(const std::string &streamName, unsigned long int randomSeedOffset, unsigned int conditionsRun=1, unsigned int lbn=1) const
BooleanProperty m_exponentiation
Whether to use exponentiation mode (default = yes)
BooleanProperty m_WMECorrection
Whether to apply ME correction to W decays (default = no, until validated)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
ServiceHandle< IAthRNGSvc > m_rndmSvc
DoubleProperty m_infraRedCutOff
BooleanProperty m_createHistory
Whether to create history entries (default = yes)
virtual void setOwner(IDataHandleHolder *o)=0
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize() override
Override sysInitialize.
POOL::TEvent event(POOL::TEvent::kClassAccess)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
void reseedRandomEngine(const std::string &streamName, const EventContext &ctx)
A wrapper class for event-slot-local random engines.
void setupPhotos()
Set up the Photos class This may be called in the initialize method or directly before the generation...
IntegerProperty m_randomSeed
Seed for random number engine.
CLHEP::HepRandomEngine * getEngine(const EventContext &ctx) const
Retrieve the random engine corresponding to the provided EventContext.
BooleanProperty m_ZMECorrection
Whether to apply ME correction to Z decays (default = no, until validated)
DataObjIDColl m_extendedExtraObjects
static CLHEP::HepRandomEngine * p_rndmEngine
#define ATH_MSG_WARNING(x)
StringProperty m_genEventKey
The GenEvent StoreGate key - FIXME should be using Read/WriteHandles here.
DoubleProperty m_alphaQED
Value of alpha_QED.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
BooleanProperty m_delayInitialisation
Delay initialisation until just before first event execution (default = no)
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.
AthAlgorithm()
Default constructor:
BooleanProperty m_stopCritical
Whether to stop on critical error (default = no)
DoubleProperty m_maxWtInterference
void setExtendedEventContext(EventContext &ctx, ExtendedEventContext &&ectx)
Move an extended context into a context object.
constexpr double electronMassInMeV
the mass of the electron (in MeV)