|
ATLAS Offline Software
|
#include <FTAGValidationAlgorithm.h>
|
| FTAGValidationAlgorithm (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~FTAGValidationAlgorithm () |
|
virtual StatusCode | initialize () |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. 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 | 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 18 of file FTAGValidationAlgorithm.h.
◆ StoreGateSvc_t
◆ FTAGValidationAlgorithm() [1/2]
FTAGValidation::FTAGValidationAlgorithm::FTAGValidationAlgorithm |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~FTAGValidationAlgorithm()
FTAGValidation::FTAGValidationAlgorithm::~FTAGValidationAlgorithm |
( |
| ) |
|
|
virtual |
◆ FTAGValidationAlgorithm() [2/2]
FTAGValidation::FTAGValidationAlgorithm::FTAGValidationAlgorithm |
( |
| ) |
|
|
private |
◆ 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);
◆ 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.
◆ 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.
◆ 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
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ getMatchedOfflineJetIndex()
int FTAGValidation::FTAGValidationAlgorithm::getMatchedOfflineJetIndex |
( |
const xAOD::Jet * |
onJet, |
|
|
std::vector< const xAOD::Jet * > |
offJets |
|
) |
| const |
|
protected |
Definition at line 143 of file FTAGValidationAlgorithm.cxx.
144 int matchedOffJetIndex = -1;
147 TLorentzVector onJet_4vec, offJet_4vec;
148 onJet_4vec.SetPtEtaPhiM(onJet->
pt(), onJet->
eta(), onJet->
phi(), onJet->
m());
153 offJet_4vec.SetPtEtaPhiM(offJet->
pt(), offJet->
eta(), offJet->
phi(), offJet->
m());
154 double deltaR = onJet_4vec.DeltaR( offJet_4vec );
157 if (
deltaR > 0.1 )
continue;
158 if (
deltaR < minDr || matchedOffJetIndex == -1 ) {
160 matchedOffJetIndex =
index;
164 ATH_MSG_DEBUG(
"matchedOffJetIndex: " << matchedOffJetIndex );
165 return matchedOffJetIndex;
◆ getPrimaryVertex()
Definition at line 125 of file FTAGValidationAlgorithm.cxx.
127 if ( vertexContainer->
size() == 0 ) {
128 ATH_MSG_WARNING(
"Vertex Container has size 0! This can't be right!" );
132 for (
unsigned int i(0);
i<vertexContainer->
size();
i++ ) {
138 ATH_MSG_DEBUG(
"None of the vertexes in the vertex container is a primary vertex!" );
140 return vertexContainer->
at(0);
◆ initialize()
StatusCode FTAGValidation::FTAGValidationAlgorithm::initialize |
( |
| ) |
|
|
virtual |
◆ 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.
◆ passJetJVTSelection()
bool FTAGValidation::FTAGValidationAlgorithm::passJetJVTSelection |
( |
const xAOD::Jet * |
jet, |
|
|
const std::string & |
jetType = "AntiKt4EMTopoJets" |
|
) |
| const |
|
protected |
Definition at line 102 of file FTAGValidationAlgorithm.cxx.
105 if (
jet->isAvailable<
float >(
"Jvt" ) ==
false ) {
110 float jvt =
jet->auxdata<
float >(
"Jvt" );
111 double jvtCut = 0.59;
112 if (
jetType ==
"AntiKt4EMPFlowJets" )
117 if ( fabs(
jet->eta() ) >= 2.4 )
◆ passJetKinematicSelection()
bool FTAGValidation::FTAGValidationAlgorithm::passJetKinematicSelection |
( |
const xAOD::Jet * |
jet | ) |
const |
|
protected |
◆ passJetQualitySelection()
bool FTAGValidation::FTAGValidationAlgorithm::passJetQualitySelection |
( |
const xAOD::Jet * |
jet | ) |
const |
|
protected |
Definition at line 38 of file FTAGValidationAlgorithm.cxx.
44 ATH_MSG_ERROR(
"JetAttribute 'xAOD::JetAttribute::LArQuality' is not available." );
50 ATH_MSG_ERROR(
"JetAttribute 'xAOD::JetAttribute::Timing' is not available." );
56 ATH_MSG_ERROR(
"JetAttribute 'xAOD::JetAttribute::HECQuality' is not available." );
62 ATH_MSG_ERROR(
"JetAttribute 'xAOD::JetAttribute::NegativeE' is not available." );
66 std::vector< float > SumPtTrkPt1000;
68 ATH_MSG_ERROR(
"JetAttribute 'xAOD::JetAttribute::SumPtTrkPt1000' is not available." );
71 float chf = SumPtTrkPt1000.size() > 0 ? SumPtTrkPt1000.at(0)/
jet->pt() : -1;
75 ATH_MSG_ERROR(
"JetAttribute 'xAOD::JetAttribute::EMFrac' is not available." );
81 ATH_MSG_ERROR(
"JetAttribute 'xAOD::JetAttribute::HECFrac' is not available." );
85 float fracSamplingMax = 0;
87 ATH_MSG_ERROR(
"JetAttribute 'xAOD::JetAttribute::FracSamplingMax' is not available." );
91 if ( hecf > 0.5 && fabs( hecq ) > 0.5 )
return false;
93 if ( emf > 0.95 && fabs( jetQuality ) > 0.8 && fabs(
jet->eta() ) < 2.8 )
return false;
94 if ( fabs( jetTime ) > 25 )
return false;
95 if ( emf < 0.05 && chf < 0.05 && fabs(
jet->eta() ) < 2 )
return false;
96 if ( emf< 0.05 && fabs(
jet->eta() ) >= 2 )
return false;
97 if ( fracSamplingMax > 0.99 && fabs(
jet->eta() ) < 2 )
return false;
◆ passTriggerJetKinematicSelection()
bool FTAGValidation::FTAGValidationAlgorithm::passTriggerJetKinematicSelection |
( |
const xAOD::Jet * |
jet | ) |
const |
|
protected |
◆ renounce()
◆ renounceArray()
◆ retrieveCollectionfromStoreGate()
template<class CONTAINER >
StatusCode FTAGValidation::FTAGValidationAlgorithm::retrieveCollectionfromStoreGate |
( |
const EventContext & |
, |
|
|
const CONTAINER *& |
, |
|
|
const SG::ReadHandleKey< CONTAINER > & |
|
|
) |
| const |
|
protected |
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ 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_eventInfoKey
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_maxJetEta
Gaudi::Property< float > FTAGValidation::FTAGValidationAlgorithm::m_maxJetEta |
|
protected |
◆ m_maxTrigJetEta
Gaudi::Property< float > FTAGValidation::FTAGValidationAlgorithm::m_maxTrigJetEta |
|
protected |
Initial value:{ this,"MaxTrigJetEta",2.5,
"Maximum Trigger Eta range for jets"}
Definition at line 59 of file FTAGValidationAlgorithm.h.
◆ m_minJetEta
Gaudi::Property< float > FTAGValidation::FTAGValidationAlgorithm::m_minJetEta |
|
protected |
◆ m_minJetPt
Gaudi::Property< float > FTAGValidation::FTAGValidationAlgorithm::m_minJetPt |
|
protected |
◆ m_minTrigJetPt
Gaudi::Property< float > FTAGValidation::FTAGValidationAlgorithm::m_minTrigJetPt |
|
protected |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
Gaudi::Property< float > m_minJetEta
Gaudi::Property< float > m_minTrigJetPt
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
virtual double phi() const
The azimuthal angle ( ) of the particle.
virtual void setOwner(IDataHandleHolder *o)=0
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< float > m_maxTrigJetEta
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Gaudi::Property< float > m_minJetPt
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
virtual double eta() const
The pseudorapidity ( ) of the particle.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
DataObjIDColl m_extendedExtraObjects
virtual double m() const
The invariant mass of the particle.
Class describing a Vertex.
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
const T * at(size_type n) const
Access an element, as an rvalue.
Gaudi::Property< float > m_maxJetEta
virtual double pt() const
The transverse momentum ( ) of the particle.
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>