#include <Histograms.h>
Public Member Functions | |
void | Initialize (const geo::GeometryCore *geometry, const sbnd::CRTGeoAlg &crt_geo, const Cuts &cuts, const std::string &prefix, const std::vector< std::string > &track_histo_types, const std::vector< std::string > &track_profile_types, const std::vector< std::tuple< unsigned, float, float >> &track_profile_xranges) |
void | Fill (const numu::RecoEvent &event, const event::Event &core, const Cuts &cutmaker, const std::vector< numu::TrackSelector > &selectors, const std::vector< numu::TrackFunction > &xfunctions, bool fill_all_tracks=true) |
Public Member Functions inherited from ana::SBNOsc::HistoList | |
void | Scale (double scale) |
void | Add (const HistoList &other) |
void | Write () |
void | StoreHisto (TH1 *histo) |
void | Merge (const HistoList &merge) |
Static Public Member Functions | |
static std::string | mode2Str (const numu::InteractionMode &mode) |
Public Attributes | |
InteractionHistos | fInteraction [nHistos][nModes] |
all the interaction histograms More... | |
std::vector< TrackHistos > | fAllTracks |
Track histograms for all tracks. More... | |
std::vector< std::array < TrackHistos, Cuts::nCuts > > | fPrimaryTracks |
Track histograms for priamry tracks in a candidate neutrino interaction. More... | |
std::vector< std::vector < std::array< TrackProfiles, Cuts::nCuts > > > | fPrimaryTrackProfiles |
Profile histograms for primary tracks. More... | |
std::array< CosmicHistos, 4 > | fCosmic |
std::array< CRTHistos, Cuts::nCuts > | fCRTs |
Public Attributes inherited from ana::SBNOsc::HistoList | |
std::vector< TH1 * > | fAllHistos |
std::vector< TDirectory * > | fLocations |
Static Public Attributes | |
static const unsigned | nHistos = Cuts::nCuts + Cuts::nTruthCuts |
static const unsigned | nModes = 8 |
number of interaction modes More... | |
static constexpr numu::InteractionMode | allModes [nModes] |
List of all interaction modes. More... | |
static constexpr std::array < const char *, nHistos > | histoNames = concat(Cuts::truthCutNames, Cuts::cutNames) |
Names of histograms. More... | |
Set of Track and Interaction histos for all modes/cuts/sub-types
Definition at line 46 of file Histograms.h.
void ana::SBNOsc::Histograms::Fill | ( | const numu::RecoEvent & | event, |
const event::Event & | core, | ||
const Cuts & | cutmaker, | ||
const std::vector< numu::TrackSelector > & | selectors, | ||
const std::vector< numu::TrackFunction > & | xfunctions, | ||
bool | fill_all_tracks = true |
||
) |
Fill all of the histograms with an event
event | The reconstructed event information |
core | The sbncode core event information |
cuts | The configured Cuts classes |
fill_all_tracks | Whether to fill all track histograms or just the primary track histograms |
Definition at line 14 of file Histograms.cc.
void ana::SBNOsc::Histograms::Initialize | ( | const geo::GeometryCore * | geometry, |
const sbnd::CRTGeoAlg & | crt_geo, | ||
const Cuts & | cuts, | ||
const std::string & | prefix, | ||
const std::vector< std::string > & | track_histo_types, | ||
const std::vector< std::string > & | track_profile_types, | ||
const std::vector< std::tuple< unsigned, float, float >> & | track_profile_xranges | ||
) |
Definition at line 111 of file Histograms.cc.
|
inlinestatic |
Turn the InteractionMode enum into a string for (e.g.) histogram names.
mode | The interaction mode to be converted |
Definition at line 78 of file Histograms.h.
|
static |
std::vector<TrackHistos> ana::SBNOsc::Histograms::fAllTracks |
Track histograms for all tracks.
Definition at line 105 of file Histograms.h.
std::array<CosmicHistos, 4> ana::SBNOsc::Histograms::fCosmic |
Definition at line 108 of file Histograms.h.
std::array<CRTHistos, Cuts::nCuts> ana::SBNOsc::Histograms::fCRTs |
Definition at line 110 of file Histograms.h.
InteractionHistos ana::SBNOsc::Histograms::fInteraction[nHistos][nModes] |
all the interaction histograms
Definition at line 104 of file Histograms.h.
std::vector<std::vector<std::array<TrackProfiles, Cuts::nCuts> > > ana::SBNOsc::Histograms::fPrimaryTrackProfiles |
Profile histograms for primary tracks.
Definition at line 107 of file Histograms.h.
std::vector<std::array<TrackHistos, Cuts::nCuts> > ana::SBNOsc::Histograms::fPrimaryTracks |
Track histograms for priamry tracks in a candidate neutrino interaction.
Definition at line 106 of file Histograms.h.
|
static |
Names of histograms.
Definition at line 102 of file Histograms.h.
|
static |
Definition at line 91 of file Histograms.h.
|
static |
number of interaction modes
Definition at line 92 of file Histograms.h.