CVNFinalStates.cxx
Go to the documentation of this file.
2 
4 
6 
7 #include <iostream>
8 
9 namespace ana
10 {
12  {
13  float cvnfsID = 0.;
14 
15  for(int i = 0; i < caf::kNumCVNFinalStates; ++i){
16  if((target == 11 && caf::cvnStates[i].nElectron > 0) ||
17  (target == 13 && caf::cvnStates[i].nMuon > 0) ||
18  (target == 111 && caf::cvnStates[i].nPi0 > 0) ||
19  (target == 211 && caf::cvnStates[i].nChargedPion > 0) ||
20  (target == 2112 && caf::cvnStates[i].nNeutron > 0) ||
21  (target == 2212 && caf::cvnStates[i].nProton > 0)) {
22  //cvnfsID += sr->sel.cvnProd3Train.output[i];
23  }
24  std::cout << "ERROR::CVNFinalStateScore2018. Looking for cvnProd3Train. Branch no longer exists." << std::endl;
25  abort();
26  }
27 
28  return cvnfsID;
29  }
30 
31  const Var kCVNFSElectronScore2018([](const caf::SRProxy* sr){return CVNFinalStateScore2018(sr, 11);});
32 
33  const Var kCVNFSMuonScore2018([](const caf::SRProxy* sr){return CVNFinalStateScore2018(sr, 13);});
34 
35  const Var kCVNFSPi0Score2018([](const caf::SRProxy* sr){return CVNFinalStateScore2018(sr, 111);});
36 
37  const Var kCVNFSNeutronScore2018([](const caf::SRProxy* sr){return CVNFinalStateScore2018(sr, 2112);});
38 
39  const Var kCVNFSProtonScore2018([](const caf::SRProxy* sr){return CVNFinalStateScore2018(sr, 2212);});
40 
41  const Var kCVNFSChargedPiScore2018([](const caf::SRProxy* sr){return CVNFinalStateScore2018(sr, 211);});
42 }
const Var kCVNFSChargedPiScore2018([](const caf::SRProxy *sr){return CVNFinalStateScore2018(sr, 211);})
Charged Pion score from CVN Final State labels, using Prod3Train CVN.
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
const XML_Char * target
Definition: expat.h:268
const Var kCVNFSMuonScore2018([](const caf::SRProxy *sr){return CVNFinalStateScore2018(sr, 13);})
Muon score from CVN Final State labels.
Proxy for caf::StandardRecord.
Definition: SRProxy.h:2126
caf::StandardRecord * sr
const Var kCVNFSProtonScore2018([](const caf::SRProxy *sr){return CVNFinalStateScore2018(sr, 2212);})
Proton score from CVN Final State labels, using Prod3Train CVN.
OStream cout
Definition: OStream.cxx:6
float CVNFinalStateScore2018(const caf::SRProxy *sr, int target)
const Var kCVNFSElectronScore2018([](const caf::SRProxy *sr){return CVNFinalStateScore2018(sr, 11);})
Electron score from CVN Final State labels.
const int kNumCVNFinalStates
Definition: CVNLabels.h:11
const CVNFinalState cvnStates[kNumCVNFinalStates]
Definition: CVNLabels.h:12
const Var kCVNFSNeutronScore2018([](const caf::SRProxy *sr){return CVNFinalStateScore2018(sr, 2112);})
Neutron score from CVN Final Staet labels.
const Var kCVNFSPi0Score2018([](const caf::SRProxy *sr){return CVNFinalStateScore2018(sr, 111);})
Pi0 score from CVN Final State labels.