Skip to content

Commit

Permalink
Merge pull request #8496 from Dr15Jones/kludgeAroundROOTSplitIOReadBug
Browse files Browse the repository at this point in the history
Work around bug in ROOT which affects split classes with iorules
  • Loading branch information
davidlange6 committed Mar 27, 2015
2 parents 41381de + fdd8500 commit 483dc48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DataFormats/Candidate/src/classes_def.xml
Expand Up @@ -6,7 +6,8 @@
<field name="p4Polar_" iotype="ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<Double32_t> >" />
<field name="p4Cartesian_" transient="true" />
</class>
<ioread sourceClass = "reco::ParticleState" version="[1-]" targetClass="reco::ParticleState" source="ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<double> > p4Polar_" target="p4Cartesian_">
<!--The 'int pdgId_' is a workaround for ROOT bug which affects iorules for split classes-->
<ioread sourceClass = "reco::ParticleState" version="[1-]" targetClass="reco::ParticleState" source="ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<double> > p4Polar_;int pdgId_" target="p4Cartesian_">
<![CDATA[newObj->setCartesian();]]>
</ioread>

Expand Down

0 comments on commit 483dc48

Please sign in to comment.