|
ATLAS Offline Software
|
#include <TrigMuonEFIdtpHypoTool.h>
|
| TrigMuonEFIdtpHypoTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
| ~TrigMuonEFIdtpHypoTool ()=default |
|
virtual StatusCode | initialize () override |
|
StatusCode | decide (std::vector< TrigMuonEFIdtpHypoTool::MuonEFIdperfInfo > &toolInput) 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 |
|
Definition at line 19 of file TrigMuonEFIdtpHypoTool.h.
◆ StoreGateSvc_t
◆ anonymous enum
◆ TrigMuonEFIdtpHypoTool()
TrigMuonEFIdtpHypoTool::TrigMuonEFIdtpHypoTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~TrigMuonEFIdtpHypoTool()
TrigMuonEFIdtpHypoTool::~TrigMuonEFIdtpHypoTool |
( |
| ) |
|
|
default |
◆ decide()
◆ decideOnSingleObject()
Definition at line 66 of file TrigMuonEFIdtpHypoTool.cxx.
70 ATH_MSG_DEBUG(
"Accept property is set: taking all the events");
79 if(!
muon->primaryTrackParticle())
return false;
81 const xAOD::TrackParticle* tr =
muon->trackParticle(xAOD::Muon::TrackParticleType::ExtrapolatedMuonSpectrometerTrackParticle);
88 std::vector<float> fexPt, fexEta, fexPhi, selPt, selEta, selPhi;
95 auto monitorIt =
Monitored::Group(
m_monTool, muonPtMon, muonEtaMon, muonPhiMon, muonPtSelMon, muonEtaSelMon, muonPhiSelMon);
102 fexEta.push_back(tr->
eta());
103 fexPhi.push_back(tr->
phi());
108 for (std::vector<float>::size_type
k=0;
k<
m_bins[0]; ++
k) {
115 selEta.push_back(tr->
eta());
116 selPhi.push_back(tr->
phi());
120 <<
" with Charge " << tr->
charge()
122 <<
" so hypothesis is " << (
result?
"true":
"false"));
◆ 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
◆ inclusiveSelection()
◆ initialize()
StatusCode TrigMuonEFIdtpHypoTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 24 of file TrigMuonEFIdtpHypoTool.cxx.
29 return StatusCode::FAILURE;
37 ATH_MSG_ERROR(
"Trying to configure hypo with no pT bins. This is probably a configuration mistake.");
38 return StatusCode::FAILURE;
41 for(
size_t j=0; j<
m_ptBins.size(); j++){
45 return StatusCode::FAILURE;
48 for (std::vector<float>::size_type
i=0;
i<
m_bins[j];++
i) {
60 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()
◆ multiplicitySelection()
Definition at line 186 of file TrigMuonEFIdtpHypoTool.cxx.
189 for(
size_t cutIndex=0; cutIndex <
m_ptBins.size(); ++cutIndex) {
190 size_t elementIndex{0};
191 for(
auto&
tool : toolInput) {
195 passingSelection[cutIndex].push_back(elementIndex);
205 if(passingSelection[cutIndex].
empty()){
206 ATH_MSG_DEBUG(
"No muons passed the selection "<<cutIndex<<
" rejecting...");
207 return StatusCode::SUCCESS;
210 std::set<size_t> passingIndices;
213 if(passingIndices.empty()) {
215 return StatusCode::SUCCESS;
217 for(
auto i : passingIndices) {
223 return StatusCode::SUCCESS;
◆ 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.
◆ passedQualityCuts()
bool TrigMuonEFIdtpHypoTool::passedQualityCuts |
( |
const xAOD::Muon * |
muon | ) |
const |
|
private |
Definition at line 131 of file TrigMuonEFIdtpHypoTool.cxx.
133 bool passCut =
false;
135 const xAOD::TrackParticle* metrack =
muon->trackParticle( xAOD::Muon::ExtrapolatedMuonSpectrometerTrackParticle );
136 float reducedChi2 = -10;
139 reducedChi2 =
muon->primaryTrackParticle()->chiSquared()/
muon->primaryTrackParticle()->numberDoF();
◆ 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 > TrigMuonEFIdtpHypoTool::m_acceptAll |
|
private |
◆ m_bins
std::vector<size_t> TrigMuonEFIdtpHypoTool::m_bins ={0} |
|
private |
◆ m_decisionId
◆ m_detStore
◆ m_evtStore
◆ m_monTool
◆ m_muonqualityCut
Gaudi::Property< bool > TrigMuonEFIdtpHypoTool::m_muonqualityCut |
|
private |
◆ m_muonSelTool
◆ m_ptBins
Gaudi::Property< std::vector<std::vector<double> > > TrigMuonEFIdtpHypoTool::m_ptBins |
|
private |
Initial value:{
this, "PtBins", { {0, 2.5} }, "Bins range of each pT threshold" }
Definition at line 62 of file TrigMuonEFIdtpHypoTool.h.
◆ m_ptThresholds
Gaudi::Property< std::vector<std::vector<double> > > TrigMuonEFIdtpHypoTool::m_ptThresholds |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
virtual double pt() const override final
The transverse momentum ( ) of the particle.
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
float charge() const
Returns the charge.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
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
bool msgLvl(const MSG::Level lvl) const
#define ATH_MSG_VERBOSE(x)
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
virtual void setOwner(IDataHandleHolder *o)=0
static HLT::Identifier fromToolName(const std::string &tname)
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
void elementsInUniqueCombinations(const Index2DVec &indices, std::set< size_t > &participants, std::function< bool(const Index1DVec &)> &&filter)
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.
std::vector< Index1DVec > Index2DVec
Class describing a TrackParticle.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
virtual double phi() const override final
The azimuthal angle ( ) of the particle (has range to .)