Skip to content
Snippets Groups Projects
Commit 6f9b4823 authored by David Paul Yallup's avatar David Paul Yallup Committed by Graeme Stewart
Browse files

Update of tau EDM in r21 (xAODJiveXML-00-01-57)

Former-commit-id: 58531bb22b52d090605846891b95f8356fbe4433
parent 5aac3df4
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ ToolSvc += thexAODElectronRetriever ...@@ -26,7 +26,7 @@ ToolSvc += thexAODElectronRetriever
from xAODJiveXML.xAODJiveXMLConf import JiveXML__xAODMissingETRetriever from xAODJiveXML.xAODJiveXMLConf import JiveXML__xAODMissingETRetriever
thexAODMissingETRetriever = JiveXML__xAODMissingETRetriever (name = "xAODMissingETRetriever") thexAODMissingETRetriever = JiveXML__xAODMissingETRetriever (name = "xAODMissingETRetriever")
#thexAODMissingETRetriever.StoreGateKey = "MET_RefFinal" #thexAODMissingETRetriever.StoreGateKey = "MET_RefFinal"
thexAODMissingETRetriever.FavouriteMETCollection="MET_Reference_AntiKt4LCTopo" thexAODMissingETRetriever.FavouriteMETCollection="MET_Reference_AntiKt4EMTopo"
## If this list is not set, all other collections will be retrieved ## If this list is not set, all other collections will be retrieved
thexAODMissingETRetriever.OtherMETCollections=["MET_Calo","MET_LocHadTopo","MET_Core_AntiKt4LCTopo"] thexAODMissingETRetriever.OtherMETCollections=["MET_Calo","MET_LocHadTopo","MET_Core_AntiKt4LCTopo"]
#### to request all collections: #### to request all collections:
......
...@@ -157,12 +157,14 @@ namespace JiveXML { ...@@ -157,12 +157,14 @@ namespace JiveXML {
// sanity cut: emfrac should be within [0,1] // sanity cut: emfrac should be within [0,1]
if ( emfrac > 1.0 ) emfrac = 1.; if ( emfrac > 1.0 ) emfrac = 1.;
if ( emfrac < 0.0 ) emfrac = 0.; if ( emfrac < 0.0 ) emfrac = 0.;
emfracVec.push_back( emfrac ); emfracVec.push_back( DataType(emfrac).toString() );
label = "AllMeV_SumEMSampl=" + DataType( eInSample ).toString() + if ( DataType( eInSample ).toString() != 0. ){
"_SumAllSampl=" + DataType( eInSampleFull ).toString() + label = "AllMeV_SumEMSampl=" + DataType( eInSample ).toString() +
"_calcEMFrac=" + DataType( rawemfrac ).toString()+ "_SumAllSampl=" + DataType( eInSampleFull ).toString() +
"_outEMFrac=" + DataType( emfrac ).toString(); "_calcEMFrac=" + DataType( rawemfrac ).toString()+
"_outEMFrac=" + DataType( emfrac ).toString();
}else{ label = "n_a"; }
eInSample = 0.; eInSample = 0.;
eInSampleFull = 0.; eInSampleFull = 0.;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include "CLHEP/Units/SystemOfUnits.h" #include "CLHEP/Units/SystemOfUnits.h"
#include "xAODTau/TauJetContainer.h" #include "xAODTau/TauJetContainer.h"
#include "xAODTau/TauxAODHelpers.h"
namespace JiveXML { namespace JiveXML {
...@@ -127,8 +128,12 @@ namespace JiveXML { ...@@ -127,8 +128,12 @@ namespace JiveXML {
// InnerDetector/InDetRecAlgs/InDetPriVxFinder/InDetVxLinksToTrackParticles // InnerDetector/InDetRecAlgs/InDetPriVxFinder/InDetVxLinksToTrackParticles
int trkCnt = 0; int trkCnt = 0;
#ifndef XAODTAU_VERSIONS_TAUTRACK_V1_H
const std::vector< ElementLink< xAOD::TrackParticleContainer > > tpLinks = (*tauItr)->trackLinks(); const std::vector< ElementLink< xAOD::TrackParticleContainer > > tpLinks = (*tauItr)->trackLinks();
#else
const std::vector< ElementLink< xAOD::TrackParticleContainer > > tpLinks = xAOD::TauHelpers::trackParticleLinks(*tauItr);
#endif
//iterating over the links //iterating over the links
unsigned int tp_size = tpLinks.size(); unsigned int tp_size = tpLinks.size();
numTracks.push_back(DataType( tp_size )); // same as: (*tauItr)->nTracks() numTracks.push_back(DataType( tp_size )); // same as: (*tauItr)->nTracks()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment