21 #include "art_root_io/TFileDirectory.h" 22 #include "art_root_io/TFileService.h" 99 fValidTree = tfs->make<TTree>(
"CVNOutput",
"CVN Output");
121 if(!cvnResults.isValid())
return;
122 if(cvnResults->size()==0)
return;
126 if(!truthInfo.isValid())
return;
127 if(truthInfo->size()==0)
return;
128 if(!truthInfo->at(0).NeutrinoSet())
return;
133 if(!numuEnergy.isValid() || !nueEnergy.isValid())
return;
136 fNumuProb = cvnResults->at(0).GetNumuProbability();
137 fNueProb = cvnResults->at(0).GetNueProbability();
138 fNutauProb = cvnResults->at(0).GetNutauProbability();
139 fNCProb = cvnResults->at(0).GetNCProbability();
144 fPDG = truthInfo->at(0).GetNeutrino().Nu().PdgCode();
145 if(truthInfo->at(0).GetNeutrino().CCNC() ==
simb::kNC){
std::string fNueEnergyLabel
void analyze(const art::Event &evt) override
EDAnalyzer(fhicl::ParameterSet const &pset)
Utility class for truth labels.
void reconfigure(const fhicl::ParameterSet &pset)
#define DEFINE_ART_MODULE(klass)
T get(std::string const &key) const
std::string fNumuEnergyLabel
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
int fPDG
Truth information.
float fNumuEnergy
Reco energy for numu and nue probabilities.
Position4_t fNuLorentzVector
CVNValidation(fhicl::ParameterSet const &pset)