diff --git a/UserTools/PhaseIITreeMaker/PhaseIITreeMaker.cpp b/UserTools/PhaseIITreeMaker/PhaseIITreeMaker.cpp index 348025216..8022719e9 100644 --- a/UserTools/PhaseIITreeMaker/PhaseIITreeMaker.cpp +++ b/UserTools/PhaseIITreeMaker/PhaseIITreeMaker.cpp @@ -324,6 +324,7 @@ bool PhaseIITreeMaker::Initialise(std::string configfile, DataModel &data){ fPhaseIITrigTree->Branch("trueFSLEnergy",&fTrueFSLEnergy,"trueFSLEnergy/D"); fPhaseIITrigTree->Branch("trueQ2",&fTrueQ2,"trueQ2/D"); fPhaseIITrigTree->Branch("trueCC",&fTrueCC,"trueCC/I"); + fPhaseIITrigTree->Branch("trueNC",&fTrueNC,"trueNC/I"); fPhaseIITrigTree->Branch("trueQEL",&fTrueQEL,"trueQEL/I"); fPhaseIITrigTree->Branch("trueRES",&fTrueRES,"trueRES/I"); fPhaseIITrigTree->Branch("trueDIS",&fTrueDIS,"trueDIS/I"); @@ -899,6 +900,7 @@ void PhaseIITreeMaker::ResetVariables() { fTrueFSLEnergy = -9999; fTrueQ2 = -9999; fTrueCC = -9999; + fTrueNC = -9999; fTrueQEL = -9999; fTrueRES = -9999; fTrueDIS = -9999; @@ -1669,7 +1671,7 @@ bool PhaseIITreeMaker::FillMCTruthInfo() { if (hasGenie){ double TrueNeutrinoEnergy, TrueQ2, TrueNuIntxVtx_X, TrueNuIntxVtx_Y, TrueNuIntxVtx_Z, TrueNuIntxVtx_T; double TrueFSLeptonMass, TrueFSLeptonEnergy, TrueFSLeptonTime; - bool TrueCC, TrueQEL, TrueDIS, TrueCOH, TrueMEC, TrueRES; + bool TrueCC, TrueNC, TrueQEL, TrueDIS, TrueCOH, TrueMEC, TrueRES; int fsNeutrons, fsProtons, fsPi0, fsPiPlus, fsPiPlusCher, fsPiMinus, fsPiMinusCher; int fsKPlus, fsKPlusCher, fsKMinus, fsKMinusCher, TrueNuPDG, TrueFSLeptonPdg; Position TrueFSLeptonVtx; @@ -1683,6 +1685,7 @@ bool PhaseIITreeMaker::FillMCTruthInfo() { bool get_neutrino_vtxt = m_data->Stores["GenieInfo"]->Get("NuIntxVtx_T",TrueNuIntxVtx_T); bool get_q2 = m_data->Stores["GenieInfo"]->Get("EventQ2",TrueQ2); bool get_cc = m_data->Stores["GenieInfo"]->Get("IsWeakCC",TrueCC); + bool get_nc = m_data->Stores["GenieInfo"]->Get("IsWeakNC",TrueNC); bool get_qel = m_data->Stores["GenieInfo"]->Get("IsQuasiElastic",TrueQEL); bool get_res = m_data->Stores["GenieInfo"]->Get("IsResonant",TrueRES); bool get_dis = m_data->Stores["GenieInfo"]->Get("IsDeepInelastic",TrueDIS); @@ -1709,7 +1712,7 @@ bool PhaseIITreeMaker::FillMCTruthInfo() { std::cout <<"get_q2: "<