@@ -264,6 +264,8 @@ class CAFMaker : public art::EDProducer {
264264 double fGenieEvtRec_brEvtXSec = 0.0 ; // //< Cross section for selected event (1e-38 cm2)
265265 double fGenieEvtRec_brEvtDXSec = 0.0 ; // //< Cross section for selected event kinematics (1e-38 cm2 / {K^n})
266266 unsigned int fGenieEvtRec_brEvtKPS = 0 ; // //< Kinematic phase space variables. See $GENIE/src/Framework/Conventions/KinePhaseSpace.h -> KinePhaseSpace_t
267+ int fGenieEvtRec_brSctType = 0 ; // /< See [`genie::EScatteringType`](https://hep.ph.liv.ac.uk/~costasa/genie_doxygen/master/html/namespacegenie.html#ab97d2b4d1f37af8d967dadd15be88d0b)
268+ int fGenieEvtRec_brIntType = 0 ; // /< See [`genie::EInteractionType`](https://hep.ph.liv.ac.uk/~costasa/genie_doxygen/master/html/namespacegenie.html#a554f81bb9954c9e46bbabadfcd403111)
267269 double fGenieEvtRec_brEvtWght = 0.0 ; // //< Weight for that event
268270 double fGenieEvtRec_brEvtProb = 0.0 ; // //< Probability for that event (given cross section, path lengths, etc)
269271 double fGenieEvtRec_brEvtVtx [4 ] = {0.0 }; // //< Event vertex position in detector coord syst (SI)
@@ -1182,6 +1184,8 @@ void CAFMaker::InitializeOutfiles()
11821184 fFlatGenieTree ->Branch (" GenieEvtRec.EvtXSec" , &fGenieEvtRec_brEvtXSec , " GenieEvtRec.EvtXSec/D" );
11831185 fFlatGenieTree ->Branch (" GenieEvtRec.EvtDXSec" , &fGenieEvtRec_brEvtDXSec , " GenieEvtRec.EvtDXSec/D" );
11841186 fFlatGenieTree ->Branch (" GenieEvtRec.EvtKPS" , &fGenieEvtRec_brEvtKPS , " GenieEvtRec.EvtKPS/i" );
1187+ fFlatGenieTree ->Branch (" GenieEvtRec.SctType" , &fGenieEvtRec_brSctType , " GenieEvtRec.SctType/I" );
1188+ fFlatGenieTree ->Branch (" GenieEvtRec.IntType" , &fGenieEvtRec_brIntType , " GenieEvtRec.IntType/I" );
11851189 fFlatGenieTree ->Branch (" GenieEvtRec.EvtWght" , &fGenieEvtRec_brEvtWght , " GenieEvtRec.EvtWght/D" );
11861190 fFlatGenieTree ->Branch (" GenieEvtRec.EvtProb" , &fGenieEvtRec_brEvtProb , " GenieEvtRec.EvtProb/D" );
11871191 fFlatGenieTree ->Branch (" GenieEvtRec.EvtVtx" , fGenieEvtRec_brEvtVtx , " GenieEvtRec.EvtVtx[4]/D" );
@@ -1547,6 +1551,8 @@ void CAFMaker::produce(art::Event& evt) noexcept {
15471551 fGenieEvtRec_brEvtXSec = genie_rec->XSec () * (1e+38 /genie::units::cm2);
15481552 fGenieEvtRec_brEvtDXSec = genie_rec->DiffXSec () * (1e+38 /genie::units::cm2);
15491553 fGenieEvtRec_brEvtKPS = genie_rec->DiffXSecVars ();
1554+ fGenieEvtRec_brSctType = genie_rec->Summary ()->ProcInfo ().ScatteringTypeId ();
1555+ fGenieEvtRec_brIntType = genie_rec->Summary ()->ProcInfo ().InteractionTypeId ();
15501556 fGenieEvtRec_brEvtWght = genie_rec->Weight ();
15511557 fGenieEvtRec_brEvtProb = genie_rec->Probability ();
15521558 fGenieEvtRec_brEvtVtx [0 ] = genie_rec->Vertex ()->X ();
0 commit comments