20def rs401d_FeldmanCousins(doFeldmanCousins=False, doMCMC=True):
 
   48    deltaMSq = 
ROOT.RooRealVar(
"deltaMSq", 
"#Delta m^{2}", 40, 1, 300, 
"eV/c^{2}")
 
   49    sinSq2theta = 
ROOT.RooRealVar(
"sinSq2theta", 
"sin^{2}(2#theta)", 0.006, 0.0, 0.02)
 
   53    oscillationFormula = 
"std::pow(std::sin(1.27 * x[2] * x[0] / x[1]), 2)" 
   54    PnmuTone = 
ROOT.RooGenericPdf(
"PnmuTone", 
"P(#nu_{#mu} #rightarrow #nu_{e}", oscillationFormula, [L, E, deltaMSq])
 
   72        "PnmuTonePrime", 
"P(#nu_{#mu} #rightarrow #nu_{e}", oscillationFormula, [LPrime, EPrime, deltaMSq]
 
   83    maxEventsTot = 
ROOT.RooConstVar(
"maxEventsTot", 
"maximum number of sinal events", 50000)
 
   86        "1/(#Delta E #Delta L)",
 
   91    sigNorm = 
ROOT.RooProduct(
"sigNorm", 
"", [maxEventsTot, intProbToOscInExp, inverseArea, sinSq2theta])
 
   99    model = 
ROOT.RooAddPdf(
"model", 
"", [sigModel, bkgEShape], [sigNorm, bkgNorm])
 
  113    print(
"generate toy data with nEvents = ", nEventsData)
 
  140    model.plotOn(Eframe, Components=sigModel, LineColor=
"r")
 
  141    model.plotOn(Eframe, Components=bkgEShape, LineColor=
"g")
 
  143    Eframe.SetTitle(
"toy data with best fit model (and sig+bkg components)")
 
  259        mcPlot = MCMCIntervalPlot(mcInt)
 
  265    plotInt = LikelihoodIntervalPlot(plcInterval)
 
  282rs401d_FeldmanCousins(doFeldmanCousins=
False, doMCMC=
True)
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
The FeldmanCousins class (like the Feldman-Cousins technique) is essentially a specific configuration...
The ProfileLikelihoodCalculator is a concrete implementation of CombinedCalculator (the interface cla...