 |
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, V, H > &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) const |
|
virtual StatusCode | execute (const xAOD::DiTauJet &xDiTau) const 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 |
|
StatusCode | decorNtracks (const xAOD::DiTauJet &xDiTau) const |
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
Definition at line 30 of file DiTauIDVarCalculator.h.
◆ StoreGateSvc_t
◆ calculateIDVariables()
◆ d0_leadtrack()
Definition at line 916 of file DiTauIDVarCalculator.cxx.
918 double pt_leadtrk = 0;
921 if (!trackLinksAcc.isAvailable(xDiTau) )
927 if ( iSubjet < 0 || iSubjet >= n_subjetsAcc(xDiTau)) {
931 TLorentzVector tlvSubjet;
932 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(iSubjet),
939 TLorentzVector tlvTrack;
941 for (
auto &xTrack: xTracks)
943 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
948 if (tlvTrack.DeltaR(tlvSubjet) <
m_Rcore)
950 if (tlvTrack.Pt() > pt_leadtrk)
952 pt_leadtrk = tlvTrack.Pt();
953 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 988 of file DiTauIDVarCalculator.cxx.
991 if (!trackLinksAcc.isAvailable(xDiTau) )
993 Warning(
"decorNtracks()",
"Track links not available.");
994 return StatusCode::FAILURE;
998 int nSubjets = n_subjetsAcc(xDiTau);
1000 std::vector<int> nTracks(nSubjets, 0);
1003 for (
const auto &xTrack: xTracks)
1005 double dRmin = 1111;
1008 for (
int i=0;
i<nSubjets; ++
i)
1010 TLorentzVector tlvSubjet = TLorentzVector();
1011 tlvSubjet.SetPtEtaPhiE(xDiTau.
subjetPt(
i),
1015 double dR = tlvSubjet.DeltaR((*xTrack)->p4());
1024 if (itrmin > -1) nTracks[itrmin]++;
1028 n_tracksDec(xDiTau) = nTracks;
1030 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 49 of file DiTauIDVarCalculator.cxx.
95 ditau_ptDec(xDiTau) =
ditau_pt(xDiTau);
96 f_core_leadDec(xDiTau) =
f_core(xDiTau, 0);
97 f_core_sublDec(xDiTau) =
f_core(xDiTau, 1);
98 f_subjet_leadDec(xDiTau) =
f_subjet(xDiTau, 0);
99 f_subjet_sublDec(xDiTau) =
f_subjet(xDiTau, 1);
100 f_subjetsDec(xDiTau) =
f_subjets(xDiTau);
101 f_track_leadDec(xDiTau) =
f_track(xDiTau, 0);
102 f_track_sublDec(xDiTau) =
f_track(xDiTau, 1);
103 R_max_leadDec(xDiTau) =
R_max(xDiTau, 0);
104 R_max_sublDec(xDiTau) =
R_max(xDiTau, 1);
105 n_trackDec(xDiTau) =
n_track(xDiTau);
106 n_tracks_leadDec(xDiTau) =
n_tracks(xDiTau, 0);
107 n_tracks_sublDec(xDiTau) =
n_tracks(xDiTau, 1);
109 R_trackDec(xDiTau) =
R_track(xDiTau);
113 R_core_leadDec(xDiTau) =
R_core(xDiTau, 0);
114 R_core_sublDec(xDiTau) =
R_core(xDiTau, 1);
115 R_tracks_leadDec(xDiTau) =
R_tracks(xDiTau, 0);
116 R_tracks_sublDec(xDiTau) =
R_tracks(xDiTau, 1);
119 M_core_leadDec(xDiTau) =
mass_core(xDiTau, 0);
120 M_core_sublDec(xDiTau) =
mass_core(xDiTau, 1);
124 E_frac_sublDec(xDiTau) =
E_frac(xDiTau,1);
125 E_frac_subsublDec(xDiTau) =
E_frac(xDiTau, 2);
126 R_subjets_sublDec(xDiTau) =
R_subjets(xDiTau, 1);
127 R_subjets_subsublDec(xDiTau) =
R_subjets(xDiTau, 2);
132 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 961 of file DiTauIDVarCalculator.cxx.
965 if (!isoTrackLinksAcc.isAvailable(xDiTau) )
972 TLorentzVector tlvIsoTrack;
974 for (
const auto& xIsoTrack: xIsoTracks)
976 tlvIsoTrack.SetPtEtaPhiE( (*xIsoTrack)->pt(),
981 iso_pt += tlvIsoTrack.Pt();
984 return iso_pt / xDiTau.
pt();
◆ f_subjet()
◆ f_subjets()
◆ f_track()
Definition at line 198 of file DiTauIDVarCalculator.cxx.
201 if (iSubjet < 0 || iSubjet >= n_subjetsAcc(xDiTau)) {
206 if (!trackLinksAcc.isAvailable(xDiTau) )
213 TLorentzVector tlvSubjet;
214 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(iSubjet),
219 TLorentzVector tlvTrack;
220 TLorentzVector tlvLeadTrack;
221 tlvLeadTrack.SetPtEtaPhiE( 0,0,0, 0);
223 for (
const auto &xTrack: xTracks)
230 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
235 if ( tlvSubjet.DeltaR(tlvTrack) < 0.2 )
237 if (tlvLeadTrack.Pt() < tlvTrack.Pt())
239 tlvLeadTrack = tlvTrack;
244 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 34 of file DiTauIDVarCalculator.cxx.
38 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 700 of file DiTauIDVarCalculator.cxx.
704 if (!trackLinksAcc.isAvailable(xDiTau) )
710 if ( iSubjet < 0 || iSubjet >= n_subjetsAcc(xDiTau)) {
714 TLorentzVector tlvallTracks;
719 TLorentzVector tlvSubjet;
720 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(iSubjet),
725 TLorentzVector tlvTrack;
727 for (
const auto& xTrack: xTracks)
729 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
733 if ( tlvSubjet.DeltaR(tlvTrack) <
m_Rcore )
736 tlvallTracks += tlvTrack;
740 if (tlvallTracks.M() < 0)
745 return tlvallTracks.M();
◆ mass_track()
Definition at line 795 of file DiTauIDVarCalculator.cxx.
799 if (!trackLinksAcc.isAvailable(xDiTau) )
804 TLorentzVector tlvallTracks;
808 TLorentzVector tlvTrack;
810 for (
const auto& xTrack: xTracks)
812 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
817 tlvallTracks += tlvTrack;
820 if (tlvallTracks.M() < 0)
824 return tlvallTracks.M();
◆ mass_track_all()
Definition at line 827 of file DiTauIDVarCalculator.cxx.
831 if (!trackLinksAcc.isAvailable(xDiTau) )
836 TLorentzVector tlvallTracks;
840 TLorentzVector tlvTrack;
842 for (
const auto& xTrack: xTracks)
844 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
849 tlvallTracks += tlvTrack;
855 TLorentzVector tlvIsoTrack;
857 for (
const auto& xIsoTrack: xIsoTracks)
859 tlvIsoTrack.SetPtEtaPhiE( (*xIsoTrack)->pt(),
864 tlvallTracks += tlvIsoTrack;
867 if (tlvallTracks.M() < 0)
872 return tlvallTracks.M();
◆ mass_track_core()
Definition at line 649 of file DiTauIDVarCalculator.cxx.
653 if (!trackLinksAcc.isAvailable(xDiTau) )
659 if (n_subjetsAcc(xDiTau) < 2) {
663 TLorentzVector tlvallTracks;
665 for (
int i = 0;
i<=1;
i++)
670 TLorentzVector tlvSubjet;
671 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(
i),
676 TLorentzVector tlvTrack;
678 for (
const auto& xTrack: xTracks)
680 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
684 if ( tlvSubjet.DeltaR(tlvTrack) <
m_Rcore )
687 tlvallTracks += tlvTrack;
691 if (tlvallTracks.M() < 0)
696 return tlvallTracks.M();
◆ mass_tracks()
Definition at line 749 of file DiTauIDVarCalculator.cxx.
753 if (!trackLinksAcc.isAvailable(xDiTau) )
759 if ( iSubjet < 0 || iSubjet >= n_subjetsAcc(xDiTau)) {
763 TLorentzVector tlvallTracks;
767 TLorentzVector tlvSubjet;
768 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(iSubjet),
773 TLorentzVector tlvTrack;
775 for (
const auto& xTrack: xTracks)
777 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
781 if ( tlvSubjet.DeltaR(tlvTrack) < 0.2 )
783 tlvallTracks += tlvTrack;
787 if (tlvallTracks.M() < 0)
792 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 295 of file DiTauIDVarCalculator.cxx.
298 if (iSubjet < 0 || iSubjet >= n_subjetsAcc(xDiTau)) {
303 if (!n_tracksAcc.isAvailable(xDiTau))
305 ATH_MSG_DEBUG(
"n_tracks decoration not available. Try with track links.");
308 if (!trackLinksAcc.isAvailable(xDiTau) )
316 TLorentzVector tlvSubjet;
317 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(iSubjet),
322 TLorentzVector tlvTrack;
324 for (
const auto &xTrack: xTracks)
326 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
330 if ( tlvSubjet.DeltaR(tlvTrack) < 0.2 ) nTracks++;
336 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, LundVariablesTool, 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, LundVariablesTool, asg::AsgTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
◆ R_core()
Definition at line 397 of file DiTauIDVarCalculator.cxx.
403 if (!trackLinksAcc.isAvailable(xDiTau) )
408 if (iSubjet < 0 || iSubjet >= n_subjetsAcc(xDiTau)) {
414 TLorentzVector tlvSubjet;
415 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(iSubjet),
420 TLorentzVector tlvTrack;
422 for (
const auto& xTrack: xTracks)
424 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
429 if ( tlvSubjet.DeltaR(tlvTrack) <
m_Rcore )
431 R_sum += tlvSubjet.DeltaR(tlvTrack)*tlvTrack.Pt();
◆ R_isotrack()
Definition at line 596 of file DiTauIDVarCalculator.cxx.
602 if (!isoTrackLinksAcc.isAvailable(xDiTau) )
608 if (n_subjetsAcc(xDiTau) < 2) {
612 for (
int i = 0;
i<=1;
i++)
617 TLorentzVector tlvSubjet;
618 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(
i),
623 TLorentzVector tlvIsoTrack;
625 for (
const auto& xIsoTrack: xIsoTracks)
627 tlvIsoTrack.SetPtEtaPhiE( (*xIsoTrack)->pt(),
632 if (tlvSubjet.DeltaR(tlvIsoTrack) < 0.4)
634 R_sum += tlvSubjet.DeltaR(tlvIsoTrack)*tlvIsoTrack.Pt();
635 pt += tlvIsoTrack.Pt();
◆ R_max()
Definition at line 249 of file DiTauIDVarCalculator.cxx.
252 if (iSubjet < 0 || iSubjet >= n_subjetsAcc(xDiTau)) {
258 TLorentzVector tlvSubjet;
259 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(iSubjet),
264 TLorentzVector tlvTrack;
265 TLorentzVector tlvRmaxTrack;
268 for (
const auto &xTrack: xTracks)
270 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
275 if ( tlvSubjet.DeltaR(tlvTrack) <
m_Rsubjet )
277 if (tlvTrack.DeltaR(tlvSubjet) > Rmax)
279 Rmax = tlvTrack.DeltaR(tlvSubjet);
◆ R_subjets()
Definition at line 887 of file DiTauIDVarCalculator.cxx.
891 if ( iSubjet < 0 || iSubjet >= n_subjetsAcc(xDiTau)) {
896 if (!trackLinksAcc.isAvailable(xDiTau) )
901 TLorentzVector tlvLeadSubjet;
902 tlvLeadSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(0),
907 TLorentzVector tlvSubjet;
908 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(iSubjet),
912 return tlvLeadSubjet.DeltaR(tlvSubjet);
◆ R_track()
Definition at line 497 of file DiTauIDVarCalculator.cxx.
503 if (!trackLinksAcc.isAvailable(xDiTau) )
508 if (n_subjetsAcc(xDiTau) < 2) {
512 for (
int i = 0;
i<=1;
i++)
517 TLorentzVector tlvSubjet;
518 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(
i),
523 TLorentzVector tlvTrack;
525 for (
const auto& xTrack: xTracks)
527 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
532 if (tlvSubjet.DeltaR(tlvTrack) < 0.2)
534 R_sum += tlvSubjet.DeltaR(tlvTrack)*tlvTrack.Pt();
◆ R_track_all()
Definition at line 547 of file DiTauIDVarCalculator.cxx.
553 if (!trackLinksAcc.isAvailable(xDiTau) )
559 for (
int i = 0;
i<n_subjetsAcc(xDiTau);
i++)
564 TLorentzVector tlvSubjet;
565 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(
i),
570 TLorentzVector tlvTrack;
572 for (
const auto& xTrack: xTracks)
574 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
579 if (tlvSubjet.DeltaR(tlvTrack) <= 0.2)
581 R_sum += tlvSubjet.DeltaR(tlvTrack)*tlvTrack.Pt();
◆ R_track_core()
Definition at line 445 of file DiTauIDVarCalculator.cxx.
451 if (!trackLinksAcc.isAvailable(xDiTau) )
456 if (n_subjetsAcc(xDiTau) < 2) {
461 for (
int i = 0;
i<=1;
i++)
466 TLorentzVector tlvSubjet;
467 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(
i),
472 TLorentzVector tlvTrack;
474 for (
const auto& xTrack: xTracks)
476 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
480 if ( tlvSubjet.DeltaR(tlvTrack) <
m_Rcore )
483 R_sum += tlvSubjet.DeltaR(tlvTrack)*tlvTrack.Pt();
◆ R_tracks()
Definition at line 347 of file DiTauIDVarCalculator.cxx.
353 if (!trackLinksAcc.isAvailable(xDiTau) )
359 if (iSubjet < 0 || iSubjet >= n_subjetsAcc(xDiTau)) {
365 TLorentzVector tlvSubjet;
366 tlvSubjet.SetPtEtaPhiE( xDiTau.
subjetPt(iSubjet),
371 TLorentzVector tlvTrack;
373 for (
const auto& xTrack: xTracks)
375 tlvTrack.SetPtEtaPhiE( (*xTrack)->pt(),
380 if ( tlvSubjet.DeltaR(tlvTrack) < 0.2 )
383 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
Gaudi::Property<float> DiTauRecTools::DiTauIDVarCalculator::m_dDefault {this, "DefaultValue", -1234} |
|
private |
◆ m_detStore
◆ m_evtStore
◆ m_Rcore
Gaudi::Property<float> DiTauRecTools::DiTauIDVarCalculator::m_Rcore {this, "R_core", 0.1} |
|
private |
◆ m_Rsubjet
Gaudi::Property<float> DiTauRecTools::DiTauIDVarCalculator::m_Rsubjet {this, "R_subjet", 0.2} |
|
private |
◆ 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
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
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
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.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &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