#include <MCNNFiller.h>
Public Member Functions | |
| MCNNFiller () | |
| ~MCNNFiller () | |
| void | SetBestMatchesToFill (Int_t bmtf) |
| void | FillMCNN (NueAnaReader *nueana, NNReader *nread) |
| void | FillBestMatches (NueRecord *record, NNReader *nread) |
| void | SetMCNNpidFile (const char *pdffile_in) |
| void | Setycut (Float_t ycut_in) |
| void | SetMaxRunNC (Int_t maxrunnc_in) |
Private Attributes | |
| MCNNpid * | nnpid |
| Int_t | bestmatches_tofill |
| Float_t | ycut |
| Int_t | maxrunnc |
|
|
Definition at line 18 of file MCNNFiller.cxx. References bestmatches_tofill, maxrunnc, nnpid, and ycut. 00018 {
00019
00020 cout << "Started MCNNFiller..." << endl;
00021 bestmatches_tofill=50;//<-- default value
00022 nnpid = new MCNNpid();
00023 ycut=1.0;
00024 maxrunnc=21099999;
00025
00026 }
|
|
|
Definition at line 28 of file MCNNFiller.cxx. 00028 {
00029
00030
00031 }
|
|
||||||||||||
|
Definition at line 74 of file MCNNFiller.cxx. References bestmatches_tofill, MCNNVars::bmatch, NNReader::GetBestMatch(), NNReader::GetNumBestMatches(), MCNNBestMatch::interactionType, NueRecord::mcnnv, and MCNNBestMatch::run. Referenced by FillMCNN(). 00074 {
00075
00076 //Int_t numbmatches=TMath::Min(nread->GetNumBestMatches(),bestmatches_tofill);
00077 Int_t elcont=0;
00078 Int_t ii=0;
00079
00080 //for(int ii=0;ii<numbmatches;++ii){
00081 while(elcont<bestmatches_tofill && ii<nread->GetNumBestMatches()){
00082
00083 TClonesArray& bmatcharray = *(record->mcnnv.bmatch);
00084 MCNNBestMatch *pepito = nread->GetBestMatch(ii);
00085 if(pepito->interactionType==1 || (pepito->interactionType==0 && pepito->run<=maxrunnc)){
00086 new (bmatcharray[elcont]) MCNNBestMatch(pepito);
00087 ++elcont;
00088 }
00089 ++ii;
00090 }//<--loop over best matches
00091
00092
00093 }
|
|
||||||||||||
|
|
Definition at line 35 of file MCNNFiller.cxx. References bestmatches_tofill. Referenced by MCNNMergeModule::BeginJob(). 00035 {
00036
00037 bestmatches_tofill=bmtf;
00038
00039 }
|
|
|
Definition at line 112 of file MCNNFiller.cxx. References maxrunnc. 00112 {
00113
00114 maxrunnc=maxrunnc_in;
00115
00116 }
|
|
|
Definition at line 96 of file MCNNFiller.cxx. References nnpid. Referenced by MCNNMergeModule::BeginJob().
|
|
|
Definition at line 104 of file MCNNFiller.cxx. References nnpid, MCNNpid::Setycut(), and ycut. Referenced by MCNNMergeModule::BeginJob().
|
|
|
Definition at line 22 of file MCNNFiller.h. Referenced by FillBestMatches(), MCNNFiller(), and SetBestMatchesToFill(). |
|
|
Definition at line 24 of file MCNNFiller.h. Referenced by MCNNFiller(), and SetMaxRunNC(). |
|
|
Definition at line 21 of file MCNNFiller.h. Referenced by FillMCNN(), MCNNFiller(), SetMCNNpidFile(), and Setycut(). |
|
|
Definition at line 23 of file MCNNFiller.h. Referenced by FillMCNN(), MCNNFiller(), and Setycut(). |
1.3.9.1