|
ATLAS Offline Software
|
#include <TrigEgammaFastPhotonHypoTool.h>
|
| TrigEgammaFastPhotonHypoTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual StatusCode | initialize () override |
|
StatusCode | decide (std::vector< PhotonInfo > &decisions) const |
|
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 |
|
|
HLT::Identifier | m_decisionId |
|
Gaudi::Property< bool > | m_acceptAll { this, "AcceptAll", false, "Ignore selection" } |
|
Gaudi::Property< std::vector< float > > | m_etabin { this, "EtaBins", {0, 0.6, 0.8, 1.15, 1.37, 1.52, 1.81, 2.01, 2.37, 2.47}, "Eta bins" } |
|
Gaudi::Property< std::vector< float > > | m_F1thr { this, "F1thr", {0.005}, "F1 Threshold" } |
|
Gaudi::Property< std::vector< float > > | m_eTthr {this, "ETthr", {0.*Gaudi::Units::GeV}, "et threshold"} |
|
Gaudi::Property< std::vector< float > > | m_eT2thr {this, "ET2thr", {90.0*Gaudi::Units::GeV}, "eT2 threshold"} |
|
Gaudi::Property< std::vector< float > > | m_hadeTthr {this, "HADETthr", {0.}, "hadet threshold"} |
|
Gaudi::Property< std::vector< float > > | m_hadeT2thr {this, "HADET2thr", {0.}, "hadet2 threshold"} |
|
Gaudi::Property< std::vector< float > > | m_carcorethr {this, "CARCOREthr", {0.}, "car core threshold"} |
|
Gaudi::Property< std::vector< float > > | m_caeratiothr {this, "CAERATIOthr", {0.}, " cera ratio threshold"} |
|
ToolHandle< GenericMonitoringTool > | m_monTool { this, "MonTool", "", "Monitoring tool" } |
|
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
◆ TrigEgammaFastPhotonHypoTool()
TrigEgammaFastPhotonHypoTool::TrigEgammaFastPhotonHypoTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ decide() [1/2]
Definition at line 65 of file TrigEgammaFastPhotonHypoTool.cxx.
80 mon_Rcore, mon_Eratio,
81 mon_HadEt, mon_F1,mon_HadEmRatio );
84 float HadEmRatio = -99.0;
107 ATH_MSG_DEBUG (
"Accept all property is set: TrigPhoton: ET_em=" << EmET <<
" cut in etaBin "
146 <<
" Eratio cut not being applied" );
170 HadEmRatio = (EmET!=0) ? HadET/EmET : -1.0;
172 if ( HadEmRatio > hadET_cut ){
173 ATH_MSG_DEBUG(
"FastPhoton FAILS ET_had=" << HadEmRatio <<
" cut in etaBin "
174 <<
etaBin <<
" is ERatio >= " << hadET_cut );
179 mon_HadEmRatio = HadEmRatio;
◆ decide() [2/2]
StatusCode TrigEgammaFastPhotonHypoTool::decide |
( |
std::vector< PhotonInfo > & |
decisions | ) |
const |
◆ 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]
◆ 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
◆ findCutIndex()
int TrigEgammaFastPhotonHypoTool::findCutIndex |
( |
float |
eta | ) |
const |
|
private |
◆ initialize()
StatusCode TrigEgammaFastPhotonHypoTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 22 of file TrigEgammaFastPhotonHypoTool.cxx.
40 if ( *std::min_element( sizes.begin(), sizes.end() ) != *std::max_element( sizes.begin(), sizes.end() ) ) {
41 ATH_MSG_ERROR(
"Missconfiguration, cut properties listed above ( when DEBUG ) have different dimensions shortest: "
42 << *std::min_element( sizes.begin(), sizes.end() ) <<
" longest "
43 << *std::max_element( sizes.begin(), sizes.end() ) );
44 return StatusCode::FAILURE;
47 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()
◆ 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_acceptAll
Gaudi::Property<bool> TrigEgammaFastPhotonHypoTool::m_acceptAll { this, "AcceptAll", false, "Ignore selection" } |
|
private |
◆ m_caeratiothr
Gaudi::Property< std::vector<float> > TrigEgammaFastPhotonHypoTool::m_caeratiothr {this, "CAERATIOthr", {0.}, " cera ratio threshold"} |
|
private |
◆ m_carcorethr
Gaudi::Property< std::vector<float> > TrigEgammaFastPhotonHypoTool::m_carcorethr {this, "CARCOREthr", {0.}, "car core threshold"} |
|
private |
◆ m_decisionId
◆ m_detStore
◆ m_eT2thr
Gaudi::Property< std::vector<float> > TrigEgammaFastPhotonHypoTool::m_eT2thr {this, "ET2thr", {90.0*Gaudi::Units::GeV}, "eT2 threshold"} |
|
private |
◆ m_etabin
Gaudi::Property< std::vector<float> > TrigEgammaFastPhotonHypoTool::m_etabin { this, "EtaBins", {0, 0.6, 0.8, 1.15, 1.37, 1.52, 1.81, 2.01, 2.37, 2.47}, "Eta bins" } |
|
private |
◆ m_eTthr
Gaudi::Property< std::vector<float> > TrigEgammaFastPhotonHypoTool::m_eTthr {this, "ETthr", {0.*Gaudi::Units::GeV}, "et threshold"} |
|
private |
◆ m_evtStore
◆ m_F1thr
Gaudi::Property< std::vector<float> > TrigEgammaFastPhotonHypoTool::m_F1thr { this, "F1thr", {0.005}, "F1 Threshold" } |
|
private |
◆ m_hadeT2thr
Gaudi::Property< std::vector<float> > TrigEgammaFastPhotonHypoTool::m_hadeT2thr {this, "HADET2thr", {0.}, "hadet2 threshold"} |
|
private |
◆ m_hadeTthr
Gaudi::Property< std::vector<float> > TrigEgammaFastPhotonHypoTool::m_hadeTthr {this, "HADETthr", {0.}, "hadet threshold"} |
|
private |
◆ m_monTool
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
Group
Properties of a chain group.
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
TrigCompositeUtils::DecisionID numeric() const
numeric ID
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
virtual void setOwner(IDataHandleHolder *o)=0
static HLT::Identifier fromToolName(const std::string &tname)
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap etaBin
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
bool absEta(const xAOD::TauJet &tau, double &out)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
@ Eratio
(emaxs1-e2tsts1)/(emaxs1+e2tsts1)
Declare a monitored scalar variable.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>