|
ATLAS Offline Software
|
Algorithm reading xAOD::BTagging.
More...
#include <BTaggingReader.h>
|
| BTaggingReader (const std::string &name, ISvcLocator *svcLoc) |
| Regular Algorithm constructor. More...
|
|
virtual StatusCode | initialize () |
| Function initialising the algorithm. More...
|
|
virtual StatusCode | execute () |
| Function executing the algorithm. More...
|
|
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 |
|
Algorithm reading xAOD::BTagging.
This algorithm is used to test the ability to read
xAOD::BTagging objects from a file inside Athena.
- Author
- Johannes Erdmann johan.nosp@m.nes..nosp@m.erdma.nosp@m.nn@c.nosp@m.ern.c.nosp@m.h
- Revision
- 581810
- Date
- 2014-02-06 09:45:23 +0100 (Thu, 06 Feb 2014)
Definition at line 30 of file BTaggingReader.h.
◆ StoreGateSvc_t
◆ BTaggingReader()
xAODReader::BTaggingReader::BTaggingReader |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svcLoc |
|
) |
| |
◆ 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]
◆ execute()
StatusCode xAODReader::BTaggingReader::execute |
( |
| ) |
|
|
virtual |
Function executing the algorithm.
Definition at line 39 of file BTaggingReader.cxx.
46 <<
"Couldn't retrieve btagging container with key: "
48 return StatusCode::FAILURE;
52 if( ! btagging->hasStore() ) {
54 <<
"No auxiliary store got associated to the btagging container "
56 return StatusCode::FAILURE;
63 auto btag_itr = btagging->
begin();
64 auto btag_end = btagging->
end();
65 for(
int i = 0; btag_itr != btag_end; ++btag_itr, ++
i ) {
71 ATH_MSG_DEBUG(
" SV0_significance3D = " << ( *btag_itr )->SV0_significance3D() );
143 for (
unsigned int t = 0; t < static_cast<unsigned int>(
IP3D_ntrk); ++
t) {
144 std::ostringstream
s;
s <<
" track[" <<
t <<
"]: grade = " << setw(6);
146 else s << setfill(
'-') <<
" ";
147 s <<
" d0 = " << setw(6);
149 else s << setfill(
'-') <<
" ";
150 s <<
" sig(d0) = " << setw(6);
152 else s << setfill(
'-') <<
" ";
153 s <<
" z0 = " << setw(6);
155 else s << setfill(
'-') <<
" ";
156 s <<
" sig(z0) = " << setw(6);
158 else s << setfill(
'-') <<
" ";
184 ATH_MSG_DEBUG(
" JetFitter_pb = " << ( *btag_itr )->JetFitter_pb() );
185 ATH_MSG_DEBUG(
" JetFitter_pc = " << ( *btag_itr )->JetFitter_pc() );
186 ATH_MSG_DEBUG(
" JetFitter_pu = " << ( *btag_itr )->JetFitter_pu() );
213 ATH_MSG_DEBUG(
" MV1_discriminant = " << ( *btag_itr )->MV1_discriminant() );
218 return StatusCode::SUCCESS;
◆ 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();
◆ initialize()
StatusCode xAODReader::BTaggingReader::initialize |
( |
| ) |
|
|
virtual |
Function initialising the algorithm.
Definition at line 30 of file BTaggingReader.cxx.
36 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()
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_containerName
std::string xAODReader::BTaggingReader::m_containerName |
|
private |
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
@ JetFitter_deltaeta
JetFitter : Delta eta between jet and momentum sum of all tracks associated with displaced vertices r...
@ IP3D_ntrk
IP3D : number of tracks.
@ SV1_NGTinJet
SV1 : Number of good tracks in jet.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
@ JetFitter_nSingleTracks
JetFitter : Number of single tracks.
@ IP3D_valD0wrtPVofTracks
IP3D : d0 value with respect to primary vertex.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
@ IP3D_sigD0wrtPVofTracks
IP3D : d0 significance with respect to primary vertex.
@ SV1_N2Tpair
SV1 : Number of 2-track pairs.
@ SV1_normdist
SV1 : 3D vertex significance.
virtual void setOwner(IDataHandleHolder *o)=0
@ JetFitter_energyFraction
JetFitter : Jet efrac.
@ JetFitter_nVTX
JetFitter : Number of vertices.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
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.
@ SV0_NGTinSvx
SV0 : Number of good tracks in vertex.
@ IP3D_gradeOfTracks
IP3D: track grade.
@ SV0_normdist
SV0 : 3D vertex significance.
@ JetFitter_mass
JetFitter : Jet mass.
@ JetFitter_nTracksAtVtx
JetFitter : Number of tracks at vertex.
@ SV1_efracsvx
SV1 : energy fraction.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
@ SV0_N2Tpair
SV0 : Number of 2-track pairs.
@ SV0_efracsvx
SV0 : energy fraction.
@ IP3D_sigZ0wrtPVofTracks
IP3D : z0 significance with respect to primary vertex.
@ JetFitter_significance3d
JetFitter : 3D vertex significance.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
@ SV0_NGTinJet
SV0 : Number of good tracks in jet.
@ SV1_NGTinSvx
SV1 : Number of good tracks in vertex.
#define REPORT_MESSAGE(LVL)
Report a message.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
DataObjIDColl m_extendedExtraObjects
@ IP3D_valZ0wrtPVofTracks
IP3D : z0 value with respect to primary vertex.
#define ATH_MSG_WARNING(x)
@ SV0_masssvx
SV0 : vertex mass.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
@ JetFitter_deltaphi
JetFitter : Delta phi between jet and momentum sum of all tracks associated with displaced vertices r...
AthAlgorithm()
Default constructor:
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>
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
std::string m_containerName
Name of the container to investigate.
@ SV1_masssvx
SV1 : vertex mass.