Classes | Functions | Variables
KinematicsPlots.C File Reference
#include <iostream>
#include <map>
#include <memory>
#include <string>
#include <typeinfo>
#include <unordered_map>
#include <unordered_set>
#include "boost/algorithm/string.hpp"
#include "boost/tokenizer.hpp"
#include "TCanvas.h"
#include "TError.h"
#include "TFile.h"
#include "TH1.h"
#include "TH2.h"
#include "THStack.h"
#include "TKey.h"
#include "TLegend.h"
#include "TLegendEntry.h"
#include "TList.h"
#include "TString.h"
#include "TLatex.h"
#include "TROOT.h"
#include "CAFAna/Core/Spectrum.h"
#include "CAFAna/Core/Utilities.h"

Go to the source code of this file.

Classes

class  PlotKey
 
class  Plotter
 

Functions

std::ostream & operator<< (std::ostream &os, PlotKey const &pk)
 
void KinematicsPlots (std::string hornCurrent, std::string prodName)
 

Variables

const std::map< std::string, intINT_COLORS
 
const std::vector< std::stringINT_ORDER
 
const std::map< std::string, std::stringINT_LEGEND
 
const std::vector< std::stringMECQE_WGTS
 
const std::unordered_map< std::string, double > Q0Q3_MAX
 
const double Q0Q3_SCALE = 1e-4
 
const double MC_NOMINAL_POT = 9e20
 
const double Q3_SLICE_SIZE = 0.1
 
const unsigned int Q0Q3_SLICE_OFFSET = 1
 

Function Documentation

void KinematicsPlots ( std::string  hornCurrent,
std::string  prodName 
)

Definition at line 759 of file KinematicsPlots.C.

References Plotter::DataMCComparisons(), runNovaSAM::gErrorIgnoreLevel, std_candles::pl, Plotter::q0q3Panel(), Plotter::TruthPlots(), and Plotter::WeightPlots().

760 {
761  // too many "<image> file has been created" messages
762  gErrorIgnoreLevel = kWarning;
763 
764  TH1::AddDirectory(false);
765  Plotter pl(hornCurrent, prodName, "/nova/ana/users/jwolcott/2p2h_tuning/2018/plots/kinematics");
766  pl.DataMCComparisons();
767  pl.q0q3Panel();
768  pl.WeightPlots();
769  pl.TruthPlots();
770 }
std::ostream& operator<< ( std::ostream &  os,
PlotKey const &  pk 
)

Definition at line 122 of file KinematicsPlots.C.

References PlotKey::combination().

123 {
124  return os << pk.combination();
125 }

Variable Documentation

const std::map<std::string, int> INT_COLORS
Initial value:
= {
{ "QE", kAzure+7 },
{ "RES", kGreen+2 },
{ "DIS", kGray },
{ "MEC", kOrange-1 },
{ "Other", kBlack }
}
enum BeamMode kOrange
enum BeamMode kGreen

Definition at line 40 of file KinematicsPlots.C.

Referenced by Plotter::DataMCComparison(), Plotter::TruthPlots(), and Plotter::WeightPlots().

const std::map<std::string, std::string> INT_LEGEND
Initial value:
= {
{ "QE", "QE" },
{ "RES", "RES" },
{ "DIS", "DIS" },
{ "MEC", "NOvA 2p2h" },
{ "Other", "Other" }
}

Definition at line 56 of file KinematicsPlots.C.

Referenced by Plotter::DataMCComparison(), and Plotter::q0q3Panel().

const std::vector<std::string> INT_ORDER
Initial value:
= {
"Other",
"DIS",
"RES",
"QE",
"MEC"
}

Definition at line 48 of file KinematicsPlots.C.

Referenced by Plotter::DataMCComparison(), Plotter::TruthPlots(), and Plotter::WeightPlots().

const double MC_NOMINAL_POT = 9e20

Definition at line 87 of file KinematicsPlots.C.

Referenced by Plotter::TruthPlots(), and Plotter::WeightPlots().

const std::vector<std::string> MECQE_WGTS
Initial value:
= {
"CV2018",
"CV2018-NoMEC",
"NOvA-MECdown",
"NOvA-MECup",
"MINERvA-1p1h",
"MINERvA-2p2h",
"MINERvA-2p2hnp",
"MINERvA-2p2hpp",
}

Definition at line 66 of file KinematicsPlots.C.

Referenced by Plotter::DataMCComparisons(), Plotter::TruthPlots(), and Plotter::WeightPlots().

const std::unordered_map<std::string, double> Q0Q3_MAX
Initial value:
= {
{"FHC", 8e4},
{"RHC", 3e4},
}

Definition at line 78 of file KinematicsPlots.C.

Referenced by Plotter::DataMCComparisons(), and Plotter::q0q3Panel().

const double Q0Q3_SCALE = 1e-4

Definition at line 85 of file KinematicsPlots.C.

Referenced by Plotter::q0q3Panel().

const unsigned int Q0Q3_SLICE_OFFSET = 1

Definition at line 90 of file KinematicsPlots.C.

Referenced by Plotter::q0q3Panel().

const double Q3_SLICE_SIZE = 0.1

Definition at line 89 of file KinematicsPlots.C.

Referenced by Plotter::q0q3Panel().