#include <NCEnergyBin.h>
Public Member Functions | |
| NCEnergyBin () | |
| NCEnergyBin (double binCenter, double binWidth, NCType::EEventType nccc) | |
| void | AddEventToBin (const ANtpRecoInfo *recoInfo, const ANtpTruthInfoBeam *truthInfo=0, NCType::EFileType fileType=NCType::kBeamFile) |
| Add the event with recoInfo and truthInfo to the bin. | |
| double | GetSignal () const |
| double | GetBinCentralValue () const |
| double | GetBinWidth () const |
| int | GetBinType () const |
| BeamType::BeamType_t | GetBeamType () const |
| void | SetSignal (double signal) |
| int | GetDataVectorSize () const |
| int | GetMCSignalVectorSize () const |
| int | GetMCBackgroundVectorSize () const |
| int | GetMCBeamNuEVectorSize () const |
| int | GetMCOscNuEVectorSize () const |
| int | GetMCNuTauVectorSize () const |
| void | GetDataInformation (double &energy, double &weight, int eventNum) const |
| void | GetMCInformation (double &trueEnergy, double &recoShowerE, double &recoMuonE, double &weight, int &flavor, int eventNum) const |
| void | GetMCBackgroundInformation (double &trueEnergy, double &recoShowerE, double &recoMuonE, double &weight, int &flavor, int eventNum) const |
| void | GetMCNuTauInformation (double &trueEnergy, double &recoShowerE, double &recoMuonE, double &weight, int &flavor, int eventNum) const |
| void | GetMCOscNuEInformation (double &trueEnergy, double &recoShowerE, double &recoMuonE, double &weight, int &flavor, int eventNum) const |
| void | GetMCBeamNuEInformation (double &trueEnergy, double &recoShowerE, double &recoMuonE, double &weight, int &flavor, int eventNum) const |
| void | Add (NCEnergyBin *bin) |
| void | Reset (bool data, bool mc) |
Private Attributes | |
| double | fSignal |
| number of data events in this bin | |
| double | fBinCenter |
| central value of this energy bin | |
| double | fBinWidth |
| width of this energy bin | |
| bool | fNCBin |
| true if bin for neutral current events | |
| NCType::EEventType | fBinType |
| type of data in bin - CC, NC | |
| std::vector< double > | fDataEnergies |
| vector of reco'ed energies of data events | |
| std::vector< double > | fDataWeights |
| vector of weights of data events | |
| std::vector< double > | fMCEnergy |
| vector of E for MC signal events | |
| std::vector< double > | fMCEnergyBG |
| vector of E for MC background events | |
| std::vector< double > | fMCEnergyNuTau |
| vector of E for nu_tau MC events | |
| std::vector< double > | fMCEnergyOscNuE |
| vector of E for nu_e MC events | |
| std::vector< double > | fMCEnergyBeamNuE |
| vector of E for nu_e MC events | |
| std::vector< double > | fMCBeamWeight |
vector of weights for MC signal events | |
| std::vector< double > | fMCBeamWeightBG |
vector of weights for MC background events | |
| std::vector< double > | fMCBeamWeightNuTau |
vector of weights for nu_mu -> nu_tau MC events | |
| std::vector< double > | fMCBeamWeightOscNuE |
vector of weights for mu_mu -> nu_e MC events | |
| std::vector< double > | fMCBeamWeightBeamNuE |
vector of weights for nu_e MC events | |
| std::vector< double > | fMCRecoShowerE |
| vector of reco'd shower energies for mc events | |
| std::vector< double > | fMCRecoMuonE |
| vector of reco'd muon energies for mc events | |
| std::vector< int > | fMCFlavor |
| vector of neutrino flavors for mc events | |
| std::vector< double > | fMCRecoShowerEBG |
| vector of reco'd shower energies for mc events | |
| std::vector< double > | fMCRecoMuonEBG |
| vector of reco'd muon energies for mc events | |
| std::vector< int > | fMCFlavorBG |
| vector of neutrino flavors for mc events | |
| std::vector< double > | fMCRecoShowerENuTau |
| vector of reco'd shower energies for mc events | |
| std::vector< double > | fMCRecoMuonENuTau |
| vector of reco'd muon energies for mc events | |
| std::vector< int > | fMCFlavorNuTau |
| vector of neutrino flavors for mc events | |
| std::vector< double > | fMCRecoShowerEOscNuE |
| vector of reco'd shower energies for mc events | |
| std::vector< double > | fMCRecoMuonEOscNuE |
| vector of reco'd muon energies for mc events | |
| std::vector< int > | fMCFlavorOscNuE |
| vector of neutrino flavors for mc events | |
| std::vector< double > | fMCRecoShowerEBeamNuE |
| vector of reco'd shower energies for mc events | |
| std::vector< double > | fMCRecoMuonEBeamNuE |
| vector of reco'd muon energies for mc events | |
| std::vector< int > | fMCFlavorBeamNuE |
| vector of neutrino flavors for mc events | |
Definition at line 22 of file NCEnergyBin.h.
| NCEnergyBin::NCEnergyBin | ( | ) | [inline] |
| NCEnergyBin::NCEnergyBin | ( | double | binCenter, | |
| double | binWidth, | |||
| NCType::EEventType | nccc | |||
| ) |
Definition at line 20 of file NCEnergyBin.cxx.
References fNCBin, Msg::kDebug, NCType::kNC, and MSG.
00021 : 00022 fSignal(0.), 00023 fBinCenter(binCenter), 00024 fBinWidth(binWidth), 00025 fBinType(nccc) 00026 { 00027 fNCBin = (nccc == NCType::kNC); 00028 00029 MSG("NCEnergyBin", Msg::kDebug) << "NCEnergyBin::Constructor" << endl; 00030 }
| void NCEnergyBin::Add | ( | NCEnergyBin * | bin | ) |
Definition at line 267 of file NCEnergyBin.cxx.
References fBinCenter, fBinType, fDataEnergies, fDataWeights, fMCBeamWeight, fMCBeamWeightBeamNuE, fMCBeamWeightBG, fMCBeamWeightNuTau, fMCBeamWeightOscNuE, fMCEnergy, fMCEnergyBeamNuE, fMCEnergyBG, fMCEnergyNuTau, fMCEnergyOscNuE, fMCFlavor, fMCFlavorBeamNuE, fMCFlavorBG, fMCFlavorNuTau, fMCFlavorOscNuE, fMCRecoMuonE, fMCRecoMuonEBeamNuE, fMCRecoMuonEBG, fMCRecoMuonENuTau, fMCRecoMuonEOscNuE, fMCRecoShowerE, fMCRecoShowerEBeamNuE, fMCRecoShowerEBG, fMCRecoShowerENuTau, fMCRecoShowerEOscNuE, fSignal, GetBinCentralValue(), GetBinType(), GetDataInformation(), GetDataVectorSize(), GetMCBackgroundInformation(), GetMCBackgroundVectorSize(), GetMCBeamNuEInformation(), GetMCBeamNuEVectorSize(), GetMCInformation(), GetMCNuTauInformation(), GetMCNuTauVectorSize(), GetMCOscNuEInformation(), GetMCOscNuEVectorSize(), GetMCSignalVectorSize(), Msg::kWarning, and MSG.
00268 { 00269 00270 //make sure you are adding the correct bin to this one 00271 if(bin->GetBinType() == fBinType 00272 && bin->GetBinCentralValue() == fBinCenter){ 00273 00274 double energy = 0.; 00275 double weight = 0.; 00276 double recoShowerE = 0.; 00277 double recoMuonE = 0.; 00278 int flavor = 0; 00279 00280 int size = bin->GetDataVectorSize(); 00281 for(int i = 0; i < size; ++i){ 00282 bin->GetDataInformation(energy, weight, i); 00283 fDataEnergies.push_back(energy); 00284 fDataWeights.push_back(weight); 00285 fSignal += weight; 00286 }//end data 00287 00288 size = bin->GetMCSignalVectorSize(); 00289 for(int j = 0; j < size; ++j){ 00290 bin->GetMCInformation(energy, recoShowerE, recoMuonE, weight, flavor, j); 00291 fMCBeamWeight.push_back(weight); 00292 fMCRecoShowerE.push_back(recoShowerE); 00293 fMCRecoMuonE.push_back(recoMuonE); 00294 fMCFlavor.push_back(flavor); 00295 fMCEnergy.push_back(energy); 00296 00297 }//end signal 00298 00299 size = bin->GetMCBackgroundVectorSize(); 00300 for(int j = 0; j < size; ++j){ 00301 bin->GetMCBackgroundInformation(energy, recoShowerE, recoMuonE, weight, flavor, j); 00302 fMCBeamWeightBG.push_back(weight); 00303 fMCRecoShowerEBG.push_back(recoShowerE); 00304 fMCRecoMuonEBG.push_back(recoMuonE); 00305 fMCFlavorBG.push_back(flavor); 00306 fMCEnergyBG.push_back(energy); 00307 00308 }//end background 00309 00310 size = bin->GetMCNuTauVectorSize(); 00311 for(int j = 0; j < size; ++j){ 00312 bin->GetMCNuTauInformation(energy, recoShowerE, recoMuonE, weight, flavor, j); 00313 fMCBeamWeightNuTau.push_back(weight); 00314 fMCRecoShowerENuTau.push_back(recoShowerE); 00315 fMCRecoMuonENuTau.push_back(recoMuonE); 00316 fMCFlavorNuTau.push_back(flavor); 00317 fMCEnergyNuTau.push_back(energy); 00318 }//end taus 00319 00320 size = bin->GetMCOscNuEVectorSize(); 00321 for(int j = 0; j < size; ++j){ 00322 bin->GetMCOscNuEInformation(energy, recoShowerE, recoMuonE, weight, flavor, j); 00323 fMCBeamWeightOscNuE.push_back(weight); 00324 fMCRecoShowerEOscNuE.push_back(recoShowerE); 00325 fMCRecoMuonEOscNuE.push_back(recoMuonE); 00326 fMCFlavorOscNuE.push_back(flavor); 00327 fMCEnergyOscNuE.push_back(energy); 00328 }//end electrons 00329 00330 size = bin->GetMCBeamNuEVectorSize(); 00331 for(int j = 0; j < size; ++j){ 00332 bin->GetMCBeamNuEInformation(energy, recoShowerE, recoMuonE, weight, flavor, j); 00333 fMCBeamWeightBeamNuE.push_back(weight); 00334 fMCRecoShowerEBeamNuE.push_back(recoShowerE); 00335 fMCRecoMuonEBeamNuE.push_back(recoMuonE); 00336 fMCFlavorBeamNuE.push_back(flavor); 00337 fMCEnergyBeamNuE.push_back(energy); 00338 }//end electrons 00339 00340 } 00341 else 00342 MSG("NCEnergyBin", Msg::kWarning) << "trying to add incompatible bins " 00343 << " " << fBinType << "/" << bin->GetBinType() 00344 << " " << fBinCenter << "/" << bin->GetBinCentralValue() 00345 << endl; 00346 }
| void NCEnergyBin::AddEventToBin | ( | const ANtpRecoInfo * | recoInfo, | |
| const ANtpTruthInfoBeam * | truthInfo = 0, |
|||
| NCType::EFileType | fileType = NCType::kBeamFile | |||
| ) |
Add the event with recoInfo and truthInfo to the bin.
Add the event with recoInfo and truthInfo to the bin. If this bin holds NC selected events, the track energy is filled with zero
Definition at line 33 of file NCEnergyBin.cxx.
References fDataEnergies, fDataWeights, fMCBeamWeight, fMCBeamWeightBeamNuE, fMCBeamWeightBG, fMCBeamWeightNuTau, fMCBeamWeightOscNuE, fMCEnergy, fMCEnergyBeamNuE, fMCEnergyBG, fMCEnergyNuTau, fMCEnergyOscNuE, fMCFlavor, fMCFlavorBeamNuE, fMCFlavorBG, fMCFlavorNuTau, fMCFlavorOscNuE, fMCRecoMuonE, fMCRecoMuonEBeamNuE, fMCRecoMuonEBG, fMCRecoMuonENuTau, fMCRecoMuonEOscNuE, fMCRecoShowerE, fMCRecoShowerEBeamNuE, fMCRecoShowerEBG, fMCRecoShowerENuTau, fMCRecoShowerEOscNuE, fNCBin, fSignal, ANtpTruthInfo::interactionType, NCType::kBeamFile, NCType::kCC, NCType::kElectronFile, NCType::kNC, NCType::kTauFile, ANtpRecoInfo::muEnergy, ANtpTruthInfo::nuEnergy, ANtpRecoInfo::nuEnergy, ANtpTruthInfo::nuFlavor, ANtpRecoInfo::showerEnergy, and ANtpRecoInfo::weight.
00036 { 00037 const double weight = recoInfo->weight; 00038 // (PAR) We set track energy to zero for NC selected events, because 00039 // the total energy returned elsewhere is the track+shower. 00040 double trackEnergy=fNCBin ? 0 : recoInfo->muEnergy; 00041 00042 if(!truthInfo){ 00043 // data is easy... 00044 fSignal += weight; 00045 fDataEnergies.push_back(recoInfo->nuEnergy); 00046 fDataWeights.push_back(weight); 00047 00048 return; 00049 } 00050 00051 const bool electron = TMath::Abs(truthInfo->nuFlavor) == 12; 00052 00053 //see if this is background event - either NC for CC bins or 00054 //nu_mu CC for NC bins 00055 if(fileType == NCType::kBeamFile && !electron && 00056 ((fNCBin && truthInfo->interactionType == NCType::kCC) || 00057 (!fNCBin && truthInfo->interactionType == NCType::kNC))){ 00058 fMCBeamWeightBG.push_back(weight); 00059 fMCRecoShowerEBG.push_back(recoInfo->showerEnergy); 00060 fMCRecoMuonEBG.push_back(trackEnergy); 00061 fMCFlavorBG.push_back(truthInfo->nuFlavor); 00062 fMCEnergyBG.push_back(truthInfo->nuEnergy); 00063 return; 00064 } 00065 00066 if(fileType == NCType::kTauFile && 00067 truthInfo->interactionType == NCType::kCC){ 00068 fMCBeamWeightNuTau.push_back(weight); 00069 fMCRecoShowerENuTau.push_back(recoInfo->showerEnergy); 00070 fMCRecoMuonENuTau.push_back(trackEnergy); 00071 fMCFlavorNuTau.push_back(truthInfo->nuFlavor); 00072 fMCEnergyNuTau.push_back(truthInfo->nuEnergy); 00073 return; 00074 } 00075 00076 if(electron && 00077 fileType == NCType::kBeamFile){ 00078 fMCBeamWeightBeamNuE.push_back(weight); 00079 fMCRecoShowerEBeamNuE.push_back(recoInfo->showerEnergy); 00080 fMCRecoMuonEBeamNuE.push_back(trackEnergy); 00081 fMCFlavorBeamNuE.push_back(truthInfo->nuFlavor); 00082 fMCEnergyBeamNuE.push_back(truthInfo->nuEnergy); 00083 return; 00084 } 00085 00086 if(electron && 00087 fileType == NCType::kElectronFile && 00088 truthInfo->interactionType == NCType::kCC){ 00089 fMCBeamWeightOscNuE.push_back(weight); 00090 fMCRecoShowerEOscNuE.push_back(recoInfo->showerEnergy); 00091 fMCRecoMuonEOscNuE.push_back(trackEnergy); 00092 fMCFlavorOscNuE.push_back(truthInfo->nuFlavor); 00093 fMCEnergyOscNuE.push_back(truthInfo->nuEnergy); 00094 return; 00095 } 00096 00097 fMCBeamWeight.push_back(weight); 00098 fMCRecoShowerE.push_back(recoInfo->showerEnergy); 00099 fMCRecoMuonE.push_back(trackEnergy); 00100 fMCFlavor.push_back(truthInfo->nuFlavor); 00101 fMCEnergy.push_back(truthInfo->nuEnergy); 00102 }
| BeamType::BeamType_t NCEnergyBin::GetBeamType | ( | ) | const |
| double NCEnergyBin::GetBinCentralValue | ( | ) | const |
Definition at line 126 of file NCEnergyBin.cxx.
References fBinCenter.
Referenced by Add().
00127 { 00128 return fBinCenter; 00129 }
| int NCEnergyBin::GetBinType | ( | ) | const |
Definition at line 138 of file NCEnergyBin.cxx.
References fBinType.
Referenced by Add().
00139 { 00140 return fBinType; 00141 }
| double NCEnergyBin::GetBinWidth | ( | ) | const |
Definition at line 132 of file NCEnergyBin.cxx.
References fBinWidth.
00133 { 00134 return fBinWidth; 00135 }
| void NCEnergyBin::GetDataInformation | ( | double & | energy, | |
| double & | weight, | |||
| int | eventNum | |||
| ) | const |
Definition at line 111 of file NCEnergyBin.cxx.
References fDataEnergies, and fDataWeights.
Referenced by Add().
00112 { 00113 assert(eventNum < int(fDataEnergies.size())); 00114 00115 energy = fDataEnergies[eventNum]; 00116 weight = fDataWeights[eventNum]; 00117 }
| int NCEnergyBin::GetDataVectorSize | ( | ) | const |
Definition at line 105 of file NCEnergyBin.cxx.
References fDataEnergies.
Referenced by Add(), NCExtrapolationFarNear::FillDataMCHistogramsNear(), NCExtrapolationBeamMatrix::FillDataMCHistogramsNear(), and NCExtrapolationBeamMatrix::FillNDHistsForXSectionFit().
00106 { 00107 return int(fDataEnergies.size()); 00108 }
| void NCEnergyBin::GetMCBackgroundInformation | ( | double & | trueEnergy, | |
| double & | recoShowerE, | |||
| double & | recoMuonE, | |||
| double & | weight, | |||
| int & | flavor, | |||
| int | eventNum | |||
| ) | const |
Definition at line 179 of file NCEnergyBin.cxx.
References fMCBeamWeightBG, fMCEnergyBG, fMCFlavorBG, fMCRecoMuonEBG, and fMCRecoShowerEBG.
Referenced by Add().
00185 { 00186 00187 assert(eventNum < int(fMCEnergyBG.size())); 00188 00189 trueEnergy = fMCEnergyBG[eventNum]; 00190 recoShowerE = fMCRecoShowerEBG[eventNum]; 00191 recoMuonE = fMCRecoMuonEBG[eventNum]; 00192 weight = fMCBeamWeightBG[eventNum]; 00193 flavor = fMCFlavorBG[eventNum]; 00194 }
| int NCEnergyBin::GetMCBackgroundVectorSize | ( | ) | const |
Definition at line 173 of file NCEnergyBin.cxx.
References fMCBeamWeightBG.
Referenced by Add().
00174 { 00175 return int(fMCBeamWeightBG.size()); 00176 }
| void NCEnergyBin::GetMCBeamNuEInformation | ( | double & | trueEnergy, | |
| double & | recoShowerE, | |||
| double & | recoMuonE, | |||
| double & | weight, | |||
| int & | flavor, | |||
| int | eventNum | |||
| ) | const |
Definition at line 250 of file NCEnergyBin.cxx.
References fMCBeamWeightBeamNuE, fMCEnergyBeamNuE, fMCFlavorBeamNuE, fMCRecoMuonEBeamNuE, and fMCRecoShowerEBeamNuE.
Referenced by Add().
00256 { 00257 assert(eventNum < int(fMCEnergyBeamNuE.size())); 00258 00259 trueEnergy = fMCEnergyBeamNuE[eventNum]; 00260 recoShowerE = fMCRecoShowerEBeamNuE[eventNum]; 00261 recoMuonE = fMCRecoMuonEBeamNuE[eventNum]; 00262 weight = fMCBeamWeightBeamNuE[eventNum]; 00263 flavor = fMCFlavorBeamNuE[eventNum]; 00264 }
| int NCEnergyBin::GetMCBeamNuEVectorSize | ( | ) | const |
Definition at line 244 of file NCEnergyBin.cxx.
References fMCBeamWeightBeamNuE.
Referenced by Add().
00245 { 00246 return int(fMCBeamWeightBeamNuE.size()); 00247 }
| void NCEnergyBin::GetMCInformation | ( | double & | trueEnergy, | |
| double & | recoShowerE, | |||
| double & | recoMuonE, | |||
| double & | weight, | |||
| int & | flavor, | |||
| int | eventNum | |||
| ) | const |
Definition at line 156 of file NCEnergyBin.cxx.
References fMCBeamWeight, fMCEnergy, fMCFlavor, fMCRecoMuonE, and fMCRecoShowerE.
Referenced by Add().
00162 { 00163 assert(eventNum < int(fMCEnergy.size())); 00164 00165 trueEnergy = fMCEnergy[eventNum]; 00166 recoShowerE = fMCRecoShowerE[eventNum]; 00167 recoMuonE = fMCRecoMuonE[eventNum]; 00168 weight = fMCBeamWeight[eventNum]; 00169 flavor = fMCFlavor[eventNum]; 00170 }
| void NCEnergyBin::GetMCNuTauInformation | ( | double & | trueEnergy, | |
| double & | recoShowerE, | |||
| double & | recoMuonE, | |||
| double & | weight, | |||
| int & | flavor, | |||
| int | eventNum | |||
| ) | const |
Definition at line 203 of file NCEnergyBin.cxx.
References fMCBeamWeightNuTau, fMCEnergyNuTau, fMCFlavorNuTau, fMCRecoMuonENuTau, and fMCRecoShowerENuTau.
Referenced by Add().
00209 { 00210 00211 assert(eventNum < int(fMCEnergyNuTau.size())); 00212 00213 trueEnergy = fMCEnergyNuTau[eventNum]; 00214 recoShowerE = fMCRecoShowerENuTau[eventNum]; 00215 recoMuonE = fMCRecoMuonENuTau[eventNum]; 00216 weight = fMCBeamWeightNuTau[eventNum]; 00217 flavor = fMCFlavorNuTau[eventNum]; 00218 }
| int NCEnergyBin::GetMCNuTauVectorSize | ( | ) | const |
Definition at line 197 of file NCEnergyBin.cxx.
References fMCBeamWeightNuTau.
Referenced by Add().
00198 { 00199 return int(fMCBeamWeightNuTau.size()); 00200 }
| void NCEnergyBin::GetMCOscNuEInformation | ( | double & | trueEnergy, | |
| double & | recoShowerE, | |||
| double & | recoMuonE, | |||
| double & | weight, | |||
| int & | flavor, | |||
| int | eventNum | |||
| ) | const |
Definition at line 227 of file NCEnergyBin.cxx.
References fMCBeamWeightOscNuE, fMCEnergyOscNuE, fMCFlavorOscNuE, fMCRecoMuonEOscNuE, and fMCRecoShowerEOscNuE.
Referenced by Add().
00233 { 00234 assert(eventNum < int(fMCEnergyOscNuE.size())); 00235 00236 trueEnergy = fMCEnergyOscNuE[eventNum]; 00237 recoShowerE = fMCRecoShowerEOscNuE[eventNum]; 00238 recoMuonE = fMCRecoMuonEOscNuE[eventNum]; 00239 weight = fMCBeamWeightOscNuE[eventNum]; 00240 flavor = fMCFlavorOscNuE[eventNum]; 00241 }
| int NCEnergyBin::GetMCOscNuEVectorSize | ( | ) | const |
Definition at line 221 of file NCEnergyBin.cxx.
References fMCBeamWeightOscNuE.
Referenced by Add().
00222 { 00223 return int(fMCBeamWeightOscNuE.size()); 00224 }
| int NCEnergyBin::GetMCSignalVectorSize | ( | ) | const |
Definition at line 150 of file NCEnergyBin.cxx.
References fMCBeamWeight.
Referenced by Add(), NCExtrapolationFarNear::FillDataMCHistogramsFar(), NCExtrapolationBeamMatrix::FillDataMCHistogramsFar(), and NCBeam::FillResultHistograms().
00151 { 00152 return int(fMCBeamWeight.size()); 00153 }
| double NCEnergyBin::GetSignal | ( | ) | const |
Definition at line 120 of file NCEnergyBin.cxx.
References fSignal.
00121 { 00122 return fSignal; 00123 }
| void NCEnergyBin::Reset | ( | bool | data, | |
| bool | mc | |||
| ) |
Definition at line 356 of file NCEnergyBin.cxx.
References fDataEnergies, fDataWeights, fMCBeamWeight, fMCBeamWeightBeamNuE, fMCBeamWeightBG, fMCBeamWeightNuTau, fMCBeamWeightOscNuE, fMCEnergy, fMCEnergyBeamNuE, fMCEnergyBG, fMCEnergyNuTau, fMCEnergyOscNuE, fMCFlavor, fMCFlavorBeamNuE, fMCFlavorBG, fMCFlavorNuTau, fMCFlavorOscNuE, fMCRecoMuonE, fMCRecoMuonEBeamNuE, fMCRecoMuonEBG, fMCRecoMuonENuTau, fMCRecoMuonEOscNuE, fMCRecoShowerE, fMCRecoShowerEBeamNuE, fMCRecoShowerEBG, fMCRecoShowerENuTau, fMCRecoShowerEOscNuE, fSignal, and ZeroVector().
00357 { 00358 // TODO - I'm by no means sure this is the right set of things to reset 00359 00360 if(data){ 00361 fSignal = 0; 00362 00363 ZeroVector(fDataEnergies); 00364 ZeroVector(fDataWeights); 00365 } 00366 00367 if(mc){ 00368 ZeroVector(fMCEnergy); 00369 ZeroVector(fMCEnergyBG); 00370 ZeroVector(fMCEnergyNuTau); 00371 ZeroVector(fMCEnergyOscNuE); 00372 ZeroVector(fMCEnergyBeamNuE); 00373 ZeroVector(fMCBeamWeight); 00374 ZeroVector(fMCBeamWeightBG); 00375 ZeroVector(fMCBeamWeightNuTau); 00376 ZeroVector(fMCBeamWeightOscNuE); 00377 ZeroVector(fMCBeamWeightBeamNuE); 00378 ZeroVector(fMCRecoShowerE); 00379 ZeroVector(fMCRecoMuonE); 00380 ZeroVector(fMCFlavor); 00381 ZeroVector(fMCRecoShowerEBG); 00382 ZeroVector(fMCRecoMuonEBG); 00383 ZeroVector(fMCFlavorBG); 00384 ZeroVector(fMCRecoShowerENuTau); 00385 ZeroVector(fMCRecoMuonENuTau); 00386 ZeroVector(fMCFlavorNuTau); 00387 ZeroVector(fMCRecoShowerEOscNuE); 00388 ZeroVector(fMCRecoMuonEOscNuE); 00389 ZeroVector(fMCFlavorOscNuE); 00390 ZeroVector(fMCRecoShowerEBeamNuE); 00391 ZeroVector(fMCRecoMuonEBeamNuE); 00392 ZeroVector(fMCFlavorBeamNuE); 00393 } 00394 }
| void NCEnergyBin::SetSignal | ( | double | signal | ) |
Definition at line 144 of file NCEnergyBin.cxx.
References fSignal.
00145 { 00146 fSignal = signal; 00147 }
double NCEnergyBin::fBinCenter [private] |
central value of this energy bin
Definition at line 94 of file NCEnergyBin.h.
Referenced by Add(), and GetBinCentralValue().
NCType::EEventType NCEnergyBin::fBinType [private] |
type of data in bin - CC, NC
Definition at line 97 of file NCEnergyBin.h.
Referenced by Add(), and GetBinType().
double NCEnergyBin::fBinWidth [private] |
std::vector<double> NCEnergyBin::fDataEnergies [private] |
vector of reco'ed energies of data events
Definition at line 99 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetDataInformation(), GetDataVectorSize(), and Reset().
std::vector<double> NCEnergyBin::fDataWeights [private] |
vector of weights of data events
Definition at line 100 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetDataInformation(), and Reset().
std::vector<double> NCEnergyBin::fMCBeamWeight [private] |
vector of
weights for MC signal events
Definition at line 106 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCInformation(), GetMCSignalVectorSize(), and Reset().
std::vector<double> NCEnergyBin::fMCBeamWeightBeamNuE [private] |
vector of
weights for nu_e MC events
Definition at line 115 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCBeamNuEInformation(), GetMCBeamNuEVectorSize(), and Reset().
std::vector<double> NCEnergyBin::fMCBeamWeightBG [private] |
vector of
weights for MC background events
Definition at line 107 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCBackgroundInformation(), GetMCBackgroundVectorSize(), and Reset().
std::vector<double> NCEnergyBin::fMCBeamWeightNuTau [private] |
vector of
weights for nu_mu -> nu_tau MC events
Definition at line 110 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCNuTauInformation(), GetMCNuTauVectorSize(), and Reset().
std::vector<double> NCEnergyBin::fMCBeamWeightOscNuE [private] |
vector of
weights for mu_mu -> nu_e MC events
Definition at line 113 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCOscNuEInformation(), GetMCOscNuEVectorSize(), and Reset().
std::vector<double> NCEnergyBin::fMCEnergy [private] |
vector of E for MC signal events
Definition at line 101 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCInformation(), and Reset().
std::vector<double> NCEnergyBin::fMCEnergyBeamNuE [private] |
vector of E for nu_e MC events
Definition at line 105 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCBeamNuEInformation(), and Reset().
std::vector<double> NCEnergyBin::fMCEnergyBG [private] |
vector of E for MC background events
Definition at line 102 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCBackgroundInformation(), and Reset().
std::vector<double> NCEnergyBin::fMCEnergyNuTau [private] |
vector of E for nu_tau MC events
Definition at line 103 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCNuTauInformation(), and Reset().
std::vector<double> NCEnergyBin::fMCEnergyOscNuE [private] |
vector of E for nu_e MC events
Definition at line 104 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCOscNuEInformation(), and Reset().
std::vector<int> NCEnergyBin::fMCFlavor [private] |
vector of neutrino flavors for mc events
Definition at line 119 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCInformation(), and Reset().
std::vector<int> NCEnergyBin::fMCFlavorBeamNuE [private] |
vector of neutrino flavors for mc events
Definition at line 131 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCBeamNuEInformation(), and Reset().
std::vector<int> NCEnergyBin::fMCFlavorBG [private] |
vector of neutrino flavors for mc events
Definition at line 122 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCBackgroundInformation(), and Reset().
std::vector<int> NCEnergyBin::fMCFlavorNuTau [private] |
vector of neutrino flavors for mc events
Definition at line 125 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCNuTauInformation(), and Reset().
std::vector<int> NCEnergyBin::fMCFlavorOscNuE [private] |
vector of neutrino flavors for mc events
Definition at line 128 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCOscNuEInformation(), and Reset().
std::vector<double> NCEnergyBin::fMCRecoMuonE [private] |
vector of reco'd muon energies for mc events
Definition at line 118 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCInformation(), and Reset().
std::vector<double> NCEnergyBin::fMCRecoMuonEBeamNuE [private] |
vector of reco'd muon energies for mc events
Definition at line 130 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCBeamNuEInformation(), and Reset().
std::vector<double> NCEnergyBin::fMCRecoMuonEBG [private] |
vector of reco'd muon energies for mc events
Definition at line 121 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCBackgroundInformation(), and Reset().
std::vector<double> NCEnergyBin::fMCRecoMuonENuTau [private] |
vector of reco'd muon energies for mc events
Definition at line 124 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCNuTauInformation(), and Reset().
std::vector<double> NCEnergyBin::fMCRecoMuonEOscNuE [private] |
vector of reco'd muon energies for mc events
Definition at line 127 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCOscNuEInformation(), and Reset().
std::vector<double> NCEnergyBin::fMCRecoShowerE [private] |
vector of reco'd shower energies for mc events
Definition at line 117 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCInformation(), and Reset().
std::vector<double> NCEnergyBin::fMCRecoShowerEBeamNuE [private] |
vector of reco'd shower energies for mc events
Definition at line 129 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCBeamNuEInformation(), and Reset().
std::vector<double> NCEnergyBin::fMCRecoShowerEBG [private] |
vector of reco'd shower energies for mc events
Definition at line 120 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCBackgroundInformation(), and Reset().
std::vector<double> NCEnergyBin::fMCRecoShowerENuTau [private] |
vector of reco'd shower energies for mc events
Definition at line 123 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCNuTauInformation(), and Reset().
std::vector<double> NCEnergyBin::fMCRecoShowerEOscNuE [private] |
vector of reco'd shower energies for mc events
Definition at line 126 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetMCOscNuEInformation(), and Reset().
bool NCEnergyBin::fNCBin [private] |
true if bin for neutral current events
Definition at line 96 of file NCEnergyBin.h.
Referenced by AddEventToBin(), and NCEnergyBin().
double NCEnergyBin::fSignal [private] |
number of data events in this bin
Definition at line 93 of file NCEnergyBin.h.
Referenced by Add(), AddEventToBin(), GetSignal(), Reset(), and SetSignal().
1.4.7