|
ATLAS Offline Software
|
#include <SkimmingToolEXOT5.h>
|
| SkimmingToolEXOT5 (const std::string &t, const std::string &n, const IInterface *p) |
|
| ~SkimmingToolEXOT5 () |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | finalize () override |
|
virtual bool | eventPassesFilter () const override |
| Check that the current event passes this filter. 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 | sysInitialize () override |
| Perform system initialization for an algorithm. 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 |
|
Definition at line 22 of file SkimmingToolEXOT5.h.
◆ StoreGateSvc_t
◆ SkimmingToolEXOT5()
DerivationFramework::SkimmingToolEXOT5::SkimmingToolEXOT5 |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
Definition at line 27 of file SkimmingToolEXOT5.cxx.
35 declareInterface<DerivationFramework::ISkimmingTool>(
this);
◆ ~SkimmingToolEXOT5()
DerivationFramework::SkimmingToolEXOT5::~SkimmingToolEXOT5 |
( |
| ) |
|
◆ 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()
◆ eventPassesFilter()
bool DerivationFramework::SkimmingToolEXOT5::eventPassesFilter |
( |
| ) |
const |
|
overridevirtual |
Check that the current event passes this filter.
Implements DerivationFramework::ISkimmingTool.
Definition at line 69 of file SkimmingToolEXOT5.cxx.
80 bool passUncalibMonojetCut =
false;
81 bool passRecoJetCuts =
false;
82 bool passTruthJetCuts =
false;
84 std::unique_ptr<xAOD::JetContainer> recoJets = make_unique<xAOD::JetContainer>();
85 std::unique_ptr<xAOD::JetAuxContainer> recoJetsAux = make_unique<xAOD::JetAuxContainer>();
86 recoJets->setStore(recoJetsAux.get());
89 for (
const auto jet : *jets_shallowCopy.first) {
90 if (
jet->pt() > 100000.) passUncalibMonojetCut =
true;
96 for (
const auto jet : *jets_shallowCopy.first) {
101 delete jets_shallowCopy.first;
102 delete jets_shallowCopy.second;
106 if (recoJets->
size() > 1) {
107 TLorentzVector jet1 = recoJets->
at(0)->p4();
108 TLorentzVector jet2 = recoJets->
at(1)->p4();
109 auto dijet = jet1 + jet2;
118 std::unique_ptr<xAOD::JetContainer> truthJets = make_unique<xAOD::JetContainer>();
119 std::unique_ptr<xAOD::JetAuxContainer> truthJetsAux = make_unique<xAOD::JetAuxContainer>();
120 truthJets->setStore(truthJetsAux.get());
122 for (
const auto truthJet : *truthJetContainer) {
130 if (truthJets->
size() > 1) {
131 TLorentzVector truthJet1 = truthJets->
at(0)->p4();
132 TLorentzVector truthJet2 = truthJets->
at(1)->p4();
133 auto truthDijet = truthJet1 + truthJet2;
134 truthMjj = truthDijet.M();
139 bool acceptEvent = passUncalibMonojetCut || passRecoJetCuts || passTruthJetCuts;
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ 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
◆ finalize()
StatusCode DerivationFramework::SkimmingToolEXOT5::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode DerivationFramework::SkimmingToolEXOT5::initialize |
( |
| ) |
|
|
overridevirtual |
◆ 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.
◆ interfaceID()
static const InterfaceID& DerivationFramework::ISkimmingTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
AlgTool interface methods.
Definition at line 32 of file ISkimmingTool.h.
32 {
return IID_ISkimmingTool; }
◆ 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()
◆ sysInitialize()
◆ 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_detStore
◆ m_evtStore
◆ m_jetCalibrationTool
◆ m_jetSGKey
std::string DerivationFramework::SkimmingToolEXOT5::m_jetSGKey |
|
private |
◆ m_leadingJetPt
double DerivationFramework::SkimmingToolEXOT5::m_leadingJetPt |
|
private |
◆ m_Mjj
double DerivationFramework::SkimmingToolEXOT5::m_Mjj |
|
private |
◆ m_monoJetPt
double DerivationFramework::SkimmingToolEXOT5::m_monoJetPt |
|
private |
◆ m_npass
std::atomic<unsigned int> DerivationFramework::SkimmingToolEXOT5::m_npass |
|
mutableprivate |
◆ m_ntot
std::atomic<unsigned int> DerivationFramework::SkimmingToolEXOT5::m_ntot |
|
mutableprivate |
◆ m_subleadingJetPt
double DerivationFramework::SkimmingToolEXOT5::m_subleadingJetPt |
|
private |
◆ m_uncalibMonoJetPt
double DerivationFramework::SkimmingToolEXOT5::m_uncalibMonoJetPt |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
#define ATH_MSG_VERBOSE(x)
@ IS_SIMULATION
true: simulation, false: data
virtual void setOwner(IDataHandleHolder *o)=0
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
#define CHECK(...)
Evaluate an expression and check for errors.
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
value_type push_back(value_type pElem)
Add an element to the end of the collection.
void makePrivateStore()
Create a new (empty) private store for this object.
std::pair< std::unique_ptr< T >, std::unique_ptr< ShallowAuxContainer > > shallowCopyContainer(const T &cont, [[maybe_unused]] const EventContext &ctx)
Function making a shallow copy of a constant container.
Class describing the basic event information.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
void partial_sort(std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, std::reverse_iterator< DataModel_detail::iterator< DVL > > mid, std::reverse_iterator< DataModel_detail::iterator< DVL > > end, Compare comp)
Specialization of partial_sort for DataVector/List.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
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.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Jet_v1 Jet
Definition of the current "jet version".
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
bool eventType(EventType type) const
Check for one particular bitmask value.