|
ATLAS Offline Software
|
#include <TrigEgammaEmulationPrecisionElectronHypoTool.h>
|
| TrigEgammaEmulationPrecisionElectronHypoTool (const std::string &myname) |
|
| ~TrigEgammaEmulationPrecisionElectronHypoTool ()=default |
|
virtual bool | emulate (const TrigData &input, bool &pass) const override |
| ========================================================================== More...
|
|
virtual StatusCode | initialize () override |
|
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 > &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::Property< std::string > | m_pidName { this, "PidName", "" } |
|
Gaudi::Property< float > | m_detacluster { this, "dETACLUSTERthr", 0. , "" } |
|
Gaudi::Property< float > | m_dphicluster { this, "dPHICLUSTERthr", 0. , "" } |
|
Gaudi::Property< float > | m_RelPtConeCut { this, "RelPtConeCut", -999., "Track isolation cut" } |
|
Gaudi::Property< std::vector< float > > | m_etabin { this, "EtaBins", {} , "Bins of eta" } |
| selection variable for PRECISION electron selection:eta bins More...
|
|
Gaudi::Property< std::vector< float > > | m_eTthr { this, "ETthr", {}, "ET Threshold" } |
|
Gaudi::Property< float > | m_d0 { this, "d0Cut", -1, "d0 cut" } |
|
Gaudi::Property< bool > | m_acceptAll { this, "AcceptAll", false, "Accept all events" } |
|
Gaudi::Property< bool > | m_doNoPid { this, "DoNoPid", false , "No Pid/Isolation applied" } |
|
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
◆ TrigEgammaEmulationPrecisionElectronHypoTool()
TrigEgammaEmulationPrecisionElectronHypoTool::TrigEgammaEmulationPrecisionElectronHypoTool |
( |
const std::string & |
myname | ) |
|
◆ ~TrigEgammaEmulationPrecisionElectronHypoTool()
Trig::TrigEgammaEmulationPrecisionElectronHypoTool::~TrigEgammaEmulationPrecisionElectronHypoTool |
( |
| ) |
|
|
default |
◆ avgmu()
float TrigEgammaEmulationBaseHypoTool::avgmu |
( |
| ) |
const |
|
protectedinherited |
◆ decide()
Definition at line 54 of file TrigEgammaEmulationPrecisionElectronHypoTool.cxx.
62 unsigned PassedCuts = 0;
65 if ( std::abs( roi->
eta() ) > 2.6 ) {
66 ATH_MSG_DEBUG(
"REJECT The electron had eta coordinates beyond the EM fiducial volume : " << roi->
eta() <<
"; stop the chain now" );
73 double etaRef = roi->
eta();
74 double phiRef = roi->
phi();
77 if ( std::abs( phiRef ) >
M_PI ) phiRef -= 2*
M_PI;
80 ATH_MSG_DEBUG(
"Electron : et " <<
el->pt() <<
" eta = " <<
el->eta() <<
" phi = " <<
el->phi());
82 auto pClus =
el->caloCluster();
89 float absEta = std::abs( pClus->eta() );
98 float dEta = pClus->eta() - etaRef;
100 float dPhi = std::abs( pClus->phi() - phiRef );
102 float ET = pClus->et();
111 PassedCuts = PassedCuts + 1;
115 ATH_MSG_DEBUG(
"Electron : eta=" << pClus->eta() <<
" roi eta=" << etaRef <<
" DeltaEta=" <<
dEta
122 PassedCuts = PassedCuts + 1;
131 PassedCuts = PassedCuts + 1;
136 if ( cutIndex == -1 ) {
142 PassedCuts = PassedCuts + 1;
146 if ( ET <
m_eTthr[cutIndex] ) {
150 PassedCuts = PassedCuts + 1;
158 float trk_d0 = std::abs(
el->trackParticle()->d0());
160 if ( trk_d0 <
m_d0 ) {
164 PassedCuts = PassedCuts + 1;
◆ 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 TrigEgammaEmulationPrecisionElectronHypoTool::emulate |
( |
const TrigData & |
input, |
|
|
bool & |
pass |
|
) |
| const |
|
overridevirtual |
◆ 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 TrigEgammaEmulationPrecisionElectronHypoTool::findCutIndex |
( |
float |
eta | ) |
const |
|
private |
◆ 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 TrigEgammaEmulationPrecisionElectronHypoTool::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.
◆ 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, 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()
◆ m_acceptAll
Gaudi::Property<bool> Trig::TrigEgammaEmulationPrecisionElectronHypoTool::m_acceptAll { this, "AcceptAll", false, "Accept all events" } |
|
private |
◆ m_d0
Gaudi::Property<float> Trig::TrigEgammaEmulationPrecisionElectronHypoTool::m_d0 { this, "d0Cut", -1, "d0 cut" } |
|
private |
◆ m_detacluster
Gaudi::Property< float > Trig::TrigEgammaEmulationPrecisionElectronHypoTool::m_detacluster { this, "dETACLUSTERthr", 0. , "" } |
|
private |
◆ m_detStore
◆ m_doNoPid
Gaudi::Property< bool > Trig::TrigEgammaEmulationPrecisionElectronHypoTool::m_doNoPid { this, "DoNoPid", false , "No Pid/Isolation applied" } |
|
private |
◆ m_dphicluster
Gaudi::Property< float > Trig::TrigEgammaEmulationPrecisionElectronHypoTool::m_dphicluster { this, "dPHICLUSTERthr", 0. , "" } |
|
private |
◆ m_etabin
Gaudi::Property< std::vector<float> > Trig::TrigEgammaEmulationPrecisionElectronHypoTool::m_etabin { this, "EtaBins", {} , "Bins of eta" } |
|
private |
◆ m_eTthr
Gaudi::Property< std::vector<float> > Trig::TrigEgammaEmulationPrecisionElectronHypoTool::m_eTthr { this, "ETthr", {}, "ET Threshold" } |
|
private |
◆ m_evtStore
◆ m_lumiBlockMuTool
ToolHandle<ILumiBlockMuTool> Trig::TrigEgammaEmulationBaseHypoTool::m_lumiBlockMuTool |
|
protectedinherited |
◆ m_pidName
Gaudi::Property< std::string > Trig::TrigEgammaEmulationPrecisionElectronHypoTool::m_pidName { this, "PidName", "" } |
|
private |
◆ m_RelPtConeCut
Gaudi::Property< float > Trig::TrigEgammaEmulationPrecisionElectronHypoTool::m_RelPtConeCut { this, "RelPtConeCut", -999., "Track isolation cut" } |
|
private |
◆ m_trigdec
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
@ topoetcone20
Topo-cluster ET-sum.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
@ ptcone20
Track isolation.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
nope - should be used for standalone also, perhaps need to protect the class def bits #ifndef XAOD_AN...
@ wtots1
shower width is determined in a window detaxdphi = 0,0625 ×~0,2, corresponding typically to 20 strips...
virtual void setOwner(IDataHandleHolder *o)=0
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
@ f1
E1/E = fraction of energy reconstructed in the first sampling, where E1 is energy in all strips belon...
@ etcone20
Calorimeter isolation.
bool dPhi(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
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
virtual unsigned int roiId() const override final
these quantities probably don't need to be used any more
virtual double phi() const override final
Methods to retrieve data members.
bool absEta(const xAOD::TauJet &tau, double &out)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
virtual double eta() const override final
@ e277
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 7x7
@ weta1
shower width using +/-3 strips around the one with the maximal energy deposit: w3 strips = sqrt{sum(E...
@ Eratio
(emaxs1-e2tsts1)/(emaxs1+e2tsts1)
bool dEta(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
@ fracs1
shower shape in the shower core : [E(+/-3)-E(+/-1)]/E(+/-1), where E(+/-n) is the energy in ± n strip...
@ weta2
the lateral width is calculated with a window of 3x5 cells using the energy weighted sum over all cel...