|
ATLAS Offline Software
|
#include <TauJetCnvTool.h>
|
| TauJetCnvTool (const std::string &type, const std::string &name, const IInterface *parent) |
| Constructor with parameters: More...
|
|
virtual | ~TauJetCnvTool () override |
| Destructor: More...
|
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | convert (const Analysis::TauJetContainer *inputTaus, xAOD::TauJetContainer *xaodTauJets) const override |
| Function that fills an existing xAOD::TauJetContainer. 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 |
|
Definition at line 37 of file TauJetCnvTool.h.
◆ StoreGateSvc_t
◆ TauJetCnvTool() [1/2]
xAODMaker::TauJetCnvTool::TauJetCnvTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
Constructor with parameters:
Definition at line 30 of file TauJetCnvTool.cxx.
35 ,
m_jets(
"AntiKt4LCTopoJets")
37 declareInterface< ITauJetCnvTool > (
this);
◆ ~TauJetCnvTool()
xAODMaker::TauJetCnvTool::~TauJetCnvTool |
( |
| ) |
|
|
overridevirtual |
◆ TauJetCnvTool() [2/2]
xAODMaker::TauJetCnvTool::TauJetCnvTool |
( |
| ) |
|
|
private |
◆ convert()
Function that fills an existing xAOD::TauJetContainer.
Implements xAODMaker::ITauJetCnvTool.
Definition at line 59 of file TauJetCnvTool.cxx.
68 ATH_MSG_DEBUG(
"trying to convert tau with pt="<< tau->
pt() <<
" eta=" << tau->
eta() <<
" phi=" << tau->
phi() <<
" m=" << tau->
m() );
71 xaodTauJets->push_back( xtaujet );
75 ATH_MSG_DEBUG(
"converted xtau with pt="<< xtaujet->
pt() <<
" eta=" << xtaujet->
eta() <<
" phi=" << xtaujet->
phi() <<
" m=" << xtaujet->
m() );
157 if(commonDetails !=
nullptr)
167 ATH_MSG_DEBUG(
"tau with pi0ConeDR " << commonDetails->Pi0ConeDR() );
171 ATH_MSG_DEBUG(
"tau with trackFilterProngs " << commonDetails->TrackFilterProngs() );
175 ATH_MSG_DEBUG(
"tau with trackFilterQuality " << commonDetails->TrackFilterQuality() );
194 ATH_MSG_DEBUG(
"found details container for this tau with SeedCalo_EMRadius " << commonDetails->seedCalo_EMRadius() );
223 ATH_MSG_DEBUG(
"converted details for this xaod tau with SeedCalo_EMRadius " << tempfloat );
225 ATH_MSG_DEBUG(
"error getting SeedCalo_EMRadius from xaod tau " );
273 return StatusCode::SUCCESS;
◆ copyPanTauDetails()
◆ 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
◆ getNewJetLink()
◆ getNewTrackLink()
◆ initialize()
StatusCode xAODMaker::TauJetCnvTool::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.
◆ interfaceID()
static const InterfaceID& xAODMaker::ITauJetCnvTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ 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()
◆ setLinks()
Definition at line 276 of file TauJetCnvTool.cxx.
280 for (
unsigned int i = 0;
i != aodtau.
numTrack(); ++
i)
328 for (
unsigned int i = 0;
i != commonDetails->seedCalo_nWideTrk(); ++
i)
330 ATH_MSG_DEBUG(
"wide track number : " <<
i <<
" has pt: " << commonDetails->seedCalo_wideTrk(
i)->pt() );
◆ 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_detStore
◆ m_evtStore
◆ m_inDetTrackParticles
std::string xAODMaker::TauJetCnvTool::m_inDetTrackParticles |
|
private |
Containers.
Location/Key for TrackParticles from ID.
Definition at line 80 of file TauJetCnvTool.h.
◆ m_jets
std::string xAODMaker::TauJetCnvTool::m_jets |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
@ cellBasedEnergyRing4
Ring 4: 0.10 < R < 0.125.
double phiDetectorAxis() const
@ trkRmsDist
Get the RMS of track distance to calorimeter seed.
int trackFilterQuality() const
double etaTauEtaCalib() const
const Rec ::TrackParticle * track(unsigned int i) const
Tracks associated to Tau candidate.
double mTauEnergyScale() const
double mDetectorAxis() const
Const iterator class for DataVector/DataList.
double etaTauEnergyScale() const
@ topoInvMass
get invariant mass from topoclusters of jet associated to tau candidate
@ cellBasedEnergyRing7
Ring 7: 0.2 < R < 0.4.
virtual double pt() const
transverse momentum
double discriminant(TauJetParameters::TauID discID) const
Get value of discriminant.
@ lead2ClusterEOverAllClusterE
Get sum of 2 leading cluster energy over all cluster energy.
double phiIntermediateAxis() const
virtual double eta() const
The pseudorapidity ( ) of the particle.
CLHEP::HepLorentzVector getHLV(TauJetParameters ::TauCalibType type) const
double etaDetectorAxis() const
double etaIntermediateAxis() const
void setJetLink(const JetLink_t &jetLink)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual double m() const
The invariant mass of the particle.
const Jet * jet() const
seed Jet, might be NULL if not seeded from a Jet
size_t nTracks(TauJetParameters::TauTrackFlag flag=TauJetParameters::TauTrackFlag::classifiedCharged) const
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
const T * details(const std::string &name) const
Get first details object stored in SG collection with matching name.
@ secMaxStripEt
migrate only seedTrk_ variables which are used in reco and ID and without prefix
@ lead3ClusterEOverAllClusterE
Get sum of 3 leading cluster energy over all cluster energy.
const ElementLink< JetCollection > jetLink() const
ElementLink to seed Jet, might be invalid if not seeded from a Jet
@ cellBasedEnergyRing1
EM+TES final scale.
double ptDetectorAxis() const
@ cellBasedEnergyRing6
Ring 6: 0.15 < R < 0.2.
void setIsTau(TauJetParameters::IsTauFlag flag, bool value)
Set Flag for tau acceptance based on predefined arbitrary criteria.
@ hadRadius
Get hadron calorimeter radius.
void setP4(double pt, double eta, double phi, double m)
Set methods for IParticle values.
const TauPID * tauID() const
Get TauPID object containing discriminant values.
double mTauEtaCalib() const
virtual void setOwner(IDataHandleHolder *o)=0
@ stripWidth2
Get strip width ^2.
@ centFrac
Get centrality fraction.
double phiJetSeed() const
@ dRmax
Get maximal dR of tracks associated to calo-seeded tau.
virtual double m() const
mass
double discriminant(TauJetParameters::TauID discID) const
Get value of discriminant.
unsigned int ROIWord() const
the ROIWord, in case TauJet is used in EF trigger
virtual double pt() const
The transverse momentum ( ) of the particle.
Basic detail class containing information for track and calo seeded tau reconstruction algorithms.
virtual double phi() const
The azimuthal angle ( ) of the particle.
void resetWithKeyAndIndex(const ID_type &dataID, index_type elemID, IProxyDict *sg=0)
Set the link to an element given by string key and index.
@ etHadAtEMScale
Get Hadronic energy at EM scale.
@ topoMeanDeltaR
get mean distance to leading topocluster for topoclusters of jet associated to tau candidate
@ effTopoMeanDeltaR
get mean distance to leading topocluster for effective topoclusters of jet associated to tau candidat...
double ptTauEnergyScale() const
virtual ChargeType charge() const
returns charge as a typedef ChargeType currently Charge Type is a double for jets this may be changed...
unsigned int numTrack() const
number of Tracks associated to Tau candidate, CAUTION not to be confused with numberOfTracks()!
@ caloIso
Get sum of transvers energy of clusters around jet seed within 0.2 < dR < 0.4
@ BDTEleScore
Boosted Decision Tree score for electron rejection.
@ cellBasedEnergyRing2
Ring 2: 0.05 < R < 0.075.
@ trkAvgDist
Get calibrated EM transverse energy (DEPRECATED since r19)
Class describing a tau jet.
bool isTau(TauJetParameters::IsTauFlag flag) const
Get Flag for tau acceptance based on predefined arbitrary criteria.
double etaJetSeed() const
void setTrackFilterProngs(int)
const JetLink_t & jetLink() const
Object for taus common for ESD and AOD.
virtual double phi() const
phi in [-pi,pi[
void setTrackFilterQuality(int)
@ caloIsoCorrected
Get sum of transvers energy of clusters around jet seed within 0.2 < dR < 0.4 (pile up corrected)
double ptTauEtaCalib() const
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual double eta() const
pseudo rapidity
TauJet_v3 TauJet
Definition of the current "tau version".
@ numTopoClusters
get number of topocluster constituents of jet associated to tau candidate
double phiTauEnergyScale() const
@ cellBasedEnergyRing5
Ring 5: 0.125 < R < 0.15.
unsigned int ROIWord() const
Retrieve ROI Word (trigger purposes)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
ElementLink implementation for ROOT usage.
bool detail(TauJetParameters::Detail detail, int &value) const
Set veto flag.
@ BDTJetScore
Boosted Decision Tree socre for Jet rejection (not transformed)
@ nStrip
Get number of strips.
@ TRT_NHT_OVER_NLT
TRT hits high threshold over low threshold.
@ cellBasedEnergyRing3
Ring 3: 0.075 < R < 0.10.
@ numEffTopoClusters
get number of effective topocluster constituents of jet associated to tau candidate !...
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
@ BDTJetScore
discriminant for PDRS (used by tau1p3p)
double phiTauEtaCalib() const
@ BDTEleScore
Boosted Decision Tree score for electron rejection.
double mIntermediateAxis() const
@ BDTJetScoreSigTrans
BDT score which is signal transformed/flattened.
void setROIWord(unsigned int)
#define ATH_MSG_WARNING(x)
@ sumEMCellEtOverLeadTrkPt
virtual double pt() const
transverse momentum
index_type index() const
Get the index of the element inside of its container.
@ effTopoInvMass
get invariant mass from effective topoclusters of jet associated to tau candidate
void setDetail(TauJetParameters::Detail detail, int value)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
@ isolFrac
Get isolation fraction.
double ptIntermediateAxis() const
@ BDTJetScoreSigTrans
BDT score which is signal transformed/flattened.
@ EMRadius
Get E_T radius.
void setDiscriminant(TauJetParameters::TauID discID, double disc)
Set value of discriminant.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
@ etEMAtEMScale
Get EM energy at EM scale.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
int trackFilterProngs() const