 |
ATLAS Offline Software
|
#include <TrigEgammaEmulationL1CaloHypoTool.h>
|
| TrigEgammaEmulationL1CaloHypoTool (const std::string &myname) |
|
| ~TrigEgammaEmulationL1CaloHypoTool ()=default |
|
virtual bool | emulate (const TrigData &, bool &) const override |
| ========================================================================== More...
|
|
virtual StatusCode | initialize () override |
| Dummy implementation of the initialisation function. More...
|
|
virtual void | print () const |
| Print the state of the tool. 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, 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 |
|
|
bool | decide (const Trig::TrigData &input) const |
| ========================================================================== More...
|
|
bool | isolationL1 (float min, float offset, float slope, float energy, float emE) const |
| ========================================================================== More...
|
|
bool | variableEtL1 (std::string L1item, float l1energy, float l1eta) const |
| ========================================================================== More...
|
|
float | emulationL1V (const std::string &L1item, float l1eta) const |
| ========================================================================== More...
|
|
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...
|
|
|
Gaudi::Property< std::string > | m_l1item {this, "L1Item", "", "" } |
|
Gaudi::Property< float > | m_l1threshold {this, "L1Thr", 0} |
|
Gaudi::Property< float > | m_hadCoreCutMin {this , "HadCoreCutMin", 0 } |
|
Gaudi::Property< float > | m_hadCoreCutOff {this , "HadCoreCutOff", 0 } |
|
Gaudi::Property< float > | m_hadCoreCutSlope {this, "HadCoreSlope" , 0 } |
|
Gaudi::Property< float > | m_emIsolCutMin {this , "EmIsolCutMin" , 0 } |
|
Gaudi::Property< float > | m_emIsolCutOff {this , "EmIsolCutOff" , 0 } |
|
Gaudi::Property< float > | m_emIsolCutSlope {this , "EmIsolSlope" , 0 } |
|
Gaudi::Property< float > | m_isolMaxCut {this , "IsolCutMax" , 50 } |
|
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 |
|
◆ StoreGateSvc_t
◆ TrigEgammaEmulationL1CaloHypoTool()
TrigEgammaEmulationL1CaloHypoTool::TrigEgammaEmulationL1CaloHypoTool |
( |
const std::string & |
myname | ) |
|
◆ ~TrigEgammaEmulationL1CaloHypoTool()
Trig::TrigEgammaEmulationL1CaloHypoTool::~TrigEgammaEmulationL1CaloHypoTool |
( |
| ) |
|
|
default |
◆ avgmu()
float TrigEgammaEmulationBaseHypoTool::avgmu |
( |
| ) |
const |
|
protectedinherited |
◆ decide()
◆ 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()
◆ emulate()
bool TrigEgammaEmulationL1CaloHypoTool::emulate |
( |
const TrigData & |
input, |
|
|
bool & |
pass |
|
) |
| const |
|
overridevirtual |
◆ emulationL1V()
float TrigEgammaEmulationL1CaloHypoTool::emulationL1V |
( |
const std::string & |
L1item, |
|
|
float |
l1eta |
|
) |
| const |
|
private |
==========================================================================
Definition at line 123 of file TrigEgammaEmulationL1CaloHypoTool.cxx.
130 float eta = std::abs(l1eta);
133 else if (
eta >= 1.2 &&
eta < 1.6)
cut = 50.0;
134 else if (
eta >= 1.6 &&
eta < 2.0)
cut = 51.0;
137 else if (L1item==
"8VH") {
139 else if (
eta > 1.1 &&
eta <= 1.4)
cut = 6.0;
140 else if (
eta > 1.4 &&
eta <= 1.5)
cut = 5.0;
141 else if (
eta > 1.5 &&
eta <= 1.8)
cut = 7.0;
142 else if (
eta > 1.8 &&
eta <= 2.5)
cut = 8.0;
145 else if (L1item==
"10VH") {
147 else if (
eta > 1.1 &&
eta <= 1.4)
cut = 8.0;
148 else if (
eta > 1.4 &&
eta <= 1.5)
cut = 7.0;
149 else if (
eta > 1.5 &&
eta <= 1.8)
cut = 9.0;
150 else if (
eta > 1.8 &&
eta <= 2.5)
cut = 10.0;
153 else if (L1item==
"13VH") {
155 else if (
eta > 0.9 &&
eta <= 1.2)
cut = 13.0;
156 else if (
eta > 1.2 &&
eta <= 1.4)
cut = 12.0;
157 else if (
eta > 1.4 &&
eta <= 1.5)
cut = 11.0;
158 else if (
eta > 1.5 &&
eta <= 1.7)
cut = 13.0;
159 else if (
eta > 1.7 &&
eta <= 2.5)
cut = 14.0;
162 else if (L1item==
"15VH") {
164 else if (
eta > 0.9 &&
eta <= 1.2)
cut = 15.0;
165 else if (
eta > 1.2 &&
eta <= 1.4)
cut = 14.0;
166 else if (
eta > 1.4 &&
eta <= 1.5)
cut = 13.0;
167 else if (
eta > 1.5 &&
eta <= 1.7)
cut = 15.0;
168 else if (
eta > 1.7 &&
eta <= 2.5)
cut = 16.0;
171 else if (L1item ==
"18VH") {
173 else if (
eta > 0.8 &&
eta <= 1.1)
cut = 18.0;
174 else if (
eta > 1.1 &&
eta <= 1.3)
cut = 17.0;
175 else if (
eta > 1.3 &&
eta <= 1.4)
cut = 16.0;
176 else if (
eta > 1.4 &&
eta <= 1.5)
cut = 15.0;
177 else if (
eta > 1.5 &&
eta <= 1.7)
cut = 17.0;
178 else if (
eta > 1.7 &&
eta <= 2.5)
cut = 19.0;
181 else if (L1item ==
"20VH") {
183 else if (
eta > 0.8 &&
eta <= 1.1)
cut = 20.0;
184 else if (
eta > 1.1 &&
eta <= 1.3)
cut = 19.0;
185 else if (
eta > 1.3 &&
eta <= 1.4)
cut = 18.0;
186 else if (
eta > 1.4 &&
eta <= 1.5)
cut = 17.0;
187 else if (
eta > 1.5 &&
eta <= 1.7)
cut = 19.0;
188 else if (
eta > 1.7 &&
eta <= 2.5)
cut = 21.0;
191 else if (L1item ==
"20VHI") {
193 else if (
eta > 0.8 &&
eta <= 1.1)
cut = 20.0;
194 else if (
eta > 1.1 &&
eta <= 1.3)
cut = 19.0;
195 else if (
eta > 1.3 &&
eta <= 1.4)
cut = 18.0;
196 else if (
eta > 1.4 &&
eta <= 1.5)
cut = 17.0;
197 else if (
eta > 1.5 &&
eta <= 1.7)
cut = 19.0;
198 else if (
eta > 1.7 &&
eta <= 2.5)
cut = 21.0;
201 else if (L1item ==
"22VHI") {
203 else if (
eta > 0.8 &&
eta <= 1.1)
cut = 22.0;
204 else if (
eta > 1.1 &&
eta <= 1.3)
cut = 21.0;
205 else if (
eta > 1.3 &&
eta <= 1.4)
cut = 20.0;
206 else if (
eta > 1.4 &&
eta <= 1.5)
cut = 19.0;
207 else if (
eta > 1.5 &&
eta <= 1.7)
cut = 21.0;
208 else if (
eta > 1.7 &&
eta <= 2.5)
cut = 23.0;
◆ 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
◆ getKey()
Get the (hashed) key of an object that is in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the SG::sgkey_t
key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
- See also
- asg::AsgTool::getName
- Parameters
-
ptr | The bare pointer to the object that the event store should know about |
- Returns
- The hashed key of the object in the store. If not found, an invalid (zero) key.
Definition at line 119 of file AsgTool.cxx.
121 #ifdef XAOD_STANDALONE
127 return (
proxy ==
nullptr ? 0 :
proxy->sgkey() );
128 #endif // XAOD_STANDALONE
◆ getName()
const std::string & asg::AsgTool::getName |
( |
const void * |
ptr | ) |
const |
|
inherited |
Get the name of an object that is / should be in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the std::string
name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
- See also
- asg::AsgTool::getKey
- Parameters
-
ptr | The bare pointer to the object that the event store should know about |
- Returns
- The string name of the object in the store. If not found, an empty string.
Definition at line 106 of file AsgTool.cxx.
108 #ifdef XAOD_STANDALONE
114 static const std::string
dummy =
"";
116 #endif // XAOD_STANDALONE
◆ getProperty()
template<class T >
const T* asg::AsgTool::getProperty |
( |
const std::string & |
name | ) |
const |
|
inherited |
Get one of the tool's properties.
◆ initialize()
StatusCode TrigEgammaEmulationBaseHypoTool::initialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ 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.
◆ isolationL1()
bool TrigEgammaEmulationL1CaloHypoTool::isolationL1 |
( |
float |
min, |
|
|
float |
offset, |
|
|
float |
slope, |
|
|
float |
energy, |
|
|
float |
emE |
|
) |
| const |
|
private |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msg_level_name()
const std::string & asg::AsgTool::msg_level_name |
( |
| ) |
const |
|
inherited |
A deprecated function for getting the message level's name.
Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:
MSG::name( msg().level() )
This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.
- Returns
- The string name of the current minimum message level that's printed
Definition at line 101 of file AsgTool.cxx.
◆ 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.
◆ print()
void asg::AsgTool::print |
( |
| ) |
const |
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, LundVariablesTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
Definition at line 131 of file AsgTool.cxx.
◆ 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()
◆ variableEtL1()
bool TrigEgammaEmulationL1CaloHypoTool::variableEtL1 |
( |
std::string |
L1item, |
|
|
float |
l1energy, |
|
|
float |
l1eta |
|
) |
| const |
|
private |
◆ m_detStore
◆ m_emIsolCutMin
Gaudi::Property<float> Trig::TrigEgammaEmulationL1CaloHypoTool::m_emIsolCutMin {this , "EmIsolCutMin" , 0 } |
|
private |
◆ m_emIsolCutOff
Gaudi::Property<float> Trig::TrigEgammaEmulationL1CaloHypoTool::m_emIsolCutOff {this , "EmIsolCutOff" , 0 } |
|
private |
◆ m_emIsolCutSlope
Gaudi::Property<float> Trig::TrigEgammaEmulationL1CaloHypoTool::m_emIsolCutSlope {this , "EmIsolSlope" , 0 } |
|
private |
◆ m_evtStore
◆ m_hadCoreCutMin
Gaudi::Property<float> Trig::TrigEgammaEmulationL1CaloHypoTool::m_hadCoreCutMin {this , "HadCoreCutMin", 0 } |
|
private |
◆ m_hadCoreCutOff
Gaudi::Property<float> Trig::TrigEgammaEmulationL1CaloHypoTool::m_hadCoreCutOff {this , "HadCoreCutOff", 0 } |
|
private |
◆ m_hadCoreCutSlope
Gaudi::Property<float> Trig::TrigEgammaEmulationL1CaloHypoTool::m_hadCoreCutSlope {this, "HadCoreSlope" , 0 } |
|
private |
◆ m_isolMaxCut
Gaudi::Property<float> Trig::TrigEgammaEmulationL1CaloHypoTool::m_isolMaxCut {this , "IsolCutMax" , 50 } |
|
private |
◆ m_l1item
Gaudi::Property<std::string> Trig::TrigEgammaEmulationL1CaloHypoTool::m_l1item {this, "L1Item", "", "" } |
|
private |
◆ m_l1threshold
Gaudi::Property<float> Trig::TrigEgammaEmulationL1CaloHypoTool::m_l1threshold {this, "L1Thr", 0} |
|
private |
◆ m_lumiBlockMuTool
ToolHandle<ILumiBlockMuTool> Trig::TrigEgammaEmulationBaseHypoTool::m_lumiBlockMuTool |
|
protectedinherited |
◆ m_trigdec
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
Scalar eta() const
pseudorapidity method
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
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.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring
cut
This script demonstrates how to call a C++ class from Python Also how to use PyROOT is shown.
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
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
#define ATH_MSG_WARNING(x)
@ EMRoIWord
This is a Run 2 EM RoI word.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.