|
ATLAS Offline Software
|
#include <DiTauIDVarCalculator.h>
|
virtual void | print () const =0 |
| Print the state of the tool. More...
|
|
virtual void | print () const |
| Print the state of the tool. 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 |
|
|
virtual StatusCode | initialize () override |
| Dummy implementation of the initialisation function. More...
|
|
virtual StatusCode | calculateIDVariables (const xAOD::DiTauJet &xDiTau) |
|
virtual StatusCode | execute (const xAOD::DiTauJet &xDiTau) override |
| Declare the interface that the class provides. More...
|
|
float | ditau_pt (const xAOD::DiTauJet &xDiTau) const |
|
float | f_core (const xAOD::DiTauJet &xDiTau, int iSubjet) const |
|
float | f_subjet (const xAOD::DiTauJet &xDiTau, int iSubjet) const |
|
float | f_subjets (const xAOD::DiTauJet &xDiTau) const |
|
float | f_track (const xAOD::DiTauJet &xDiTau, int iSubjet) const |
|
float | R_max (const xAOD::DiTauJet &xDiTau, int iSubjet) const |
|
int | n_tracks (const xAOD::DiTauJet &xDiTau, int iSubjet) const |
|
int | n_othertrack (const xAOD::DiTauJet &xDiTau) const |
|
float | R_track (const xAOD::DiTauJet &xDiTau) const |
|
float | R_track_all (const xAOD::DiTauJet &xDiTau) const |
|
float | R_track_core (const xAOD::DiTauJet &xDiTau) const |
|
float | R_isotrack (const xAOD::DiTauJet &xDiTau) const |
|
float | R_core (const xAOD::DiTauJet &xDiTau, int iSubjet) const |
|
float | R_tracks (const xAOD::DiTauJet &xDiTau, int iSubjet) const |
|
float | mass_track (const xAOD::DiTauJet &xDiTau) const |
|
float | mass_track_core (const xAOD::DiTauJet &xDiTau) const |
|
float | mass_core (const xAOD::DiTauJet &xDiTau, int iSubjet) const |
|
float | mass_track_all (const xAOD::DiTauJet &xDiTau) const |
|
float | mass_tracks (const xAOD::DiTauJet &xDiTau, int iSubjet) const |
|
float | E_frac (const xAOD::DiTauJet &xDiTau, int iSubjet) const |
|
float | R_subjets (const xAOD::DiTauJet &xDiTau, int iSubjet) const |
|
float | d0_leadtrack (const xAOD::DiTauJet &xDiTau, int iSubjet) const |
|
float | f_isotracks (const xAOD::DiTauJet &xDiTau) const |
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
Definition at line 29 of file DiTauIDVarCalculator.h.
◆ StoreGateSvc_t
◆ calculateIDVariables()
◆ d0_leadtrack()
Definition at line 921 of file DiTauIDVarCalculator.cxx.
923 double pt_leadtrk = 0;
926 if (!trackLinksAcc.isAvailable(xDiTau) )
932 if ( iSubjet < 0 || iSubjet >= n_subjetsAcc(xDiTau)) {
936 TLorentzVector tlvSubjet;
937 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(iSubjet),
944 TLorentzVector tlvTrack;
947 for (
auto &xTrack: xTracks)
949 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
954 if (tlvTrack.DeltaR(tlvSubjet) < R_coreAcc(xDiTau))
956 if (tlvTrack.Pt() > pt_leadtrk)
958 pt_leadtrk = tlvTrack.Pt();
959 d0 = (*xTrack)->d0();
◆ 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]
◆ decorNtracks()
Definition at line 994 of file DiTauIDVarCalculator.cxx.
997 if (!trackLinksAcc.isAvailable(xDiTau) )
999 Warning(
"decorNtracks()",
"Track links not available.");
1000 return StatusCode::FAILURE;
1004 int nSubjets = n_subjetsAcc(xDiTau);
1007 float Rsubjet = R_subjetAcc(xDiTau);
1008 std::vector<int> nTracks(nSubjets, 0);
1011 for (
const auto &xTrack: xTracks)
1013 double dRmin = 1111;
1016 for (
int i=0;
i<nSubjets; ++
i)
1018 TLorentzVector tlvSubjet = TLorentzVector();
1019 tlvSubjet.SetPtEtaPhiE(xDiTau.
subjetPt(
i),
1023 double dR = tlvSubjet.DeltaR((*xTrack)->p4());
1026 if ((dR < Rsubjet) && (dR < dRmin))
1032 if (itrmin > -1) nTracks[itrmin]++;
1036 n_tracksDec(xDiTau) = nTracks;
1038 return StatusCode::SUCCESS;
◆ detStore()
◆ ditau_pt()
◆ E_frac()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
Declare the interface that the class provides.
Implements DiTauRecTools::IDiTauToolBase.
Definition at line 50 of file DiTauIDVarCalculator.cxx.
96 ditau_ptDec(xDiTau) =
ditau_pt(xDiTau);
97 f_core_leadDec(xDiTau) =
f_core(xDiTau, 0);
98 f_core_sublDec(xDiTau) =
f_core(xDiTau, 1);
99 f_subjet_leadDec(xDiTau) =
f_subjet(xDiTau, 0);
100 f_subjet_sublDec(xDiTau) =
f_subjet(xDiTau, 1);
101 f_subjetsDec(xDiTau) =
f_subjets(xDiTau);
102 f_track_leadDec(xDiTau) =
f_track(xDiTau, 0);
103 f_track_sublDec(xDiTau) =
f_track(xDiTau, 1);
104 R_max_leadDec(xDiTau) =
R_max(xDiTau, 0);
105 R_max_sublDec(xDiTau) =
R_max(xDiTau, 1);
106 n_trackDec(xDiTau) =
n_track(xDiTau);
107 n_tracks_leadDec(xDiTau) =
n_tracks(xDiTau, 0);
108 n_tracks_sublDec(xDiTau) =
n_tracks(xDiTau, 1);
110 R_trackDec(xDiTau) =
R_track(xDiTau);
114 R_core_leadDec(xDiTau) =
R_core(xDiTau, 0);
115 R_core_sublDec(xDiTau) =
R_core(xDiTau, 1);
116 R_tracks_leadDec(xDiTau) =
R_tracks(xDiTau, 0);
117 R_tracks_sublDec(xDiTau) =
R_tracks(xDiTau, 1);
120 M_core_leadDec(xDiTau) =
mass_core(xDiTau, 0);
121 M_core_sublDec(xDiTau) =
mass_core(xDiTau, 1);
125 E_frac_sublDec(xDiTau) =
E_frac(xDiTau,1);
126 E_frac_subsublDec(xDiTau) =
E_frac(xDiTau, 2);
127 R_subjets_sublDec(xDiTau) =
R_subjets(xDiTau, 1);
128 R_subjets_subsublDec(xDiTau) =
R_subjets(xDiTau, 2);
133 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
◆ f_core()
◆ f_isotracks()
Definition at line 967 of file DiTauIDVarCalculator.cxx.
971 if (!isoTrackLinksAcc.isAvailable(xDiTau) )
978 TLorentzVector tlvIsoTrack;
980 for (
const auto& xIsoTrack: xIsoTracks)
982 tlvIsoTrack.SetPtEtaPhiE( (*xIsoTrack)->pt(),
987 iso_pt += tlvIsoTrack.Pt();
990 return iso_pt / xDiTau.
pt();
◆ f_subjet()
◆ f_subjets()
◆ f_track()
Definition at line 199 of file DiTauIDVarCalculator.cxx.
202 if (iSubjet < 0 || iSubjet >= n_subjetsAcc(xDiTau)) {
207 if (!trackLinksAcc.isAvailable(xDiTau) )
214 TLorentzVector tlvSubjet;
215 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(iSubjet),
220 TLorentzVector tlvTrack;
221 TLorentzVector tlvLeadTrack;
222 tlvLeadTrack.SetPtEtaPhiE( 0,0,0, 0);
224 for (
const auto &xTrack: xTracks)
231 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
236 if ( tlvSubjet.DeltaR(tlvTrack) < 0.2 )
238 if (tlvLeadTrack.Pt() < tlvTrack.Pt())
240 tlvLeadTrack = tlvTrack;
245 return tlvLeadTrack.Pt() / tlvSubjet.Pt();
◆ getKey()
Get the (hashed) key of an object that is in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the SG::sgkey_t
key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
- See also
- asg::AsgTool::getName
- Parameters
-
ptr | The bare pointer to the object that the event store should know about |
- Returns
- The hashed key of the object in the store. If not found, an invalid (zero) key.
Definition at line 119 of file AsgTool.cxx.
121 #ifdef XAOD_STANDALONE
127 return (
proxy ==
nullptr ? 0 :
proxy->sgkey() );
128 #endif // XAOD_STANDALONE
◆ getName()
const std::string & asg::AsgTool::getName |
( |
const void * |
ptr | ) |
const |
|
inherited |
Get the name of an object that is / should be in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the std::string
name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
- See also
- asg::AsgTool::getKey
- Parameters
-
ptr | The bare pointer to the object that the event store should know about |
- Returns
- The string name of the object in the store. If not found, an empty string.
Definition at line 106 of file AsgTool.cxx.
108 #ifdef XAOD_STANDALONE
114 static const std::string
dummy =
"";
116 #endif // XAOD_STANDALONE
◆ getProperty()
template<class T >
const T* asg::AsgTool::getProperty |
( |
const std::string & |
name | ) |
const |
|
inherited |
Get one of the tool's properties.
◆ initialize()
StatusCode DiTauIDVarCalculator::initialize |
( |
| ) |
|
|
overrideprivatevirtual |
Dummy implementation of the initialisation function.
It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...
Reimplemented from asg::AsgTool.
Definition at line 35 of file DiTauIDVarCalculator.cxx.
39 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.
◆ mass_core()
Definition at line 704 of file DiTauIDVarCalculator.cxx.
708 if (!trackLinksAcc.isAvailable(xDiTau) )
714 if ( iSubjet < 0 || iSubjet >= n_subjetsAcc(xDiTau)) {
718 TLorentzVector tlvallTracks;
723 TLorentzVector tlvSubjet;
724 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(iSubjet),
729 TLorentzVector tlvTrack;
732 for (
const auto& xTrack: xTracks)
734 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
738 if ( tlvSubjet.DeltaR(tlvTrack) < R_coreAcc(xDiTau) )
741 tlvallTracks += tlvTrack;
745 if (tlvallTracks.M() < 0)
750 return tlvallTracks.M();
◆ mass_track()
Definition at line 800 of file DiTauIDVarCalculator.cxx.
804 if (!trackLinksAcc.isAvailable(xDiTau) )
809 TLorentzVector tlvallTracks;
813 TLorentzVector tlvTrack;
815 for (
const auto& xTrack: xTracks)
817 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
822 tlvallTracks += tlvTrack;
825 if (tlvallTracks.M() < 0)
829 return tlvallTracks.M();
◆ mass_track_all()
Definition at line 832 of file DiTauIDVarCalculator.cxx.
836 if (!trackLinksAcc.isAvailable(xDiTau) )
841 TLorentzVector tlvallTracks;
845 TLorentzVector tlvTrack;
847 for (
const auto& xTrack: xTracks)
849 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
854 tlvallTracks += tlvTrack;
860 TLorentzVector tlvIsoTrack;
862 for (
const auto& xIsoTrack: xIsoTracks)
864 tlvIsoTrack.SetPtEtaPhiE( (*xIsoTrack)->pt(),
869 tlvallTracks += tlvIsoTrack;
872 if (tlvallTracks.M() < 0)
877 return tlvallTracks.M();
◆ mass_track_core()
Definition at line 652 of file DiTauIDVarCalculator.cxx.
656 if (!trackLinksAcc.isAvailable(xDiTau) )
662 if (n_subjetsAcc(xDiTau) < 2) {
666 TLorentzVector tlvallTracks;
669 for (
int i = 0;
i<=1;
i++)
674 TLorentzVector tlvSubjet;
675 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(
i),
680 TLorentzVector tlvTrack;
682 for (
const auto& xTrack: xTracks)
684 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
688 if ( tlvSubjet.DeltaR(tlvTrack) < R_coreAcc(xDiTau) )
691 tlvallTracks += tlvTrack;
695 if (tlvallTracks.M() < 0)
700 return tlvallTracks.M();
◆ mass_tracks()
Definition at line 754 of file DiTauIDVarCalculator.cxx.
758 if (!trackLinksAcc.isAvailable(xDiTau) )
764 if ( iSubjet < 0 || iSubjet >= n_subjetsAcc(xDiTau)) {
768 TLorentzVector tlvallTracks;
772 TLorentzVector tlvSubjet;
773 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(iSubjet),
778 TLorentzVector tlvTrack;
780 for (
const auto& xTrack: xTracks)
782 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
786 if ( tlvSubjet.DeltaR(tlvTrack) < 0.2 )
788 tlvallTracks += tlvTrack;
792 if (tlvallTracks.M() < 0)
797 return tlvallTracks.M();
◆ msg() [1/2]
◆ msg() [2/2]
◆ msg_level_name()
const std::string & asg::AsgTool::msg_level_name |
( |
| ) |
const |
|
inherited |
A deprecated function for getting the message level's name.
Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:
MSG::name( msg().level() )
This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.
- Returns
- The string name of the current minimum message level that's printed
Definition at line 101 of file AsgTool.cxx.
◆ msgLvl()
◆ n_isotrack()
◆ n_othertrack()
◆ n_subjets()
◆ n_track()
◆ n_tracks()
Definition at line 296 of file DiTauIDVarCalculator.cxx.
299 if (iSubjet < 0 || iSubjet >= n_subjetsAcc(xDiTau)) {
304 if (!n_tracksAcc.isAvailable(xDiTau))
306 ATH_MSG_DEBUG(
"n_tracks decoration not available. Try with track links.");
309 if (!trackLinksAcc.isAvailable(xDiTau) )
317 TLorentzVector tlvSubjet;
318 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(iSubjet),
323 TLorentzVector tlvTrack;
325 for (
const auto &xTrack: xTracks)
327 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
331 if ( tlvSubjet.DeltaR(tlvTrack) < 0.2 ) nTracks++;
337 return n_tracksAcc(xDiTau).at(iSubjet);
◆ 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.
◆ print() [1/2]
void asg::AsgTool::print |
( |
| ) |
const |
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
Definition at line 131 of file AsgTool.cxx.
◆ print() [2/2]
virtual void asg::IAsgTool::print |
( |
| ) |
const |
|
pure virtualinherited |
Print the state of the tool.
Implemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, asg::AsgTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
◆ R_core()
Definition at line 398 of file DiTauIDVarCalculator.cxx.
404 if (!trackLinksAcc.isAvailable(xDiTau) )
409 if (iSubjet < 0 || iSubjet >= n_subjetsAcc(xDiTau)) {
415 TLorentzVector tlvSubjet;
416 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(iSubjet),
421 TLorentzVector tlvTrack;
424 for (
const auto& xTrack: xTracks)
426 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
431 if ( tlvSubjet.DeltaR(tlvTrack) < R_coreAcc(xDiTau) )
433 R_sum += tlvSubjet.DeltaR(tlvTrack)*tlvTrack.Pt();
◆ R_isotrack()
Definition at line 599 of file DiTauIDVarCalculator.cxx.
605 if (!isoTrackLinksAcc.isAvailable(xDiTau) )
611 if (n_subjetsAcc(xDiTau) < 2) {
615 for (
int i = 0;
i<=1;
i++)
620 TLorentzVector tlvSubjet;
621 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(
i),
626 TLorentzVector tlvIsoTrack;
628 for (
const auto& xIsoTrack: xIsoTracks)
630 tlvIsoTrack.SetPtEtaPhiE( (*xIsoTrack)->pt(),
635 if (tlvSubjet.DeltaR(tlvIsoTrack) < 0.4)
637 R_sum += tlvSubjet.DeltaR(tlvIsoTrack)*tlvIsoTrack.Pt();
638 pt += tlvIsoTrack.Pt();
◆ R_max()
Definition at line 250 of file DiTauIDVarCalculator.cxx.
253 if (iSubjet < 0 || iSubjet >= n_subjetsAcc(xDiTau)) {
259 TLorentzVector tlvSubjet;
260 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(iSubjet),
265 TLorentzVector tlvTrack;
266 TLorentzVector tlvRmaxTrack;
269 for (
const auto &xTrack: xTracks)
271 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
276 if ( tlvSubjet.DeltaR(tlvTrack) < R_subjetAcc(xDiTau) )
278 if (tlvTrack.DeltaR(tlvSubjet) > Rmax)
280 Rmax = tlvTrack.DeltaR(tlvSubjet);
◆ R_subjets()
Definition at line 892 of file DiTauIDVarCalculator.cxx.
896 if ( iSubjet < 0 || iSubjet >= n_subjetsAcc(xDiTau)) {
901 if (!trackLinksAcc.isAvailable(xDiTau) )
906 TLorentzVector tlvLeadSubjet;
907 tlvLeadSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(0),
912 TLorentzVector tlvSubjet;
913 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(iSubjet),
917 return tlvLeadSubjet.DeltaR(tlvSubjet);
◆ R_track()
Definition at line 500 of file DiTauIDVarCalculator.cxx.
506 if (!trackLinksAcc.isAvailable(xDiTau) )
511 if (n_subjetsAcc(xDiTau) < 2) {
515 for (
int i = 0;
i<=1;
i++)
520 TLorentzVector tlvSubjet;
521 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(
i),
526 TLorentzVector tlvTrack;
528 for (
const auto& xTrack: xTracks)
530 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
535 if (tlvSubjet.DeltaR(tlvTrack) < 0.2)
537 R_sum += tlvSubjet.DeltaR(tlvTrack)*tlvTrack.Pt();
◆ R_track_all()
Definition at line 550 of file DiTauIDVarCalculator.cxx.
556 if (!trackLinksAcc.isAvailable(xDiTau) )
562 for (
int i = 0;
i<n_subjetsAcc(xDiTau);
i++)
567 TLorentzVector tlvSubjet;
568 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(
i),
573 TLorentzVector tlvTrack;
575 for (
const auto& xTrack: xTracks)
577 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
582 if (tlvSubjet.DeltaR(tlvTrack) <= 0.2)
584 R_sum += tlvSubjet.DeltaR(tlvTrack)*tlvTrack.Pt();
◆ R_track_core()
Definition at line 447 of file DiTauIDVarCalculator.cxx.
453 if (!trackLinksAcc.isAvailable(xDiTau) )
458 if (n_subjetsAcc(xDiTau) < 2) {
463 for (
int i = 0;
i<=1;
i++)
468 TLorentzVector tlvSubjet;
469 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(
i),
474 TLorentzVector tlvTrack;
477 for (
const auto& xTrack: xTracks)
479 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
483 if ( tlvSubjet.DeltaR(tlvTrack) < R_coreAcc(xDiTau) )
486 R_sum += tlvSubjet.DeltaR(tlvTrack)*tlvTrack.Pt();
◆ R_tracks()
Definition at line 348 of file DiTauIDVarCalculator.cxx.
354 if (!trackLinksAcc.isAvailable(xDiTau) )
360 if (iSubjet < 0 || iSubjet >= n_subjetsAcc(xDiTau)) {
366 TLorentzVector tlvSubjet;
367 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(iSubjet),
372 TLorentzVector tlvTrack;
374 for (
const auto& xTrack: xTracks)
376 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
381 if ( tlvSubjet.DeltaR(tlvTrack) < 0.2 )
384 R_sum += tlvSubjet.DeltaR(tlvTrack)*tlvTrack.Pt();
◆ 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_dDefault
float DiTauRecTools::DiTauIDVarCalculator::m_dDefault |
|
private |
◆ m_detStore
◆ m_evtStore
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
virtual double pt() const
The transverse momentum ( ) of the particle.
float fCore(unsigned int numSubjet) const
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
float subjetPhi(unsigned int numSubjet) const
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
Helper class to provide constant type-safe access to aux data.
float subjetE(unsigned int numSubjet) const
virtual void setOwner(IDataHandleHolder *o)=0
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Helper class to provide type-safe access to aux data.
std::vector< ElementLink< xAOD::TrackParticleContainer > > TrackParticleLinks_t
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
float subjetEta(unsigned int numSubjet) const
virtual void renounce()=0
size_t nIsoTracks() const
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
const TrackParticleLinks_t & isoTrackLinks() const
float subjetPt(unsigned int numSubjet) const
const TrackParticleLinks_t & trackLinks() const
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>