|
ATLAS Offline Software
|
Go to the documentation of this file.
15 m_eventInfoName(
"EventInfo") {
39 if (acc_procID.isAvailable(*(evtInfo))) {
44 ATH_MSG_WARNING(
"The SUSY_procID decoration requested is not available! You need to run SUSYSignalTagger beforehand.");
52 ATH_MSG_ERROR(
"TruthEvents could not be retrieved. Throwing exception");
53 throw std::runtime_error(
"SUSYIDWeight ASG Tool: TruthEvents could not be retrieved");
55 if( te->
size() == 0 ) {
56 ATH_MSG_ERROR(
"TruthEvents has no events in it. Throwing exception");
57 throw std::runtime_error(
"SUSYIDWeight ASG Tool: TruthEvents has no events in it");
59 const double weight = te->
at(0)->weights()[0];
73 if(
sc.isFailure() || !evtInfo) {
def retrieve(aClass, aKey=None)
SUSYIDWeight(const std::string &name)
Create a proper constructor for Athena.
virtual double getWeight() const override
returns: the value that was calculated from the usual Athena storegate
Helper class to provide type-safe access to aux data.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
double computeWeight(const xAOD::EventInfo *) const
virtual double evaluate(const xAOD::IParticle *part) const override
returns: the value that was calculated from the xAOD::IParticle (composite built event object for ins...
#define ATH_MSG_VERBOSE(x)
Class providing the definition of the 4-vector interface.
@ IS_SIMULATION
true: simulation, false: data
std::string m_eventInfoName
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
Class describing the basic event information.
#define ATH_MSG_WARNING(x)
float mcEventWeight(size_t i=0) const
The weight of one specific MC event used in the simulation.
const T * at(size_type n) const
Access an element, as an rvalue.
size_type size() const noexcept
Returns the number of elements in the collection.
bool eventType(EventType type) const
Check for one particular bitmask value.