|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "GaudiKernel/MsgStream.h"
23 #include "GaudiKernel/ServiceHandle.h"
34 const std::string&
key,
35 MsgStream&
log )
const {
38 if (evtStore.retrieve().isFailure()) {
39 log << MSG::ERROR <<
"Cannot get StoreGateHandle" <<
endmsg;
50 pTracks->setStore(pAuxTracks);
58 for(
size_t i = 0;
i < oldObj->
size(); ++
i ) {
61 oldInt.setStore( oldObj );
63 newInt.setStore( newObj );
76 newTau->
setP4( oldTau->pt(), oldTau->eta(), oldTau->phi(), oldTau->m() );
249 if(
key.length()==0)
continue;
251 for(
unsigned int i = 0;
i < oldTau->nTracks(); ++
i){
253 if(!linkToTrackParticle.
isValid())
continue;
257 track->addTrackLink(linkToTrackParticle);
258 track->setP4(trackParticle->
pt(), trackParticle->
eta(), trackParticle->
phi(), trackParticle->
m());
268 for(
unsigned int i = 0;
i < oldTau->nWideTracks(); ++
i){
270 if(!linkToTrackParticle.
isValid())
continue;
274 track->addTrackLink(linkToTrackParticle);
275 track->setP4(trackParticle->
pt(), trackParticle->
eta(), trackParticle->
phi(), trackParticle->
m());
286 for(
unsigned int i = 0;
i < oldTau->nOtherTracks(); ++
i){
288 if(!linkToTrackParticle.
isValid())
continue;
292 track->addTrackLink(linkToTrackParticle);
293 track->setP4(trackParticle->
pt(), trackParticle->
eta(), trackParticle->
phi(), trackParticle->
m());
310 std::string tauTrackContName=
key;
311 tauTrackContName.replace(tauTrackContName.find(
"Aux."),4,
"");
316 if(tauTrackContName.find(
"Jet") != std::string::npos){
317 tauTrackContName.replace( tauTrackContName.find(
"Jet"), 3,
"Track" );
318 if(tauTrackContName.find(
"HLT") != std::string::npos) tauTrackContName+=
"Tracks";
321 log << MSG::ERROR <<
"Cannot decipher name TauTrackConatiner should have" <<
endmsg;
325 std::string tauTrackAuxContName=tauTrackContName+
"Aux.";
327 if(evtStore->record(pTracks, tauTrackContName).isFailure() ||
328 evtStore->record(pAuxTracks, tauTrackAuxContName)){
344 MsgStream&
log )
const {
347 <<
"Somebody called xAODTauJetAuxContainerCnv_v2::transToPers"
349 throw std::runtime_error(
"Somebody called xAODTauJetAuxContainerCnv_v2::"
@ cellBasedEnergyRing4
Ring 4: 0.10 < R < 0.125.
@ trkRmsDist
Get the RMS of track distance to calorimeter seed.
virtual double pt() const override final
The transverse momentum ( ) of the particle.
@ PanTau_BDTVar_Neutral_Ratio_1stBDTEtOverEtAllConsts
@ PanTau_BDTVar_Combined_DeltaR1stNeutralTo1stCharged
virtual double m() const override final
The invariant mass of the particle..
@ topoInvMass
get invariant mass from topoclusters of jet associated to tau candidate
Temporary container used until we have I/O for AuxStoreInternal.
@ cellBasedEnergyRing7
Ring 7: 0.2 < R < 0.4.
void setProtoNeutralPFOLinks(const PFOLinks_t &protoNeutralPFOs)
bool toContainedElement(BaseConstReference data, ElementType element, IProxyDict *sg=0)
Set from element pointer and a reference to the container (storable)
TauTrackContainer_v1 TauTrackContainer
Definition of the current TauTrack container version.
@ lead2ClusterEOverAllClusterE
Get sum of 2 leading cluster energy over all cluster energy.
void setJetLink(const JetLink_t &jetLink)
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
void setPanTauDetail(TauJetParameters::PanTauDetails panTauDetail, int value)
@ PanTau_BDTValue_3p0n_vs_3pXn
size_t nTracks(TauJetParameters::TauTrackFlag flag=TauJetParameters::TauTrackFlag::classifiedCharged) const
void setProtoPi0PFOLinks(const PFOLinks_t &protoPi0PFOs)
void setNeutralPFOLinks(const PFOLinks_t &neutralPFOs)
@ 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.
xAODTauJetAuxContainerCnv_v2()
Default constructor.
@ cellBasedEnergyRing1
EM+TES final scale.
virtual void transToPersWithKey(const xAOD::TauJetAuxContainer *, xAOD::TauJetAuxContainer_v2 *, const std::string &key, MsgStream &log) const override
Dummy function inherited from the base class.
@ cellBasedEnergyRing6
Ring 6: 0.15 < R < 0.2.
virtual bool resize(size_t size) override
Resize the arrays to a given size.
Temporary container used until we have I/O for AuxStoreInternal.
void setIsTau(TauJetParameters::IsTauFlag flag, bool value)
Set Flag for tau acceptance based on predefined arbitrary criteria.
bool isValid() const
Test to see if the link can be dereferenced.
@ hadRadius
Get hadron calorimeter radius.
void setP4(double pt, double eta, double phi, double m)
Set methods for IParticle values.
@ stripWidth2
Get strip width ^2.
@ centFrac
Get centrality fraction.
@ dRmax
Get maximal dR of tracks associated to calo-seeded tau.
virtual size_t size() const override
Get the size of the container.
virtual FourMom_t p4() const override final
The full 4-momentum of the particle.
@ etHadAtEMScale
Get Hadronic energy at EM scale.
TauTrackAuxContainer_v1 TauTrackAuxContainer
@ PanTau_BDTValue_1p1n_vs_1pXn
@ 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...
@ caloIso
Get sum of transvers energy of clusters around jet seed within 0.2 < dR < 0.4
@ cellBasedEnergyRing2
Ring 2: 0.05 < R < 0.075.
void setSecondaryVertexLink(const VertexLink_t &vertexLink)
@ trkAvgDist
Get calibrated EM transverse energy (DEPRECATED since r19)
Class describing a tau jet.
void setShotPFOLinks(const PFOLinks_t &shotPFOs)
void setTrackFilterProngs(int)
void addTauTrackLink(const ElementLink< TauTrackContainer > &tr)
add a TauTrack to the tau
void setTrackFilterQuality(int)
@ caloIsoCorrected
Get sum of transvers energy of clusters around jet seed within 0.2 < dR < 0.4 (pile up corrected)
Class describing a tau jet.
@ PanTau_BDTValue_1p0n_vs_1p1n
TauJet_v3 TauJet
Definition of the current "tau version".
@ etOverPtLeadTrkCorrected
@ numTopoClusters
get number of topocluster constituents of jet associated to tau candidate
@ cellBasedEnergyRing5
Ring 5: 0.125 < R < 0.15.
@ PanTau_BDTVar_Neutral_PID_BDTValues_BDTSort_2
void setProtoChargedPFOLinks(const PFOLinks_t &protoChargedPFOs)
@ BDTJetScore
Boosted Decision Tree socre for Jet rejection (not transformed)
value_type push_back(value_type pElem)
Add an element to the end of the collection.
@ TauJetVtxFraction
@Tau Jet Vertex Fraction
@ nStrip
Get number of strips.
@ TRT_NHT_OVER_NLT
TRT hits high threshold over low threshold.
void setChargedPFOLinks(const PFOLinks_t &chargedPFOs)
TauTrack_v1 TauTrack
Definition of the current version.
@ cellBasedEnergyRing3
Ring 3: 0.075 < R < 0.10.
@ numEffTopoClusters
get number of effective topocluster constituents of jet associated to tau candidate !...
@ BDTEleScore
Boosted Decision Tree score for electron rejection.
void setPi0PFOLinks(const PFOLinks_t &pi0PFOs)
void setROIWord(unsigned int)
void setVertexLink(const VertexLink_t &vertexLink)
@ PanTau_BDTVar_Charged_StdDev_Et_WrtEtAllConsts
@ sumEMCellEtOverLeadTrkPt
@ effTopoInvMass
get invariant mass from effective topoclusters of jet associated to tau candidate
void setDetail(TauJetParameters::Detail detail, int value)
@ innerTrkAvgDistCorrected
@ isolFrac
Get isolation fraction.
@ PanTau_isPanTauCandidate
Class describing a TrackParticle.
const Trk::Track * track() const
Returns a pointer (which can be NULL) to the Trk::Track which was used to make this TrackParticle.
virtual void persToTransWithKey(const xAOD::TauJetAuxContainer_v2 *oldObj, xAOD::TauJetAuxContainer *newObj, const std::string &key, MsgStream &log) const override
Function converting from the old type to the current one.
@ BDTJetScoreSigTrans
BDT score which is signal transformed/flattened.
@ EMRadius
Get E_T radius.
void setDiscriminant(TauJetParameters::TauID discID, double disc)
Set value of discriminant.
@ PanTau_BDTVar_Neutral_Ratio_EtOverEtAllConsts
@ etEMAtEMScale
Get EM energy at EM scale.
virtual double phi() const override final
The azimuthal angle ( ) of the particle (has range to .)
@ PanTau_BDTVar_Neutral_PID_BDTValues_BDTSort_1