Classes | Typedefs | Enumerations | Functions
ana::covmx Namespace Reference

Classes

class  CovarianceMatrix
 A class for generating a covariance matrices as a function of oscillation parameters and systematics as nuisance parameters. More...
 
class  Sample
 

Typedefs

typedef std::vector< std::vector< TMatrixD > > Patch
 
typedef std::pair< Sample, SampleSamplePair
 
typedef std::tuple< Flavors::Flavors_t, Current::Current_t, Sign::Sign_tComponent
 

Enumerations

enum  Selection { kCCNumu, kCCNue, kNC, kNoSel }
 
enum  Polarity { kFHC, kRHC, kNoPol }
 
enum  Detector { kNearDet, kFarDet, kNoDet }
 
enum  Quantile {
  kQ1, kQ2, kQ3, kQ4,
  kNoQ
}
 

Functions

vector< ComponentGetComponents (Sample sample)
 

Typedef Documentation

Definition at line 30 of file CovarianceMatrix.h.

typedef std::vector< std::vector<TMatrixD> > ana::covmx::Patch

Definition at line 23 of file CovMxManager.h.

typedef std::pair<Sample, Sample> ana::covmx::SamplePair

Definition at line 24 of file CovMxManager.h.

Enumeration Type Documentation

Enumerator
kNearDet 
kFarDet 
kNoDet 

Definition at line 28 of file Sample.h.

Enumerator
kFHC 
kRHC 
kNoPol 

Definition at line 27 of file Sample.h.

Enumerator
kQ1 
kQ2 
kQ3 
kQ4 
kNoQ 

Definition at line 29 of file Sample.h.

Enumerator
kCCNumu 
kCCNue 
kNC 
kNoSel 

Definition at line 26 of file Sample.h.

Function Documentation

std::vector< Component > ana::covmx::GetComponents ( Sample  sample)

Definition at line 46 of file CovarianceMatrix.cxx.

References ana::covmx::Sample::detector, febshutoff_auto::end, ana::Flavors::kAll, ana::Sign::kAntiNu, ana::Sign::kBoth, ana::Current::kCC, kFarDet, ana::Current::kNC, ana::Sign::kNu, ana::Flavors::kNuEToNuE, ana::Flavors::kNuEToNuMu, ana::Flavors::kNuEToNuTau, ana::Flavors::kNuMuToNuE, ana::Flavors::kNuMuToNuMu, ana::Flavors::kNuMuToNuTau, runNovaSAM::ret, and canMan::sign().

Referenced by ana::CovMxManager::AddSystematic(), ana::covmx::CovarianceMatrix::BuildFullCovMx(), ana::CovMxManager::GetCovarianceMatrix(), ana::covmx::CovarianceMatrix::Predict(), ana::CovMxManager::SaveSyst(), and ana::covmx::CovarianceMatrix::SetBinning().

47  {
48  vector<Component> ret;
49 
50  // Define vectors of flavour and sign
51  vector<Flavors::Flavors_t> flavours = { Flavors::kNuEToNuE,
53  if (sample.detector == kFarDet) {
54  vector<Flavors::Flavors_t> fdFlavours = { Flavors::kNuEToNuMu,
56  flavours.insert(end(flavours), begin(fdFlavours), end(fdFlavours));
57  }
58  vector<Sign::Sign_t> signs = { Sign::kNu, Sign::kAntiNu };
59 
60  // Add each combination of flavour and sign
61  for (auto & flavour: flavours) {
62  for (auto & sign: signs) {
63  ret.push_back(make_tuple(flavour, Current::kCC, sign));
64  } // for flavour
65  } // for sign
66 
67  // Add the neutral currents
68  ret.push_back(make_tuple(Flavors::kAll, Current::kNC, Sign::kBoth));
69  return ret;
70 
71  } // function GetComponents
Antineutrinos-only.
Definition: IPrediction.h:50
(&#39; appearance&#39;)
Definition: IPrediction.h:18
(&#39;beam &#39;)
Definition: IPrediction.h:15
Charged-current interactions.
Definition: IPrediction.h:39
Neutrinos-only.
Definition: IPrediction.h:49
(&#39; survival&#39;)
Definition: IPrediction.h:19
All neutrinos, any flavor.
Definition: IPrediction.h:26
(&#39; appearance&#39;)
Definition: IPrediction.h:16
def sign(x)
Definition: canMan.py:197