Classes | Typedefs | Enumerations | Functions | Variables
cmf Namespace Reference

Module to combine a set of results into a single file currently only does one data product type at a time. More...

Classes

class  CAFToEventList
 
class  ChiSqrCalculator
 
struct  ChiSqrInfo
 
class  CMFCappedEventList
 
class  CMFDecorrelator
 
class  CMFSpectraMaker
 
class  CombineResults
 
class  ContourFromGrid
 
class  ContourFromLibrary
 
class  CovarianceBinUtility
 
class  CovarianceFitHelper
 
class  CovarianceMatrixFitter
 
class  CovarianceMatrixMaker
 
class  CovarianceTools
 
struct  CovFitIteration
 
struct  DataVars
 
class  DataVarVals
 Base container for the MC related Vars that constitute an event. More...
 
struct  DetBeamBins
 
class  DSTToEventList
 
class  Event
 
class  EventId
 
class  EventList
 
class  EventListManipulator
 
class  FakeUniverse
 
class  FCResultCollection
 
class  FCUniverseCollection
 
struct  FileExtracts
 
class  FitFeldmanCousinsPoint
 
class  GridPoint
 
class  GridPointsBestFit
 
struct  HiddenParameterConfig
 
class  InputPoint
 
class  Location
 
class  MCVarVals
 Base container for the MC related Vars that constitute an event. More...
 
struct  MetaData
 
struct  MetaDataLite
 
class  OscPar
 
class  OscParamPoint
 
class  Parameter
 
class  ParameterSpaceLoc
 
class  ParameterUtility
 
struct  PeriodRun
 
class  PlotUtilities
 
class  PointBestFit
 
class  PointResult
 
class  PointSpectra
 
struct  POTLiveTime
 
class  PredictionLibraryMaker
 
class  RandomUniverses
 
class  RandomUniverseUtility
 
class  SelectionUtility
 
class  ShifterAndWeighter
 
class  SpectraFromPredictions
 
class  SpectrumPredictionMaker
 
struct  SpillSummary
 
struct  SubMatrixData
 
class  SystPar
 
struct  SystVar
 
struct  TruthVars
 
class  UniversePointBestFits
 
struct  WeightVars
 

Typedefs

typedef std::unique_ptr< EventEventPtr
 
typedef std::vector< EventPtrEventContainer
 
typedef std::vector< cmf::EventListEventListColl
 
typedef std::vector< cmf::SystVarSystVarColl
 
typedef enum cmf::det_type DetType_t
 
typedef enum cmf::beam_type BeamType_t
 
typedef enum cmf::chisqr_type ChiSqrCalc_t
 
typedef enum cmf::sel_type SelectionType_t
 
typedef enum cmf::interaction_type InteractionType_t
 
typedef enum cmf::file_type FileType_t
 
typedef enum cmf::osc_params OscParm_t
 
typedef enum cmf::calc_type CalcType_t
 
typedef enum cmf::covmat_type CovMat_t
 
typedef enum cmf::cont_type ContourType_t
 
typedef enum cmf::dataMC_type DataMC_t
 
typedef enum cmf::par_type ParType_t
 
typedef enum cmf::weight_type WeightType_t
 
typedef std::pair< std::string, cmf::DetType_tParameterDet
 
typedef std::pair< cmf::DetType_t, cmf::BeamType_tDetBeamPair
 
typedef std::vector< double > Spectrum
 
typedef std::map< double, double > ParamChiSqr
 
typedef std::map< cmf::OscParm_t, float > OscillationParameterMap
 
typedef std::vector< cmf::FakeUniverseFakeUniColl
 
typedef std::map< cmf::GridPoint, double > PointMap
 
typedef std::map< cmf::GridPoint, std::vector< double > > UniverseChiSqrMap
 
typedef std::map< cmf::MetaData, cmf::SpillSummaryExposureMap
 

Enumerations

enum  det_type {
  kUnknownDet = 0, kNEARDET, kFARDET, kMINOSNEAR,
  kMINOSFAR, kALLDET
}
 
enum  beam_type { kFHC = 0, kRHC, k0HC, kUnknownBeam }
 
enum  chisqr_type {
  kCovMat = 0, kPoisson, kCNP, kGauss,
  kUnknownChiSqr
}
 
enum  sel_type {
  kNuESelection = 0, kNuESelectionLowPID, kNuESelectionMidPID, kNuESelectionHighPID,
  kNuESelectionPeripheral, kNuMuSelection, kNuMuSelectionQ1, kNuMuSelectionQ2,
  kNuMuSelectionQ3, kNuMuSelectionQ4, kNCSelection, kUnknownSelection
}
 
enum  interaction_type {
  kUnknownInteraction = 0, kNuMuCC, kNuMuBarCC, kNuECC,
  kNuEBarCC, kNuTauCC, kNuTauBarCC, kNC,
  kCosmicMuon, kRockMuon, kUncategorised
}
 
enum  file_type {
  kBeam =0, kSwap, kTauSwap, kDataFile,
  kCosmicBackgroundFile, kRockFluxSwap, kRockNonSwap, kNumFileTypes,
  kBadFileType, kUnknownFileType
}
 
enum  osc_params {
  kL = 0, kRho, kDmsq21, kDmsq32,
  kTh12, kTh13, kTh23, kdCP,
  kTh14, kTh24, kTh34, kDmsq41,
  kd24, kEps_ee, kEps_emu, kEps_etau,
  kEps_mumu, kEps_mutau, kEps_tautau, kDelta_emu,
  kDelta_etau, kDelta_mutau, kNumOscParams
}
 
enum  calc_type { kPMNS =0, kNSI, kSterile }
 
enum  covmat_type { kStatMatrix =0, kSystMatrix, kTotalMatrix }
 
enum  cont_type {
  kAsimovContour =0, kMedianContour, kFCContour, kDataContour,
  kUnknownContour
}
 
enum  dataMC_type { kData = 0, kMC, kFakeData, kBoth }
 
enum  varpar_type {
  kUnknownVar = 0, kNuE_CVN, kNuE_NumMichel, kNu_RecoE,
  kCMF_RecoE, kHad_RecoE, kLep_RecoE, kLep_RecoE_MCFrac,
  kRecoQ2, kFake_Weight, kTrueE, kTruePDG,
  kTrueCCNC, kTrueIntType, kTruePDGOrig, kTrueParentPDG,
  kTrueParentPT, kTrueParentPZ, kTrueParentDecay, kTrueParentTargetPDG,
  kTrueHitNuc, kTrueIntMode, kXSecCVPPFX_Weight, kXSecCV2020Wgt,
  kPPFXFluxCVWgt, kRPARES_Weight, kMinus2Sigma, kMinus1Sigma,
  kPlus1Sigma, kPlus2Sigma, kFirstSigmaVar, kMaCCRES =kFirstSigmaVar,
  kMvCCRES, kMaNCRES, kMvNCRES, kRPACCQEshapeEnh,
  kRPACCQEshapeSupp, kZNormCCQE, kZExpEV1Syst2020, kZExpEV2Syst2020,
  kZExpEV3Syst2020, kZExpEV4Syst2020, kRESLowQ2SuppSyst2020, khNFSISyst2020_MFP,
  khNFSISyst2020_EV1, kMECEnuShapeSyst2020Nu, kMECEnuShapeSyst2020AntiNu, kMECShapeSyst2020Nu,
  kMECShapeSyst2020AntiNu, kMECInitStateNPFracSyst2020Nu, kMECInitStateNPFracSyst2020AntiNu, kRadCorrNue,
  kRadCorrNuebar, k2ndClassCurrs, kTauScaleSyst, kDISvpCC0pi_2020,
  kDISvpCC1pi_2020, kDISvpCC2pi_2020, kDISvpCC3pi_2020, kDISvpNC0pi_2020,
  kDISvpNC1pi_2020, kDISvpNC2pi_2020, kDISvpNC3pi_2020, kDISvnCC0pi_2020,
  kDISvnCC1pi_2020, kDISvnCC2pi_2020, kDISvnCC3pi_2020, kDISvnNC0pi_2020,
  kDISvnNC1pi_2020, kDISvnNC2pi_2020, kDISvnNC3pi_2020, kDISvbarpCC0pi_2020,
  kDISvbarpCC1pi_2020, kDISvbarpCC2pi_2020, kDISvbarpCC3pi_2020, kDISvbarpNC0pi_2020,
  kDISvbarpNC1pi_2020, kDISvbarpNC2pi_2020, kDISvbarpNC3pi_2020, kDISvbarnCC0pi_2020,
  kDISvbarnCC1pi_2020, kDISvbarnCC2pi_2020, kDISvbarnCC3pi_2020, kDISvbarnNC0pi_2020,
  kDISvbarnNC1pi_2020, kDISvbarnNC2pi_2020, kDISvbarnNC3pi_2020, kFormZone_2020,
  khNFSISyst2020_EV2, khNFSISyst2020_EV3, kCOHCCScaleSyst2018, kCOHNCScaleSyst2018,
  kMaNCEL, kEtaNCEL, kAhtBY, kBhtBY,
  kCV1uBY, kCV2uBY, kAGKY_xF1pi, kAGKY_pT1pi,
  kBR1gamma, kBR1eta, kTheta_Delta2Npi, kFluxPCA00,
  kFluxPCA01, kFluxPCA02, kFluxPCA03, kFluxPCA04,
  kKaonSyst, kNorm_1Nux, kMeanQ0_1Nux, kMeanQ3_1Nux,
  kSigmaQ0_1Nux, kSigmaQ3_1Nux, kCorr_1Nux, kNorm_2Nux,
  kMeanQ0_2Nux, kMeanQ3_2Nux, kSigmaQ0_2Nux, kSigmaQ3_2Nux,
  kCorr_2Nux, kBaselineNux, kLastSigmaVar =kBaselineNux, kFirstNormalizationVar,
  kNormalizationPOT =kFirstNormalizationVar, kNormalizationNDMass, kNormalizationFDMass, kNormalizationML,
  kNormalizationFHCNuMuContext, kNormalizationRHCNuMuContext, kNormalizationFHCNuEContext, kNormalizationRHCNuEContext,
  kNormalizationFHCNCContext, kNormalizationRHCNCContext, kLastNormalizationVar =kNormalizationRHCNCContext, kFirstCalibrationVar,
  kLightModelND =kFirstCalibrationVar, kLightModelFD, kCherenkov, kAbsoluteCalibrationND,
  kAbsoluteCalibrationFD, kCalibShapeND, kCalibShapeFD, kDetectorAging,
  kLastCalibrationVar =kDetectorAging, kFirstEShiftVar, kUnCorrNDMuEScaleSyst2020 =kFirstEShiftVar, kUnCorrMuCatMuESyst2020,
  kPileupMuESyst2020, kCorrMuEScaleSyst2020, kNeutronVisEScalePrimariesSyst2018, kMichelTaggingSyst2020,
  kLastEShiftVar =kMichelTaggingSyst2020
}
 
enum  par_type {
  kOscPar = 0, kCMFSystPar, kCMFWeightPar, kCMFNormSystPar,
  kCalibSystPar, kEShiftSystPar, kOtherSystPar, kUnknownPar
}
 
enum  weight_type {
  kSystWgtOnly =0, kOscWgtOnly, kSystAndOscWgt, kAllWgt,
  kNoWgt
}
 
enum  minosRP {
  kRun1, kRunpHE, kRun2, kRun3,
  kRun4, kRun5, kRun6, kRun7,
  kRun9, kRun10, kRun11, kRun12,
  kRun13, kEnd
}
 

Functions

std::ostream & operator<< (std::ostream &o, cmf::Event const &event)
 
cmf::EventListColl::iterator FindEventList (cmf::MetaData const &md, cmf::EventListColl &eventListColl)
 
void SerializeEvents (TTree *eventTree, cmf::MetaData const &md, cmf::EventList const &events)
 
void SerializeEventListColl (std::string const &dirName, cmf::EventListColl const &listColl)
 
void FillSpectrumFromSingleList (cmf::EventList const &list, cmf::MetaData const &md, cmf::ExposureMap const &exposureMap, cmf::Spectrum &spectrum, cmf::Spectrum &count, bool applyExposureNorm)
 
void FillSpectrum (cmf::EventListColl const &eventLists, cmf::ExposureMap const &exposureMap, cmf::Spectrum &spectrum, cmf::Spectrum &count, cmf::InteractionType_t intType, bool applyExposureNorm)
 
void FillSpectrum (cmf::EventListColl const &eventLists, cmf::ExposureMap const &exposureMap, cmf::Spectrum &spectrum, cmf::Spectrum &count, bool applyExposureNorm)
 
std::ostream & operator<< (std::ostream &o, cmf::MCVarVals const &mcvv)
 
std::ostream & operator<< (std::ostream &o, cmf::SystVar const &sv)
 
std::ostream & operator<< (std::ostream &o, cmf::EventId const &evid)
 
std::ostream & operator<< (std::ostream &o, cmf::DataVarVals const &dvv)
 
static float RecoEnergy (float leptonicEnergy, float hadronicEnergy, cmf::MetaData const &md)
 
static float NuMuEnergy (float leptonicEnergy, float hadronicEnergy)
 
static float NuEEnergy (float leptonicEnergy, float hadronicEnergy, cmf::BeamType_t const &beamType)
 
static float NCEnergy (float leptonicEnergy, float hadronicEnergy, cmf::BeamType_t const &beamType, cmf::DetType_t const &detector)
 
const std::vector< std::stringcDetType_Strings ({"UnknownDet","NearDet","FarDet","MINOSNear","MINOSFar","AllDetectors"})
 
static const std::set< cmf::DetType_tcDetIds ({cmf::kNEARDET, cmf::kFARDET, cmf::kMINOSNEAR, cmf::kMINOSFAR})
 
static const std::set< cmf::BeamType_tcBeamTypes ({kFHC, kRHC})
 
const std::vector< std::stringcBeamType_Strings ({"FHC","RHC","0HC","UnknownBeam"})
 
const std::vector< std::stringcBeamType_LatexStrings ({"FHC","RHC","0HC""Unknown Beam"})
 
const std::vector< std::stringcChiSqrCalcType_Strings ({"CovMat","Poisson","CNP","Gauss","UnknownChiSqr"})
 
const std::vector< std::stringcSelectionType_Strings ({"NuESel_AllPID","NuESel_LowPID","NuESel_MidPID","NuESel_HighPID","NuESel_Peripheral","NuMuSel","NuMuSelQ1","NuMuSelQ2","NuMuSelQ3","NuMuSelQ4","NCSel","UnknownSel"})
 
const std::vector< std::stringcSelectionType_LatexStrings ({"#nu_{e} Selection","#nu_{e} Selection - Low PID","#nu_{e} Selection - Mid PID","#nu_{e} Selection - High PID","#nu_{e} Selection - Peripheral","#nu_{#mu} Selection","#nu_{#mu} Selection - Quantile 1","#nu_{#mu} Selection - Quantile 2","#nu_{#mu} Selection - Quantile 3","#nu_{#mu} Selection - Quantile 4","NC Selection","Unknown Selection"})
 
const std::vector< std::stringcInteractionType_LatexStrings ({"Unknown Interaction","#nu_{#mu} CC","#bar{#nu}_{#mu} CC","#nu_{e} CC","#bar{#nu}_{e} CC","#nu_{#tau} CC","#bar{#nu}_{#tau} CC","NC","Cosmic Muon","Rock Muon","Uncategorised Interaction"})
 
const std::vector< std::stringcInteractionType_Strings ({"UnknownInteraction","NuMuCC","NuMuBarCC","NuECC","NuEBarCC","NuTauCC","NuTauBarCC","NC","CosmicMuon","RockMuon","UncategorisedInteraction"})
 
const std::vector< std::stringcFileTypeStrings ({"Beam","FluxSwap","TauSwap","Data","CosmicBackground","RockFluxSwap","RockNonSwap","num_file_types","bad_file_type","UnknownFileType"})
 
const std::vector< std::stringcFileTypeStrings_Latex ({"Beam","Flux Swap","#tau Swap","Data","Cosmic #mu Background","Rock Flux Swap #mu Background","Rock Non Swap #mu Background","num_file_types","bad_file_type","none_set"})
 
const std::vector< double > cOscParams_Scales ({1., 1., 1.e5, 1.e3, 1., 1., 1., 1./3.14159, 1., 1., 1., 1., 1./3.14159, 1., 1., 1., 1., 1., 1., 1., 1., 1.})
 
const std::vector< std::stringcOscParams_LatexScales ({" (m)"," (g/cc)"," (#times10^{-5} eV^{2})"," (#times10^{-3} eV^{2})","","",""," (#pi rad)","","","","(eV^{2})"," (#pi rad)","","","","","","","","",""})
 
const std::vector< std::stringcOscParams_Strings ({"L","Rho","Dmsq21","Dmsq32","Th12","Th13","Th23","dCP","Th14","Th24","Th34","Dmsq41","d24","Eps_ee","Eps_emu","Eps_etau","Eps_mumu","Eps_mutau","Eps_tautau","Delta_emu","Delta_etau","Delta_mutau"})
 
const std::vector< std::stringcOscParams_Strings_Latex ({"L","#rho","#Delta m^{2}_{21}","#Delta m^{2}_{32}","#theta_{12}","#theta_{13}","#theta_{23}","#delta_{CP}","#theta_{14}","#theta_{24}","#theta_{34}","#Delta m^{2}_{41}","#delta_{24}","#epsilon_{ee}","#epsilon_{e#mu}","#epsilon_{e#tau}","#epsilon_{#mu#mu}","#epsilon_{#mu#tau}","#epsilon_{#tau#tau}","#delta_{e#mu}","#delta_{e#tau}","#delta_{#mu#tau}"})
 
const std::vector< std::stringcContourTypeStrings ({"Asimov","Median","Feldman-Cousins","Data","UnknownContour"})
 
static std::vector< std::stringcDataTypeStrings ({"Data","MC","FakeData","Data and MC"})
 
static const std::map< std::string, uint8_t > kVarNameToKey ({{"NuE_CVN", cmf::kNuE_CVN},{"NuE_NumMichel", cmf::kNuE_NumMichel},{"Had_RecoE", cmf::kHad_RecoE},{"Lep_RecoE", cmf::kLep_RecoE},{"Nu_RecoE", cmf::kNu_RecoE},{"Lep_RecoE_MCFrac", cmf::kLep_RecoE_MCFrac},{"Reco_Q2", cmf::kRecoQ2},{"Fake_Weight", cmf::kFake_Weight},{"TrueE", cmf::kTrueE},{"TruePDG", cmf::kTruePDG},{"TrueCCNC", cmf::kTrueCCNC},{"TrueIntType", cmf::kTrueIntType},{"TruePDGOrig", cmf::kTruePDGOrig},{"TrueParentPDG", cmf::kTrueParentPDG},{"TrueParentPT", cmf::kTrueParentPT},{"TrueParentPZ", cmf::kTrueParentPZ},{"TrueParentDecay", cmf::kTrueParentDecay},{"TrueParentTargetPDG", cmf::kTrueParentTargetPDG},{"TrueHitNuc", cmf::kTrueHitNuc},{"TrueIntMode", cmf::kTrueIntMode},{"XsecCV2020", cmf::kXSecCV2020Wgt},{"PPFXFluxCV", cmf::kPPFXFluxCVWgt},{"RPARES", cmf::kRPARES_Weight},{"UnCorrNDMuEScaleSyst2020", cmf::kUnCorrNDMuEScaleSyst2020},{"UnCorrMuCatMuESyst2020", cmf::kUnCorrMuCatMuESyst2020},{"PileupMuESyst2020", cmf::kPileupMuESyst2020},{"CorrMuEScaleSyst2020", cmf::kCorrMuEScaleSyst2020},{"NeutronEvisPrimariesSyst2018", cmf::kNeutronVisEScalePrimariesSyst2018},{"MichelTaggingSyst2020", cmf::kMichelTaggingSyst2020},{"llND", cmf::kLightModelND},{"llFD", cmf::kLightModelFD},{"cherenkov", cmf::kCherenkov},{"calibND", cmf::kAbsoluteCalibrationND},{"calibFD", cmf::kAbsoluteCalibrationFD},{"calibshapeND", cmf::kCalibShapeND},{"calibshapeFD", cmf::kCalibShapeFD},{"detectoraging", cmf::kDetectorAging},{"NormalizationPOT", cmf::kNormalizationPOT},{"NormalizationNDMass", cmf::kNormalizationNDMass},{"NormalizationFDMass", cmf::kNormalizationFDMass},{"NormalizationML", cmf::kNormalizationML},{"NormalizationFHCNuMuContext", cmf::kNormalizationFHCNuMuContext},{"NormalizationRHCNuMuContext", cmf::kNormalizationRHCNuMuContext},{"NormalizationFHCNuEContext", cmf::kNormalizationFHCNuEContext},{"NormalizationRHCNuEContext", cmf::kNormalizationRHCNuEContext},{"NormalizationFHCNCContext", cmf::kNormalizationFHCNCContext},{"NormalizationRHCNCContext", cmf::kNormalizationRHCNCContext},{"MaNCEL", cmf::kMaNCEL},{"EtaNCEL", cmf::kEtaNCEL},{"AhtBY", cmf::kAhtBY},{"BhtBY", cmf::kBhtBY},{"CV1uBY", cmf::kCV1uBY},{"CV2uBY", cmf::kCV2uBY},{"AGKY_xF1pi", cmf::kAGKY_xF1pi},{"AGKY_pT1pi", cmf::kAGKY_pT1pi},{"BR1gamma", cmf::kBR1gamma},{"BR1eta", cmf::kBR1eta},{"Theta_Delta2Npi", cmf::kTheta_Delta2Npi},{"MvCCRES", cmf::kMvCCRES},{"MaCCRES", cmf::kMaCCRES},{"MvNCRES", cmf::kMvNCRES},{"MaNCRES", cmf::kMaNCRES},{"RPACCQEshapeEnh", cmf::kRPACCQEshapeEnh},{"RPACCQEshapeSupp", cmf::kRPACCQEshapeSupp},{"COHCCScale2018", cmf::kCOHCCScaleSyst2018},{"COHNCScale2018", cmf::kCOHNCScaleSyst2018},{"ZExpAxialFFSyst2020_eV1", cmf::kZExpEV1Syst2020},{"ZExpAxialFFSyst2020_eV2", cmf::kZExpEV2Syst2020},{"ZExpAxialFFSyst2020_eV3", cmf::kZExpEV3Syst2020},{"ZExpAxialFFSyst2020_eV4", cmf::kZExpEV4Syst2020},{"ZNormCCQE", cmf::kZNormCCQE},{"RESLowQ2SuppSyst2020", cmf::kRESLowQ2SuppSyst2020},{"hNFSISyst2020_MFP", cmf::khNFSISyst2020_MFP},{"hNFSISyst2020_EV1", cmf::khNFSISyst2020_EV1},{"MECEnuShapeSyst2020Nu", cmf::kMECEnuShapeSyst2020Nu},{"MECEnuShapeSyst2020AntiNu", cmf::kMECEnuShapeSyst2020AntiNu},{"MECShapeSyst2020Nu", cmf::kMECShapeSyst2020Nu},{"MECShapeSyst2020AntiNu", cmf::kMECShapeSyst2020AntiNu},{"MECInitStateNPFracSyst2020Nu", cmf::kMECInitStateNPFracSyst2020Nu},{"MECInitStateNPFracSyst2020AntiNu", cmf::kMECInitStateNPFracSyst2020AntiNu},{"RadCorrNue", cmf::kRadCorrNue},{"RadCorrNuebar", cmf::kRadCorrNuebar},{"2ndClassCurrs", cmf::k2ndClassCurrs},{"Norm_1Nux", cmf::kNorm_1Nux},{"MeanQ0_1Nux", cmf::kMeanQ0_1Nux},{"MeanQ3_1Nux", cmf::kMeanQ3_1Nux},{"SigmaQ0_1Nux", cmf::kSigmaQ0_1Nux},{"SigmaQ3_1Nux", cmf::kSigmaQ3_1Nux},{"Corr_1Nux", cmf::kCorr_1Nux},{"Norm_2Nux", cmf::kNorm_2Nux},{"MeanQ0_2Nux", cmf::kMeanQ0_2Nux},{"MeanQ3_2Nux", cmf::kMeanQ3_2Nux},{"SigmaQ0_2Nux", cmf::kSigmaQ0_2Nux},{"SigmaQ3_2Nux", cmf::kSigmaQ3_2Nux},{"Corr_2Nux", cmf::kCorr_2Nux},{"BaselineNux", cmf::kBaselineNux},{"TauScaleSyst", cmf::kTauScaleSyst},{"DISvpCC0pi_2020", cmf::kDISvpCC0pi_2020},{"DISvpCC1pi_2020", cmf::kDISvpCC1pi_2020},{"DISvpCC2pi_2020", cmf::kDISvpCC2pi_2020},{"DISvpCC3pi_2020", cmf::kDISvpCC3pi_2020},{"DISvpNC0pi_2020", cmf::kDISvpNC0pi_2020},{"DISvpNC1pi_2020", cmf::kDISvpNC1pi_2020},{"DISvpNC2pi_2020", cmf::kDISvpNC2pi_2020},{"DISvpNC3pi_2020", cmf::kDISvpNC3pi_2020},{"DISvnCC0pi_2020", cmf::kDISvnCC0pi_2020},{"DISvnCC1pi_2020", cmf::kDISvnCC1pi_2020},{"DISvnCC2pi_2020", cmf::kDISvnCC2pi_2020},{"DISvnCC3pi_2020", cmf::kDISvnCC3pi_2020},{"DISvnNC0pi_2020", cmf::kDISvnNC0pi_2020},{"DISvnNC1pi_2020", cmf::kDISvnNC1pi_2020},{"DISvnNC2pi_2020", cmf::kDISvnNC2pi_2020},{"DISvnNC3pi_2020", cmf::kDISvnNC3pi_2020},{"DISvbarpCC0pi_2020", cmf::kDISvbarpCC0pi_2020},{"DISvbarpCC1pi_2020", cmf::kDISvbarpCC1pi_2020},{"DISvbarpCC2pi_2020", cmf::kDISvbarpCC2pi_2020},{"DISvbarpCC3pi_2020", cmf::kDISvbarpCC3pi_2020},{"DISvbarpNC0pi_2020", cmf::kDISvbarpNC0pi_2020},{"DISvbarpNC1pi_2020", cmf::kDISvbarpNC1pi_2020},{"DISvbarpNC2pi_2020", cmf::kDISvbarpNC2pi_2020},{"DISvbarpNC3pi_2020", cmf::kDISvbarpNC3pi_2020},{"DISvbarnCC0pi_2020", cmf::kDISvbarnCC0pi_2020},{"DISvbarnCC1pi_2020", cmf::kDISvbarnCC1pi_2020},{"DISvbarnCC2pi_2020", cmf::kDISvbarnCC2pi_2020},{"DISvbarnCC3pi_2020", cmf::kDISvbarnCC3pi_2020},{"DISvbarnNC0pi_2020", cmf::kDISvbarnNC0pi_2020},{"DISvbarnNC1pi_2020", cmf::kDISvbarnNC1pi_2020},{"DISvbarnNC2pi_2020", cmf::kDISvbarnNC2pi_2020},{"DISvbarnNC3pi_2020", cmf::kDISvbarnNC3pi_2020},{"FormZone_2020", cmf::kFormZone_2020},{"hNFSISyst2020_EV2", cmf::khNFSISyst2020_EV2},{"hNFSISyst2020_EV3", cmf::khNFSISyst2020_EV3},{"COHCCScaleSyst2018", cmf::kCOHCCScaleSyst2018},{"COHNCScaleSyst2018", cmf::kCOHNCScaleSyst2018},{"FluxPCA00", cmf::kFluxPCA00},{"FluxPCA01", cmf::kFluxPCA01},{"FluxPCA02", cmf::kFluxPCA02},{"FluxPCA03", cmf::kFluxPCA03},{"FluxPCA04", cmf::kFluxPCA04},{"KaonSyst", cmf::kKaonSyst},{"-2sigma", cmf::kMinus2Sigma},{"-1sigma", cmf::kMinus1Sigma},{"+1sigma", cmf::kPlus1Sigma},{"+2sigma", cmf::kPlus2Sigma}})
 
std::ostream & operator<< (std::ostream &o, cmf::FakeUniverse const &fu)
 
std::ostream & operator<< (std::ostream &o, cmf::GridPoint const &gp)
 
std::ostream & operator<< (std::ostream &o, cmf::OscParamPoint const &hpp)
 
std::ostream & operator<< (std::ostream &o, cmf::InputPoint const &ip)
 
std::ostream & operator<< (std::ostream &o, cmf::OscPar const &op)
 
std::ostream & operator<< (std::ostream &o, cmf::Parameter const &par)
 
std::ostream & operator<< (std::ostream &o, cmf::Location const &loc)
 
std::ostream & operator<< (std::ostream &o, cmf::PointResult const &pr)
 
static long DetectorTypeKey (cmf::DetType_t const &det)
 
static long PeriodKey (long const &ep)
 
static long FileTypeKey (cmf::FileType_t const &ft)
 
static long BeamTypeKey (cmf::BeamType_t const &bt)
 
static long SelectionTypeKey (cmf::SelectionType_t const &st)
 
static long InteractionTypeKey (cmf::InteractionType_t const &it)
 
static long DetectorBeamSelectionTypesToKey (cmf::DetType_t const &det, cmf::BeamType_t const &bt, cmf::SelectionType_t const &sel)
 
static cmf::DetType_t KeyToDetectorType (long const &key)
 
static int KeyToEpoch (long const &key)
 
static cmf::FileType_t KeyToFileType (long const &key)
 
static cmf::BeamType_t KeyToBeamType (long const &key)
 
static cmf::SelectionType_t KeyToSelectionType (long const &key)
 
static cmf::InteractionType_t KeyToInteractionType (long const &key)
 
static std::string KeyToString (long const &key)
 
static int BeamToPeriod (cmf::BeamType_t const &beam)
 
static cmf::SelectionType_t StringToSelectionType (std::string const &str)
 
static cmf::BeamType_t StringToBeamType (std::string const &str)
 
static cmf::DetType_t StringToDetectorType (std::string const &str)
 
static cmf::OscParm_t StringToOscParmType (std::string const &str)
 
static cmf::ChiSqrCalc_t StringToChiSqrType (std::string const &str)
 
static cmf::ContourType_t StringToContourType (std::string const &str)
 
static cmf::InteractionType_t StringToInteractionType (std::string const &str)
 
static cmf::BeamType_t PeriodToBeamType (std::string const &str)
 
static bool IsOscillationParameter (std::string const &str)
 
static bool IsAngleParameter (cmf::OscParm_t const &par)
 
static bool IsNuMuSelected (cmf::SelectionType_t const &sel)
 
static bool IsNuMuQuantiles (cmf::SelectionType_t const &sel)
 
static bool IsNuESelected (cmf::SelectionType_t const &sel)
 
static bool IsNCSelected (cmf::SelectionType_t const &sel)
 
static uint8_t VarNameToKey (std::string const &name)
 
static std::string KeyToVarName (uint8_t const &key)
 
static std::string OscParMapToString (cmf::OscillationParameterMap const &opm)
 
long StringToKey (std::string const &str)
 
long PeriodStringToInt (std::string const &epochStr)
 
std::ostream & operator<< (std::ostream &o, SpillSummary const &ss)
 
double FitFunction_ForROOT (const double *params)
 
void ParameterSetToLocation (fhicl::ParameterSet const &pset, cmf::DetType_t const &det, cmf::Location &loc)
 
template<class T >
static bool readSingleResult (art::Results const &r, std::string const &module, std::string const &instance, std::vector< T > &resvec)
 
template<class T >
static bool readVectorResults (art::Results const &r, std::string const &module, std::string const &instance, std::vector< T > &resvec, bool clearResVec=true)
 
template<class T >
static bool readVectorResults (art::Results const &r, std::string const &module, std::vector< T > &resvec, bool clearResVec=true)
 

Variables

static ShifterAndWeightergShifterAndWeighter = nullptr
 
static double gWeight
 
static double gNormalization
 
static float gLepE
 
static float gRecoE
 
static float gHadE
 
static int gBin
 
static int gOffset
 
static const double kGarbageDouble = std::numeric_limits<double>::max()
 
static const float kGarbageFloat = std::numeric_limits<float >::max()
 
static const uint8_t kNumSigmaSysts = kLastSigmaVar - kFirstSigmaVar + 1
 
static const uint8_t kNumCalibSysts = kLastCalibrationVar - kFirstCalibrationVar + 1
 
static const uint8_t kNumEShiftSysts = kLastEShiftVar - kFirstEShiftVar + 1
 
static const uint8_t kNumNormSysts = kLastNormalizationVar - kFirstNormalizationVar + 1
 
static CovarianceFitHelpergCovFitHelp = nullptr
 
std::unique_ptr< cmf::EventListCollgMCEventLists
 
std::unique_ptr< cmf::ExposureMapgExposureMap
 
std::unique_ptr< cmf::LocationgLoc
 
std::unique_ptr< std::vector< double > > gFFVals
 
std::unique_ptr< std::vector< std::string > > gFFNames
 
ROOT::Math::Minimizer * gFFMin
 
cmf::ChiSqrCalc_t gChiSqrCalc
 
double gMinChiSqr
 
int gMinStatus
 
static const double gPI = 3.141592653589793238462643383279502884
 
static SpectrumPredictionMakergLPU = nullptr
 
static ChiSqrCalculatorgChiSqrCalculator = nullptr
 
static CovarianceBinUtilitygCovBinUtil = nullptr
 
static ParameterUtilitygParUtil = nullptr
 
static PlotUtilitiesgPlotUtil = nullptr
 
static RandomUniverseUtilitygRUU = nullptr
 
static SelectionUtilitygSU = nullptr
 

Detailed Description

Module to combine a set of results into a single file currently only does one data product type at a time.

Create a set of Covariance matrices to be used in fits.

Use covariance matrices in fits.

Author
brebe.nosp@m.l@fn.nosp@m.al.go.nosp@m.v

Typedef Documentation

Definition at line 738 of file Constants.h.

typedef std::vector<EventPtr> cmf::EventContainer

Definition at line 92 of file Event.h.

typedef std::vector<cmf::EventList> cmf::EventListColl

Definition at line 150 of file Event.h.

typedef std::unique_ptr<Event> cmf::EventPtr

Definition at line 91 of file Event.h.

Definition at line 215 of file Structs.h.

typedef std::vector<cmf::FakeUniverse> cmf::FakeUniColl

Definition at line 14 of file FakeUniverse.h.

typedef std::map<cmf::OscParm_t, float > cmf::OscillationParameterMap

Definition at line 745 of file Constants.h.

typedef std::map<double, double> cmf::ParamChiSqr

Definition at line 744 of file Constants.h.

Definition at line 737 of file Constants.h.

typedef std::map<cmf::GridPoint, double> cmf::PointMap

Definition at line 44 of file GridPointResult.h.

typedef std::vector<double> cmf::Spectrum

Definition at line 743 of file Constants.h.

typedef std::vector<cmf::SystVar> cmf::SystVarColl

Definition at line 223 of file VarVals.h.

typedef std::map<cmf::GridPoint, std::vector<double> > cmf::UniverseChiSqrMap

Definition at line 45 of file GridPointResult.h.

Enumeration Type Documentation

Enumerator
kFHC 
kRHC 
k0HC 
kUnknownBeam 

Definition at line 45 of file Constants.h.

45  {
46  kFHC = 0,
47  kRHC,
48  k0HC,
50  } BeamType_t;
enum cmf::beam_type BeamType_t
Enumerator
kPMNS 
kNSI 
kSterile 

Definition at line 325 of file Constants.h.

325  {
326  kPMNS=0,
327  kNSI,
328  kSterile
329  } CalcType_t;
enum cmf::calc_type CalcType_t
Enumerator
kCovMat 
kPoisson 
kCNP 
kGauss 
kUnknownChiSqr 

Definition at line 66 of file Constants.h.

66  {
67  kCovMat = 0,
68  kPoisson,
69  kCNP,
70  kGauss,
72  } ChiSqrCalc_t;
enum cmf::chisqr_type ChiSqrCalc_t
Enumerator
kAsimovContour 
kMedianContour 
kFCContour 
kDataContour 
kUnknownContour 

Definition at line 341 of file Constants.h.

Enumerator
kStatMatrix 
kSystMatrix 
kTotalMatrix 

Definition at line 333 of file Constants.h.

333  {
334  kStatMatrix=0,
335  kSystMatrix,
337  }CovMat_t;
enum cmf::covmat_type CovMat_t
Enumerator
kData 
kMC 
kFakeData 
kBoth 

Definition at line 357 of file Constants.h.

357  {
358  kData = 0,
359  kMC,
360  kFakeData,
361  kBoth
362  } DataMC_t;
const Color_t kMC
enum cmf::dataMC_type DataMC_t
Enumerator
kUnknownDet 
kNEARDET 
kFARDET 
kMINOSNEAR 
kMINOSFAR 
kALLDET 

Definition at line 21 of file Constants.h.

21  {
22  kUnknownDet = 0,
23  kNEARDET,
24  kFARDET,
25  kMINOSNEAR,
26  kMINOSFAR,
27  kALLDET
28  }DetType_t;
enum cmf::det_type DetType_t
Enumerator
kBeam 
kSwap 
kTauSwap 
kDataFile 
kCosmicBackgroundFile 
kRockFluxSwap 
kRockNonSwap 
kNumFileTypes 
kBadFileType 
kUnknownFileType 

Definition at line 167 of file Constants.h.

Enumerator
kUnknownInteraction 
kNuMuCC 
kNuMuBarCC 
kNuECC 
kNuEBarCC 
kNuTauCC 
kNuTauBarCC 
kNC 
kCosmicMuon 
kRockMuon 
kUncategorised 

Definition at line 127 of file Constants.h.

Enumerator
kRun1 
kRunpHE 
kRun2 
kRun3 
kRun4 
kRun5 
kRun6 
kRun7 
kRun9 
kRun10 
kRun11 
kRun12 
kRun13 
kEnd 

Definition at line 51 of file CMFDSTToEventList_module.cc.

Enumerator
kL 
kRho 
kDmsq21 
kDmsq32 
kTh12 
kTh13 
kTh23 
kdCP 
kTh14 
kTh24 
kTh34 
kDmsq41 
kd24 
kEps_ee 
kEps_emu 
kEps_etau 
kEps_mumu 
kEps_mutau 
kEps_tautau 
kDelta_emu 
kDelta_etau 
kDelta_mutau 
kNumOscParams 

Definition at line 205 of file Constants.h.

Enumerator
kOscPar 
kCMFSystPar 
kCMFWeightPar 
kCMFNormSystPar 
kCalibSystPar 
kEShiftSystPar 
kOtherSystPar 
kUnknownPar 

Definition at line 716 of file Constants.h.

Enumerator
kNuESelection 
kNuESelectionLowPID 
kNuESelectionMidPID 
kNuESelectionHighPID 
kNuESelectionPeripheral 
kNuMuSelection 
kNuMuSelectionQ1 
kNuMuSelectionQ2 
kNuMuSelectionQ3 
kNuMuSelectionQ4 
kNCSelection 
kUnknownSelection 

Definition at line 82 of file Constants.h.

Enumerator
kUnknownVar 
kNuE_CVN 
kNuE_NumMichel 
kNu_RecoE 
kCMF_RecoE 
kHad_RecoE 
kLep_RecoE 
kLep_RecoE_MCFrac 
kRecoQ2 
kFake_Weight 
kTrueE 
kTruePDG 
kTrueCCNC 
kTrueIntType 
kTruePDGOrig 
kTrueParentPDG 
kTrueParentPT 
kTrueParentPZ 
kTrueParentDecay 
kTrueParentTargetPDG 
kTrueHitNuc 
kTrueIntMode 
kXSecCVPPFX_Weight 
kXSecCV2020Wgt 
kPPFXFluxCVWgt 
kRPARES_Weight 
kMinus2Sigma 
kMinus1Sigma 
kPlus1Sigma 
kPlus2Sigma 
kFirstSigmaVar 
kMaCCRES 
kMvCCRES 
kMaNCRES 
kMvNCRES 
kRPACCQEshapeEnh 
kRPACCQEshapeSupp 
kZNormCCQE 
kZExpEV1Syst2020 
kZExpEV2Syst2020 
kZExpEV3Syst2020 
kZExpEV4Syst2020 
kRESLowQ2SuppSyst2020 
khNFSISyst2020_MFP 
khNFSISyst2020_EV1 
kMECEnuShapeSyst2020Nu 
kMECEnuShapeSyst2020AntiNu 
kMECShapeSyst2020Nu 
kMECShapeSyst2020AntiNu 
kMECInitStateNPFracSyst2020Nu 
kMECInitStateNPFracSyst2020AntiNu 
kRadCorrNue 
kRadCorrNuebar 
k2ndClassCurrs 
kTauScaleSyst 
kDISvpCC0pi_2020 
kDISvpCC1pi_2020 
kDISvpCC2pi_2020 
kDISvpCC3pi_2020 
kDISvpNC0pi_2020 
kDISvpNC1pi_2020 
kDISvpNC2pi_2020 
kDISvpNC3pi_2020 
kDISvnCC0pi_2020 
kDISvnCC1pi_2020 
kDISvnCC2pi_2020 
kDISvnCC3pi_2020 
kDISvnNC0pi_2020 
kDISvnNC1pi_2020 
kDISvnNC2pi_2020 
kDISvnNC3pi_2020 
kDISvbarpCC0pi_2020 
kDISvbarpCC1pi_2020 
kDISvbarpCC2pi_2020 
kDISvbarpCC3pi_2020 
kDISvbarpNC0pi_2020 
kDISvbarpNC1pi_2020 
kDISvbarpNC2pi_2020 
kDISvbarpNC3pi_2020 
kDISvbarnCC0pi_2020 
kDISvbarnCC1pi_2020 
kDISvbarnCC2pi_2020 
kDISvbarnCC3pi_2020 
kDISvbarnNC0pi_2020 
kDISvbarnNC1pi_2020 
kDISvbarnNC2pi_2020 
kDISvbarnNC3pi_2020 
kFormZone_2020 
khNFSISyst2020_EV2 
khNFSISyst2020_EV3 
kCOHCCScaleSyst2018 
kCOHNCScaleSyst2018 
kMaNCEL 
kEtaNCEL 
kAhtBY 
kBhtBY 
kCV1uBY 
kCV2uBY 
kAGKY_xF1pi 
kAGKY_pT1pi 
kBR1gamma 
kBR1eta 
kTheta_Delta2Npi 
kFluxPCA00 
kFluxPCA01 
kFluxPCA02 
kFluxPCA03 
kFluxPCA04 
kKaonSyst 
kNorm_1Nux 
kMeanQ0_1Nux 
kMeanQ3_1Nux 
kSigmaQ0_1Nux 
kSigmaQ3_1Nux 
kCorr_1Nux 
kNorm_2Nux 
kMeanQ0_2Nux 
kMeanQ3_2Nux 
kSigmaQ0_2Nux 
kSigmaQ3_2Nux 
kCorr_2Nux 
kBaselineNux 
kLastSigmaVar 
kFirstNormalizationVar 
kNormalizationPOT 
kNormalizationNDMass 
kNormalizationFDMass 
kNormalizationML 
kNormalizationFHCNuMuContext 
kNormalizationRHCNuMuContext 
kNormalizationFHCNuEContext 
kNormalizationRHCNuEContext 
kNormalizationFHCNCContext 
kNormalizationRHCNCContext 
kLastNormalizationVar 
kFirstCalibrationVar 
kLightModelND 
kLightModelFD 
kCherenkov 
kAbsoluteCalibrationND 
kAbsoluteCalibrationFD 
kCalibShapeND 
kCalibShapeFD 
kDetectorAging 
kLastCalibrationVar 
kFirstEShiftVar 
kUnCorrNDMuEScaleSyst2020 
kUnCorrMuCatMuESyst2020 
kPileupMuESyst2020 
kCorrMuEScaleSyst2020 
kNeutronVisEScalePrimariesSyst2018 
kMichelTaggingSyst2020 
kLastEShiftVar 

Definition at line 374 of file Constants.h.

374  {
375  kUnknownVar = 0,
376 
377  // Data info - kFake_Weight is in this group because it only applies to fake data
378  // kNu_RecoE - the reconstructed energy directly from the CAFs
379  // kCMF_RecoE - the reconstructed energy using Energy Estimators in CMF
380  kNuE_CVN,
382  kNu_RecoE,
383  kCMF_RecoE,
384  kHad_RecoE,
385  kLep_RecoE,
387  kRecoQ2,
388  kFake_Weight,
389 
390  // Truth information
391  kTrueE,
392  kTruePDG,
393  kTrueCCNC,
394  kTrueIntType,
395  kTruePDGOrig,
401  kTrueHitNuc,
402  kTrueIntMode,
403 
404  // MC Reweighting info
409 
410  // Systematic uncertainties where we store -2, -1, +1, +2 sigma values
411  kMinus2Sigma,
412  kMinus1Sigma,
413  kPlus1Sigma,
414  kPlus2Sigma,
415 
416  // other systematics
419  kMvCCRES,
420  kMaNCRES,
421  kMvNCRES,
424 
425  // new for 2020
426  kZNormCCQE,
440  kRadCorrNue,
481  kMaNCEL,
482  kEtaNCEL,
483  kAhtBY,
484  kBhtBY,
485  kCV1uBY,
486  kCV2uBY,
487  kAGKY_xF1pi,
488  kAGKY_pT1pi,
489  kBR1gamma,
490  kBR1eta,
492  kFluxPCA00,
493  kFluxPCA01,
494  kFluxPCA02,
495  kFluxPCA03,
496  kFluxPCA04,
497  kKaonSyst,
498 
499  // nux MEC systs
500  kNorm_1Nux,
501  kMeanQ0_1Nux,
502  kMeanQ3_1Nux,
505  kCorr_1Nux,
506  kNorm_2Nux,
507  kMeanQ0_2Nux,
508  kMeanQ3_2Nux,
511  kCorr_2Nux,
512  kBaselineNux,
514 
515  // anything below this point can be safely modified
516  // without disturbing current event lists, since they either
517  // -- come from files
518  // -- are calculated on the fly
519 
520  // norm syst
533 
534  // calibration related uncertainties
538  kCherenkov,
545 
546  // other E-shift systematics
554  kLastEShiftVar=kMichelTaggingSyst2020
555 
556  };
Enumerator
kSystWgtOnly 
kOscWgtOnly 
kSystAndOscWgt 
kAllWgt 
kNoWgt 

Definition at line 727 of file Constants.h.

727  {
728  kSystWgtOnly=0,
729  kOscWgtOnly,
731  kAllWgt,
732  kNoWgt
733  } WeightType_t;
enum cmf::weight_type WeightType_t

Function Documentation

static int cmf::BeamToPeriod ( cmf::BeamType_t const &  beam)
inlinestatic

Definition at line 239 of file StaticFuncs.h.

References kFHC, and kRHC.

Referenced by InteractionTypeKey(), and cmf::SelectionUtility::SelectionsToUseAsMetaData().

240 {
241  if (beam == cmf::kFHC) return 1;
242  else if(beam == cmf::kRHC) return 4;
243 
244  return 0;
245 }
static long cmf::BeamTypeKey ( cmf::BeamType_t const &  bt)
inlinestatic

Definition at line 18 of file StaticFuncs.h.

Referenced by cmf::MetaData::BeamTypeKey(), DetectorBeamSelectionTypesToKey(), KeyToInteractionType(), and KeyToSelectionType().

18 { return (bt + 1) * 10000; }
const std::vector<std::string> cmf::cBeamType_LatexStrings ( {"FHC","RHC","0HC""Unknown Beam"}  )
const std::vector<std::string> cmf::cBeamType_Strings ( {"FHC","RHC","0HC","UnknownBeam"}  )
static const std::set<cmf::BeamType_t> cmf::cBeamTypes ( {kFHC, kRHC )
static
const std::vector<std::string> cmf::cChiSqrCalcType_Strings ( {"CovMat","Poisson","CNP","Gauss","UnknownChiSqr"}  )
const std::vector<std::string> cmf::cContourTypeStrings ( {"Asimov","Median","Feldman-Cousins","Data","UnknownContour"}  )

Referenced by StringToDetectorType().

static std::vector<std::string> cmf::cDataTypeStrings ( {"Data","MC","FakeData","Data and MC"}  )
static
static const std::set<cmf::DetType_t> cmf::cDetIds ( {cmf::kNEARDET, cmf::kFARDET, cmf::kMINOSNEAR, cmf::kMINOSFAR )
static
const std::vector<std::string> cmf::cDetType_Strings ( {"UnknownDet","NearDet","FarDet","MINOSNear","MINOSFar","AllDetectors"}  )
const std::vector<std::string> cmf::cFileTypeStrings ( {"Beam","FluxSwap","TauSwap","Data","CosmicBackground","RockFluxSwap","RockNonSwap","num_file_types","bad_file_type","UnknownFileType"}  )
const std::vector<std::string> cmf::cFileTypeStrings_Latex ( {"Beam","Flux Swap","#tau Swap","Data","Cosmic #mu Background","Rock Flux Swap #mu Background","Rock Non Swap #mu Background","num_file_types","bad_file_type","none_set"}  )
const std::vector<std::string> cmf::cInteractionType_LatexStrings ( {"Unknown Interaction","#nu_{#mu} CC","#bar{#nu}_{#mu} CC","#nu_{e} CC","#bar{#nu}_{e} CC","#nu_{#tau} CC","#bar{#nu}_{#tau} CC","NC","Cosmic Muon","Rock Muon","Uncategorised Interaction"}  )
const std::vector<std::string> cmf::cInteractionType_Strings ( {"UnknownInteraction","NuMuCC","NuMuBarCC","NuECC","NuEBarCC","NuTauCC","NuTauBarCC","NC","CosmicMuon","RockMuon","UncategorisedInteraction"}  )
const std::vector<std::string> cmf::cOscParams_LatexScales ( {" (m)"," (g/cc)"," (#times10^{-5} eV^{2})"," (#times10^{-3} eV^{2})","","",""," (#pi rad)","","","","(eV^{2})"," (#pi rad)","","","","","","","","",""}  )
const std::vector<double> cmf::cOscParams_Scales ( {1., 1., 1.e5, 1.e3, 1., 1., 1., 1./3.14159, 1., 1., 1., 1., 1./3.14159, 1., 1., 1., 1., 1., 1., 1., 1., 1.}  )
const std::vector<std::string> cmf::cOscParams_Strings ( {"L","Rho","Dmsq21","Dmsq32","Th12","Th13","Th23","dCP","Th14","Th24","Th34","Dmsq41","d24","Eps_ee","Eps_emu","Eps_etau","Eps_mumu","Eps_mutau","Eps_tautau","Delta_emu","Delta_etau","Delta_mutau"}  )
const std::vector<std::string> cmf::cOscParams_Strings_Latex ( {"L","#rho","#Delta m^{2}_{21}","#Delta m^{2}_{32}","#theta_{12}","#theta_{13}","#theta_{23}","#delta_{CP}","#theta_{14}","#theta_{24}","#theta_{34}","#Delta m^{2}_{41}","#delta_{24}","#epsilon_{ee}","#epsilon_{e#mu}","#epsilon_{e#tau}","#epsilon_{#mu#mu}","#epsilon_{#mu#tau}","#epsilon_{#tau#tau}","#delta_{e#mu}","#delta_{e#tau}","#delta_{#mu#tau}"}  )
const std::vector<std::string> cmf::cSelectionType_LatexStrings ( {"#nu_{e} Selection","#nu_{e} Selection - Low PID","#nu_{e} Selection - Mid PID","#nu_{e} Selection - High PID","#nu_{e} Selection - Peripheral","#nu_{#mu} Selection","#nu_{#mu} Selection - Quantile 1","#nu_{#mu} Selection - Quantile 2","#nu_{#mu} Selection - Quantile 3","#nu_{#mu} Selection - Quantile 4","NC Selection","Unknown Selection"}  )
const std::vector<std::string> cmf::cSelectionType_Strings ( {"NuESel_AllPID","NuESel_LowPID","NuESel_MidPID","NuESel_HighPID","NuESel_Peripheral","NuMuSel","NuMuSelQ1","NuMuSelQ2","NuMuSelQ3","NuMuSelQ4","NCSel","UnknownSel"}  )
static long cmf::DetectorBeamSelectionTypesToKey ( cmf::DetType_t const &  det,
cmf::BeamType_t const &  bt,
cmf::SelectionType_t const &  sel 
)
inlinestatic
static long cmf::DetectorTypeKey ( cmf::DetType_t const &  det)
inlinestatic
static long cmf::FileTypeKey ( cmf::FileType_t const &  ft)
inlinestatic

Definition at line 17 of file StaticFuncs.h.

Referenced by cmf::MetaData::FileKey(), KeyToBeamType(), KeyToInteractionType(), KeyToSelectionType(), and StringToKey().

17 { return (ft + 1) * 100000; }
void cmf::FillSpectrum ( cmf::EventListColl const &  eventLists,
cmf::ExposureMap const &  exposureMap,
cmf::Spectrum spectrum,
cmf::Spectrum count,
cmf::InteractionType_t  intType,
bool  applyExposureNorm 
)

Definition at line 135 of file SpectrumTools.cxx.

References FillSpectrumFromSingleList(), cmf::CovarianceBinUtility::Instance(), and fetch_tb_beamline_files::md.

Referenced by cmf::CovarianceMatrixFitter::FillDataSpectrum(), cmf::CovarianceFitHelper::FillDataSpectrum(), cmf::CMFSpectraMaker::FillHistograms(), cmf::CovarianceFitHelper::FillMCSpectrum(), cmf::CovarianceMatrixMaker::FillSpectrum(), cmf::SpectrumPredictionMaker::MakePredictions(), cmf::CMFDecorrelator::writeResults(), and cmf::RandomUniverses::writeResults().

141  {
142 
143  // resize the spectrum if it is empty
144  if(spectrum.size() == 0){
145  spectrum.resize(cmf::CovarianceBinUtility::Instance()->TotalBins(), 0.);
146  count .resize(cmf::CovarianceBinUtility::Instance()->TotalBins(), 0.);
147  }
148 
149  // loop over each list and fill the spectrum
150  for(auto const& itr : eventLists){
151  auto const& md = itr.ListMetaData();
152 
153  if(md.interactionType != intType) continue;
154 
156  md,
157  exposureMap,
158  spectrum,
159  count,
160  applyExposureNorm);
161  } // end loop over lists of events
162 
163  }
void FillSpectrumFromSingleList(cmf::EventList const &list, cmf::MetaData const &md, cmf::ExposureMap const &exposureMap, cmf::Spectrum &spectrum, cmf::Spectrum &count, bool applyExposureNorm)
static CovarianceBinUtility * Instance()
void cmf::FillSpectrum ( cmf::EventListColl const &  eventLists,
cmf::ExposureMap const &  exposureMap,
cmf::Spectrum spectrum,
cmf::Spectrum count,
bool  applyExposureNorm 
)

Definition at line 166 of file SpectrumTools.cxx.

References FillSpectrumFromSingleList(), cmf::CovarianceBinUtility::Instance(), and fetch_tb_beamline_files::md.

171  {
172  // resize the spectrum if it is empty
173  if(spectrum.size() == 0){
174  spectrum.resize(cmf::CovarianceBinUtility::Instance()->TotalBins(), 0.);
175  count .resize(cmf::CovarianceBinUtility::Instance()->TotalBins(), 0.);
176  }
177 
178  // loop over each list and fill the spectrum
179  for(auto const& itr : eventLists){
180  auto const& md = itr.ListMetaData();
181 
183  md,
184  exposureMap,
185  spectrum,
186  count,
187  applyExposureNorm);
188  } // end loop over lists of events
189  }
void FillSpectrumFromSingleList(cmf::EventList const &list, cmf::MetaData const &md, cmf::ExposureMap const &exposureMap, cmf::Spectrum &spectrum, cmf::Spectrum &count, bool applyExposureNorm)
static CovarianceBinUtility * Instance()
void cmf::FillSpectrumFromSingleList ( cmf::EventList const &  list,
cmf::MetaData const &  md,
cmf::ExposureMap const &  exposureMap,
cmf::Spectrum spectrum,
cmf::Spectrum count,
bool  applyExposureNorm 
)

Definition at line 28 of file SpectrumTools.cxx.

References cmf::MetaData::detector, cmf::MetaData::DetectorBeamSelectionKey(), cmf::CovarianceBinUtility::EnergyToBin(), evt, cmf::MetaData::fileType, gBin, gNormalization, cmf::SpillSummary::goodPOT, gWeight, cmf::CovarianceBinUtility::Instance(), cmf::ShifterAndWeighter::Instance(), cmf::MetaData::isMC, kCMF_RecoE, kCosmicBackgroundFile, kDataFile, cmf::CovarianceBinUtility::KeyToOffset(), kHad_RecoE, kLep_RecoE, kUnknownInteraction, cmf::EventList::ListSpillSummary(), cmf::SpillSummary::liveTime, MF_LOG_DEBUG, cmf::MetaData::period, RecoEnergy(), cmf::MetaData::selectionType, cmf::MetaData::ToString(), and cmf::ShifterAndWeighter::Weight().

Referenced by FillSpectrum().

34  {
35 
36  // figure out the offset for this metadata
37  gOffset = cmf::CovarianceBinUtility::Instance()->KeyToOffset(md.DetectorBeamSelectionKey());
38 
39  if(!md.isMC){
40  // fill the spectrum
41  for(auto const& evt : list){
42  gLepE = evt->DataVals().val_at(cmf::kLep_RecoE, md);
43  gHadE = evt->DataVals().val_at(cmf::kHad_RecoE, md);
44 
46 
48 
49  ++spectrum[gBin];
50  ++count[gBin];
51  } // end loop over the events
52  } // end if looking at a data lists
53  else{
54 
55  // the exposure maps are stored for the data, not MC, so create
56  // a temporary md to get the proper exposure
57  cmf::MetaData tmpmd(false,
58  md.detector,
60  md.selectionType,
62  md.period);
63 
64  if (applyExposureNorm){
65  auto const exItr = exposureMap.find(cmf::MetaData(tmpmd));
66  if (md.fileType == kCosmicBackgroundFile){
67  gNormalization = (exItr != exposureMap.end()) ? exItr->second.liveTime : 0.;
68  gNormalization /= list.ListSpillSummary().liveTime;
69  }
70  else {
71  gNormalization = (exItr != exposureMap.end()) ? exItr->second.goodPOT : 0.;
72  gNormalization /= list.ListSpillSummary().goodPOT;
73  }
74 
75  MF_LOG_DEBUG("SpectrumTools")
76  << md.ToString()
77  << " bin offset: "
78  << gOffset
79  << " exposure "
80  << exItr->second.goodPOT
81  << " spill summary "
82  << list.ListSpillSummary().goodPOT
83  << " normalization "
84  << gNormalization;
85 
86  }
87  else gNormalization = 1;
88 
89  // fill the spectrum
90  for(auto const& evt : list){
91 
93  md);
94 
95  gRecoE = evt->DataVals().val_at(cmf::kCMF_RecoE, md);
96 
97  if(gRecoE < cmf::CovarianceBinUtility::Instance()->SelectionLowEdge(md) ) continue;
98 
100 
101  // if(std::isnan(gWeight))
102  // MF_LOG_VERBATIM("SpectrumTools")
103  // << "FillSpectrumFromSingleList "
104  // << md.ToString()
105  // << " "
106  // << md.IsCosmicMuon()
107  // << " "
108  // << evt->MCValsFilled()
109  // << " "
110  // << evt->DataVals().DataVars().fFake_Weight
111  // << " "
112  // << evt->DataVals().val_at(cmf::kFake_Weight, md)
113  // << " "
114  // << gLepE
115  // << " "
116  // << gHadE
117  // << " "
118  // << gRecoE
119  // << " "
120  // << gBin
121  // << " "
122  // << gWeight
123  // << " "
124  // << gNormalization;
125 
126  spectrum[gBin] += gNormalization * gWeight;
127  ++count[gBin];
128  } // end loop over events
129  } // end if looking at a MC event list
130 
131  }
int KeyToOffset(long const &key, bool allSels=false)
static double gNormalization
static float gRecoE
double Weight(cmf::EventPtr const &curEvent, cmf::MetaData const &md)
static double gWeight
int EnergyToBin(double const &energy, cmf::MetaData const &md)
static int gOffset
int evt
static ShifterAndWeighter * Instance()
static float RecoEnergy(float leptonicEnergy, float hadronicEnergy, cmf::MetaData const &md)
Definition: VarVals.h:317
static float gHadE
#define MF_LOG_DEBUG(id)
static float gLepE
static int gBin
static CovarianceBinUtility * Instance()
cmf::EventListColl::iterator cmf::FindEventList ( cmf::MetaData const &  md,
cmf::EventListColl eventListColl 
)

Definition at line 44 of file Event.cxx.

References fetch_tb_beamline_files::md.

Referenced by cmf::EventListManipulator::Deserialize(), cmf::DSTToEventList::endJob(), cmf::CAFToEventList::endJob(), cmf::DSTToEventList::InitializeEventListColls(), cmf::CAFToEventList::InitializeEventListColls(), and cmf::EventList::TotalEvents().

46  {
47  for(auto itr = eventListColl.begin(); itr < eventListColl.end(); ++itr){
48  if( itr->ListMetaData() == md) return itr;
49  }
50 
51  return eventListColl.end();
52  }
double cmf::FitFunction_ForROOT ( const double *  params)

Definition at line 50 of file CovarianceFitHelper.cxx.

References cmf::CovarianceFitHelper::AddIteration(), cmf::ChiSqrCalculator::ChiSqr(), cmf::CovarianceFitHelper::FillMCSpectrum(), MECModelEnuComparisons::i, cmf::ChiSqrCalculator::Instance(), cmf::ShifterAndWeighter::Instance(), cmf::CovarianceFitHelper::Instance(), IsAngleParameter(), MF_LOG_DEBUG, MF_LOG_VERBATIM, cet::pow(), cmf::ShifterAndWeighter::SetCurrentVals(), std::sin(), and StringToOscParmType().

Referenced by cmf::CovarianceFitHelper::InitializeMinimizer().

51  {
52  // debug
53  MF_LOG_VERBATIM("CovarianceFit") << "Processing guess: ";
54 
55  for(size_t i = 0; i < gFFVals->size(); ++i){
56  (*gFFVals)[i] = params[i];
57 
59  MF_LOG_VERBATIM("CovarianceFit")
60  << "\t"
61  << (*gFFNames)[i]
62  << " : "
63  << params[i]
64  << "; sin^2("
65  << (*gFFNames)[i]
66  << "): "
67  << std::pow(std::sin(params[i]), 2.);
68  else if ((*gFFNames)[i] == "dCP")
69  MF_LOG_VERBATIM("CovarianceFit")
70  << "\t"
71  << (*gFFNames)[i]
72  << " : "
73  << params[i]
74  << " = "
75  << params[i] / gPI
76  << " (pi)";
77  else
78  MF_LOG_VERBATIM("CovarianceFit")
79  << "\t"
80  << (*gFFNames)[i]
81  << " : "
82  << params[i];
83  }
84 
85  // Now update the ShifterAndWeighter to check the goodness of fit
87  gFFVals->data());
88 
89  MF_LOG_DEBUG("CovarianceMatrixFitter")
90  << "fill the MC spectrum with the new values";
91 
92  // fill the MC spectrum
94 
95  MF_LOG_DEBUG("CovarianceMatrixFitter")
96  << "get the new chi^2";
97 
98 
99  // Get Chisq
101  *gFFNames,
102  gFFVals->data());
103 
104  MF_LOG_DEBUG("CovarianceMatrixFitter")
105  << "add to the iterations";
106 
107  // store this iteration of the fitter
109  *gFFNames,
110  *gFFVals,
111  gChiSqrCalc);
112 
113  MF_LOG_VERBATIM("CovarianceFit")
114  << "\t"
115  << "FitValue = "
116  << chisq;
117 
118  // Return the fit value; that's what we're looking to minimize
119  return chisq;
120  }
constexpr T pow(T x)
Definition: pow.h:72
static bool IsAngleParameter(cmf::OscParm_t const &par)
Definition: StaticFuncs.h:354
static ShifterAndWeighter * Instance()
static cmf::ChiSqrCalculator * Instance()
double ChiSqr(cmf::ChiSqrCalc_t const &chiSqrCalc, std::vector< std::string > const &pars, const double *vals)
static CovarianceFitHelper * Instance()
void FillMCSpectrum(cmf::EventListColl const &eventLists)
std::unique_ptr< cmf::EventListColl > gMCEventLists
void AddIteration(double const &chi2, std::vector< std::string > const &pars, std::vector< double > const &vals, cmf::ChiSqrCalc_t const &chiSqrCalc=cmf::kCovMat)
T sin(T number)
Definition: d0nt_math.hpp:132
static const double gPI
#define MF_LOG_VERBATIM(category)
std::unique_ptr< std::vector< double > > gFFVals
#define MF_LOG_DEBUG(id)
cmf::ChiSqrCalc_t gChiSqrCalc
void SetCurrentVals(cmf::Location const &loc)
static cmf::OscParm_t StringToOscParmType(std::string const &str)
std::unique_ptr< std::vector< std::string > > gFFNames
static long cmf::InteractionTypeKey ( cmf::InteractionType_t const &  it)
inlinestatic
static bool cmf::IsAngleParameter ( cmf::OscParm_t const &  par)
inlinestatic
static bool cmf::IsNCSelected ( cmf::SelectionType_t const &  sel)
inlinestatic

Definition at line 387 of file StaticFuncs.h.

References kNCSelection.

Referenced by InteractionTypeKey(), cmf::PlotUtilities::MakeEnergySpectraFromBins(), and cmf::MetaData::Period().

388 {
389  return sel == cmf::kNCSelection;
390 }
static bool cmf::IsNuESelected ( cmf::SelectionType_t const &  sel)
inlinestatic
static bool cmf::IsNuMuQuantiles ( cmf::SelectionType_t const &  sel)
inlinestatic
static bool cmf::IsNuMuSelected ( cmf::SelectionType_t const &  sel)
inlinestatic
static bool cmf::IsOscillationParameter ( std::string const &  str)
static
static cmf::BeamType_t cmf::KeyToBeamType ( long const &  key)
inlinestatic

Definition at line 135 of file StaticFuncs.h.

References DetectorTypeKey(), mkDefs::fileType, FileTypeKey(), KeyToDetectorType(), KeyToEpoch(), KeyToFileType(), kUnknownBeam, kUnknownDet, kUnknownFileType, MF_LOG_DEBUG, and PeriodKey().

Referenced by cmf::CovarianceMatrixMaker::beginJob(), cmf::CovarianceBinUtility::BinToBeamType(), cmf::ChiSqrCalculator::FindReducedMatrixBin(), InteractionTypeKey(), KeyToInteractionType(), cmf::CovarianceBinUtility::KeyToOffset(), KeyToSelectionType(), KeyToString(), and cmf::PlotUtilities::MakeEnergySpectraFromBins().

136 {
137  auto detType = cmf::KeyToDetectorType(key);
139  auto epoch = cmf::KeyToEpoch(key);
140 
141  long tmpKey = key - cmf::PeriodKey(epoch);
142 
143  if(detType != cmf::kUnknownDet ) tmpKey -= cmf::DetectorTypeKey(detType);
145 
146  if(tmpKey < 10000) return cmf::kUnknownBeam;
147 
148  MF_LOG_DEBUG("StaticFuncs")
149  << "KeyToBeam: "
150  << key
151  << " "
152  << detType
153  << "/"
154  << cmf::DetectorTypeKey(detType)
155  << " "
156  << fileType
157  << "/"
159  << " "
160  << tmpKey
161  << " "
162  << (tmpKey / 10000) - 1;
163 
164 
165  return (cmf::BeamType_t)((tmpKey / 10000) - 1);
166 }
static long DetectorTypeKey(cmf::DetType_t const &det)
Definition: StaticFuncs.h:15
fileType
Definition: mkDefs.py:113
static cmf::DetType_t KeyToDetectorType(long const &key)
Definition: StaticFuncs.h:69
static long PeriodKey(long const &ep)
Definition: StaticFuncs.h:16
static cmf::FileType_t KeyToFileType(long const &key)
Definition: StaticFuncs.h:108
static int KeyToEpoch(long const &key)
Definition: StaticFuncs.h:83
static long FileTypeKey(cmf::FileType_t const &ft)
Definition: StaticFuncs.h:17
#define MF_LOG_DEBUG(id)
enum cmf::beam_type BeamType_t
static cmf::DetType_t cmf::KeyToDetectorType ( long const &  key)
inlinestatic
static int cmf::KeyToEpoch ( long const &  key)
inlinestatic

Definition at line 83 of file StaticFuncs.h.

References DetectorTypeKey(), findDuplicateFiles::key, KeyToDetectorType(), kUnknownDet, and MF_LOG_DEBUG.

Referenced by InteractionTypeKey(), KeyToBeamType(), KeyToFileType(), KeyToInteractionType(), KeyToSelectionType(), and KeyToString().

84 {
85  auto detType = cmf::KeyToDetectorType(key);
86 
87  long tmpKey = key;
88  if(detType != cmf::kUnknownDet) tmpKey -= cmf::DetectorTypeKey(detType);
89 
90  if(tmpKey < 10000000) return 0;
91 
92  MF_LOG_DEBUG("StaticFuncs")
93  << "KeyToEpoch: "
94  << key
95  << " "
96  << detType
97  << "/"
98  << cmf::DetectorTypeKey(detType)
99  << " "
100  << tmpKey
101  << " "
102  << (tmpKey / 10000000);
103 
104  return (tmpKey / 10000000);
105 }
static long DetectorTypeKey(cmf::DetType_t const &det)
Definition: StaticFuncs.h:15
static cmf::DetType_t KeyToDetectorType(long const &key)
Definition: StaticFuncs.h:69
#define MF_LOG_DEBUG(id)
static cmf::FileType_t cmf::KeyToFileType ( long const &  key)
inlinestatic

Definition at line 108 of file StaticFuncs.h.

References DetectorTypeKey(), KeyToDetectorType(), KeyToEpoch(), kUnknownDet, kUnknownFileType, MF_LOG_DEBUG, and PeriodKey().

Referenced by InteractionTypeKey(), KeyToBeamType(), KeyToInteractionType(), KeyToSelectionType(), and KeyToString().

109 {
110  auto detType = cmf::KeyToDetectorType(key);
111  auto epoch = cmf::KeyToEpoch(key);
112 
113  // if the epoch is not part of the key, KeyToEpoch returns 0
114  long tmpKey = key - cmf::PeriodKey(epoch);
115  if(detType != cmf::kUnknownDet) tmpKey -= cmf::DetectorTypeKey(detType);
116 
117  if(tmpKey < 100000) return cmf::kUnknownFileType;
118 
119  MF_LOG_DEBUG("StaticFuncs")
120  << "KeyToFile: "
121  << key
122  << " "
123  << detType
124  << "/"
125  << cmf::DetectorTypeKey(detType)
126  << " "
127  << tmpKey
128  << " "
129  << (tmpKey / 100000) - 1;
130 
131  return (cmf::FileType_t)((tmpKey / 100000) - 1);
132 }
static long DetectorTypeKey(cmf::DetType_t const &det)
Definition: StaticFuncs.h:15
static cmf::DetType_t KeyToDetectorType(long const &key)
Definition: StaticFuncs.h:69
static long PeriodKey(long const &ep)
Definition: StaticFuncs.h:16
static int KeyToEpoch(long const &key)
Definition: StaticFuncs.h:83
#define MF_LOG_DEBUG(id)
enum cmf::file_type FileType_t
static cmf::InteractionType_t cmf::KeyToInteractionType ( long const &  key)
inlinestatic

Definition at line 207 of file StaticFuncs.h.

References BeamTypeKey(), DetectorTypeKey(), mkDefs::fileType, FileTypeKey(), KeyToBeamType(), KeyToDetectorType(), KeyToEpoch(), KeyToFileType(), KeyToSelectionType(), kUnknownBeam, kUnknownDet, kUnknownFileType, kUnknownInteraction, kUnknownSelection, PeriodKey(), and SelectionTypeKey().

Referenced by InteractionTypeKey(), and KeyToString().

208 {
209  auto detType = cmf::KeyToDetectorType(key);
210  auto beamType = cmf::KeyToBeamType(key);
212  auto selType = cmf::KeyToSelectionType(key);
213  auto epoch = cmf::KeyToEpoch(key);
214 
215  long tmpKey = key - cmf::PeriodKey(epoch);
216  if(detType != cmf::kUnknownDet ) tmpKey -= cmf::DetectorTypeKey(detType);
217  if(beamType != cmf::kUnknownBeam ) tmpKey -= cmf::BeamTypeKey(beamType);
219  if(selType != cmf::kUnknownSelection) tmpKey -= cmf::SelectionTypeKey(selType);
220 
221  if(tmpKey < 1) return cmf::kUnknownInteraction;
222 
223  return (cmf::InteractionType_t)(tmpKey);
224 }
enum cmf::interaction_type InteractionType_t
static long SelectionTypeKey(cmf::SelectionType_t const &st)
Definition: StaticFuncs.h:19
static long DetectorTypeKey(cmf::DetType_t const &det)
Definition: StaticFuncs.h:15
static cmf::BeamType_t KeyToBeamType(long const &key)
Definition: StaticFuncs.h:135
fileType
Definition: mkDefs.py:113
static cmf::DetType_t KeyToDetectorType(long const &key)
Definition: StaticFuncs.h:69
static long PeriodKey(long const &ep)
Definition: StaticFuncs.h:16
static cmf::FileType_t KeyToFileType(long const &key)
Definition: StaticFuncs.h:108
static int KeyToEpoch(long const &key)
Definition: StaticFuncs.h:83
static long FileTypeKey(cmf::FileType_t const &ft)
Definition: StaticFuncs.h:17
static cmf::SelectionType_t KeyToSelectionType(long const &key)
Definition: StaticFuncs.h:169
static long BeamTypeKey(cmf::BeamType_t const &bt)
Definition: StaticFuncs.h:18
static cmf::SelectionType_t cmf::KeyToSelectionType ( long const &  key)
inlinestatic

Definition at line 169 of file StaticFuncs.h.

References BeamTypeKey(), DetectorTypeKey(), mkDefs::fileType, FileTypeKey(), KeyToBeamType(), KeyToDetectorType(), KeyToEpoch(), KeyToFileType(), kUnknownBeam, kUnknownDet, kUnknownFileType, kUnknownSelection, MF_LOG_DEBUG, and PeriodKey().

Referenced by cmf::CovarianceMatrixMaker::beginJob(), cmf::CovarianceBinUtility::BinToSelection(), cmf::ChiSqrCalculator::FindReducedMatrixBin(), InteractionTypeKey(), KeyToInteractionType(), cmf::CovarianceBinUtility::KeyToOffset(), KeyToString(), cmf::PlotUtilities::MakeEnergySpectraFromBins(), cmf::CovarianceBinUtility::SelectionBinToEnergy(), and cmf::CovarianceBinUtility::SelectionHighEdges().

170 {
171  auto detType = cmf::KeyToDetectorType(key);
172  auto beamType = cmf::KeyToBeamType(key);
174  auto epoch = cmf::KeyToEpoch(key);
175 
176  long tmpKey = key - cmf::PeriodKey(epoch);
177  if(detType != cmf::kUnknownDet ) tmpKey -= cmf::DetectorTypeKey(detType);
178  if(beamType != cmf::kUnknownBeam ) tmpKey -= cmf::BeamTypeKey(beamType);
180 
181  if(tmpKey < 100) return cmf::kUnknownSelection;
182 
183  MF_LOG_DEBUG("StaticFuncs")
184  << "KeyToSelection: "
185  << key
186  << " "
187  << detType
188  << "/"
189  << cmf::DetectorTypeKey(detType)
190  << " "
191  << beamType
192  << "/"
193  << cmf::BeamTypeKey(beamType)
194  << " "
195  << fileType
196  << "/"
198  << " "
199  << tmpKey
200  << " "
201  << (tmpKey / 100) - 1;
202 
203  return (cmf::SelectionType_t)((tmpKey / 100) - 1);
204 }
static long DetectorTypeKey(cmf::DetType_t const &det)
Definition: StaticFuncs.h:15
static cmf::BeamType_t KeyToBeamType(long const &key)
Definition: StaticFuncs.h:135
enum cmf::sel_type SelectionType_t
fileType
Definition: mkDefs.py:113
static cmf::DetType_t KeyToDetectorType(long const &key)
Definition: StaticFuncs.h:69
static long PeriodKey(long const &ep)
Definition: StaticFuncs.h:16
static cmf::FileType_t KeyToFileType(long const &key)
Definition: StaticFuncs.h:108
static int KeyToEpoch(long const &key)
Definition: StaticFuncs.h:83
static long FileTypeKey(cmf::FileType_t const &ft)
Definition: StaticFuncs.h:17
#define MF_LOG_DEBUG(id)
static long BeamTypeKey(cmf::BeamType_t const &bt)
Definition: StaticFuncs.h:18
static std::string cmf::KeyToString ( long const &  key)
inlinestatic

Definition at line 227 of file StaticFuncs.h.

References cBeamType_Strings(), cDetType_Strings(), cFileTypeStrings(), cInteractionType_Strings(), cSelectionType_Strings(), KeyToBeamType(), KeyToDetectorType(), KeyToEpoch(), KeyToFileType(), KeyToInteractionType(), KeyToSelectionType(), and art::to_string().

Referenced by cmf::CovarianceBinUtility::BinToEnergy(), cmf::EventListManipulator::Deserialize(), cmf::CovarianceBinUtility::FillOffsetAndBinMaps(), cmf::ChiSqrCalculator::FindReducedMatrixBin(), InteractionTypeKey(), and cmf::RandomUniverseUtility::PoissonSpectrumBinByBin().

228 {
230  "Period" +
236 }
const std::vector< std::string > cFileTypeStrings({"Beam","FluxSwap","TauSwap","Data","CosmicBackground","RockFluxSwap","RockNonSwap","num_file_types","bad_file_type","UnknownFileType"})
const std::vector< std::string > cDetType_Strings({"UnknownDet","NearDet","FarDet","MINOSNear","MINOSFar","AllDetectors"})
static cmf::InteractionType_t KeyToInteractionType(long const &key)
Definition: StaticFuncs.h:207
static cmf::BeamType_t KeyToBeamType(long const &key)
Definition: StaticFuncs.h:135
const std::vector< std::string > cInteractionType_Strings({"UnknownInteraction","NuMuCC","NuMuBarCC","NuECC","NuEBarCC","NuTauCC","NuTauBarCC","NC","CosmicMuon","RockMuon","UncategorisedInteraction"})
static cmf::DetType_t KeyToDetectorType(long const &key)
Definition: StaticFuncs.h:69
const std::vector< std::string > cSelectionType_Strings({"NuESel_AllPID","NuESel_LowPID","NuESel_MidPID","NuESel_HighPID","NuESel_Peripheral","NuMuSel","NuMuSelQ1","NuMuSelQ2","NuMuSelQ3","NuMuSelQ4","NCSel","UnknownSel"})
const std::vector< std::string > cBeamType_Strings({"FHC","RHC","0HC","UnknownBeam"})
static cmf::FileType_t KeyToFileType(long const &key)
Definition: StaticFuncs.h:108
static int KeyToEpoch(long const &key)
Definition: StaticFuncs.h:83
static cmf::SelectionType_t KeyToSelectionType(long const &key)
Definition: StaticFuncs.h:169
std::string to_string(ModuleType const mt)
Definition: ModuleType.h:34
static std::string cmf::KeyToVarName ( uint8_t const &  key)
inlinestatic

Definition at line 410 of file StaticFuncs.h.

References kVarNameToKey().

Referenced by InteractionTypeKey(), cmf::Parameter::Name(), operator<<(), cmf::DataVarVals::set_val_at(), and testSystematics().

411 {
412  for(auto const& itr : cmf::kVarNameToKey){
413  if(itr.second == key) return itr.first;
414  }
415  return "Unknown";
416 }
static const std::map< std::string, uint8_t > kVarNameToKey({{"NuE_CVN", cmf::kNuE_CVN},{"NuE_NumMichel", cmf::kNuE_NumMichel},{"Had_RecoE", cmf::kHad_RecoE},{"Lep_RecoE", cmf::kLep_RecoE},{"Nu_RecoE", cmf::kNu_RecoE},{"Lep_RecoE_MCFrac", cmf::kLep_RecoE_MCFrac},{"Reco_Q2", cmf::kRecoQ2},{"Fake_Weight", cmf::kFake_Weight},{"TrueE", cmf::kTrueE},{"TruePDG", cmf::kTruePDG},{"TrueCCNC", cmf::kTrueCCNC},{"TrueIntType", cmf::kTrueIntType},{"TruePDGOrig", cmf::kTruePDGOrig},{"TrueParentPDG", cmf::kTrueParentPDG},{"TrueParentPT", cmf::kTrueParentPT},{"TrueParentPZ", cmf::kTrueParentPZ},{"TrueParentDecay", cmf::kTrueParentDecay},{"TrueParentTargetPDG", cmf::kTrueParentTargetPDG},{"TrueHitNuc", cmf::kTrueHitNuc},{"TrueIntMode", cmf::kTrueIntMode},{"XsecCV2020", cmf::kXSecCV2020Wgt},{"PPFXFluxCV", cmf::kPPFXFluxCVWgt},{"RPARES", cmf::kRPARES_Weight},{"UnCorrNDMuEScaleSyst2020", cmf::kUnCorrNDMuEScaleSyst2020},{"UnCorrMuCatMuESyst2020", cmf::kUnCorrMuCatMuESyst2020},{"PileupMuESyst2020", cmf::kPileupMuESyst2020},{"CorrMuEScaleSyst2020", cmf::kCorrMuEScaleSyst2020},{"NeutronEvisPrimariesSyst2018", cmf::kNeutronVisEScalePrimariesSyst2018},{"MichelTaggingSyst2020", cmf::kMichelTaggingSyst2020},{"llND", cmf::kLightModelND},{"llFD", cmf::kLightModelFD},{"cherenkov", cmf::kCherenkov},{"calibND", cmf::kAbsoluteCalibrationND},{"calibFD", cmf::kAbsoluteCalibrationFD},{"calibshapeND", cmf::kCalibShapeND},{"calibshapeFD", cmf::kCalibShapeFD},{"detectoraging", cmf::kDetectorAging},{"NormalizationPOT", cmf::kNormalizationPOT},{"NormalizationNDMass", cmf::kNormalizationNDMass},{"NormalizationFDMass", cmf::kNormalizationFDMass},{"NormalizationML", cmf::kNormalizationML},{"NormalizationFHCNuMuContext", cmf::kNormalizationFHCNuMuContext},{"NormalizationRHCNuMuContext", cmf::kNormalizationRHCNuMuContext},{"NormalizationFHCNuEContext", cmf::kNormalizationFHCNuEContext},{"NormalizationRHCNuEContext", cmf::kNormalizationRHCNuEContext},{"NormalizationFHCNCContext", cmf::kNormalizationFHCNCContext},{"NormalizationRHCNCContext", cmf::kNormalizationRHCNCContext},{"MaNCEL", cmf::kMaNCEL},{"EtaNCEL", cmf::kEtaNCEL},{"AhtBY", cmf::kAhtBY},{"BhtBY", cmf::kBhtBY},{"CV1uBY", cmf::kCV1uBY},{"CV2uBY", cmf::kCV2uBY},{"AGKY_xF1pi", cmf::kAGKY_xF1pi},{"AGKY_pT1pi", cmf::kAGKY_pT1pi},{"BR1gamma", cmf::kBR1gamma},{"BR1eta", cmf::kBR1eta},{"Theta_Delta2Npi", cmf::kTheta_Delta2Npi},{"MvCCRES", cmf::kMvCCRES},{"MaCCRES", cmf::kMaCCRES},{"MvNCRES", cmf::kMvNCRES},{"MaNCRES", cmf::kMaNCRES},{"RPACCQEshapeEnh", cmf::kRPACCQEshapeEnh},{"RPACCQEshapeSupp", cmf::kRPACCQEshapeSupp},{"COHCCScale2018", cmf::kCOHCCScaleSyst2018},{"COHNCScale2018", cmf::kCOHNCScaleSyst2018},{"ZExpAxialFFSyst2020_eV1", cmf::kZExpEV1Syst2020},{"ZExpAxialFFSyst2020_eV2", cmf::kZExpEV2Syst2020},{"ZExpAxialFFSyst2020_eV3", cmf::kZExpEV3Syst2020},{"ZExpAxialFFSyst2020_eV4", cmf::kZExpEV4Syst2020},{"ZNormCCQE", cmf::kZNormCCQE},{"RESLowQ2SuppSyst2020", cmf::kRESLowQ2SuppSyst2020},{"hNFSISyst2020_MFP", cmf::khNFSISyst2020_MFP},{"hNFSISyst2020_EV1", cmf::khNFSISyst2020_EV1},{"MECEnuShapeSyst2020Nu", cmf::kMECEnuShapeSyst2020Nu},{"MECEnuShapeSyst2020AntiNu", cmf::kMECEnuShapeSyst2020AntiNu},{"MECShapeSyst2020Nu", cmf::kMECShapeSyst2020Nu},{"MECShapeSyst2020AntiNu", cmf::kMECShapeSyst2020AntiNu},{"MECInitStateNPFracSyst2020Nu", cmf::kMECInitStateNPFracSyst2020Nu},{"MECInitStateNPFracSyst2020AntiNu", cmf::kMECInitStateNPFracSyst2020AntiNu},{"RadCorrNue", cmf::kRadCorrNue},{"RadCorrNuebar", cmf::kRadCorrNuebar},{"2ndClassCurrs", cmf::k2ndClassCurrs},{"Norm_1Nux", cmf::kNorm_1Nux},{"MeanQ0_1Nux", cmf::kMeanQ0_1Nux},{"MeanQ3_1Nux", cmf::kMeanQ3_1Nux},{"SigmaQ0_1Nux", cmf::kSigmaQ0_1Nux},{"SigmaQ3_1Nux", cmf::kSigmaQ3_1Nux},{"Corr_1Nux", cmf::kCorr_1Nux},{"Norm_2Nux", cmf::kNorm_2Nux},{"MeanQ0_2Nux", cmf::kMeanQ0_2Nux},{"MeanQ3_2Nux", cmf::kMeanQ3_2Nux},{"SigmaQ0_2Nux", cmf::kSigmaQ0_2Nux},{"SigmaQ3_2Nux", cmf::kSigmaQ3_2Nux},{"Corr_2Nux", cmf::kCorr_2Nux},{"BaselineNux", cmf::kBaselineNux},{"TauScaleSyst", cmf::kTauScaleSyst},{"DISvpCC0pi_2020", cmf::kDISvpCC0pi_2020},{"DISvpCC1pi_2020", cmf::kDISvpCC1pi_2020},{"DISvpCC2pi_2020", cmf::kDISvpCC2pi_2020},{"DISvpCC3pi_2020", cmf::kDISvpCC3pi_2020},{"DISvpNC0pi_2020", cmf::kDISvpNC0pi_2020},{"DISvpNC1pi_2020", cmf::kDISvpNC1pi_2020},{"DISvpNC2pi_2020", cmf::kDISvpNC2pi_2020},{"DISvpNC3pi_2020", cmf::kDISvpNC3pi_2020},{"DISvnCC0pi_2020", cmf::kDISvnCC0pi_2020},{"DISvnCC1pi_2020", cmf::kDISvnCC1pi_2020},{"DISvnCC2pi_2020", cmf::kDISvnCC2pi_2020},{"DISvnCC3pi_2020", cmf::kDISvnCC3pi_2020},{"DISvnNC0pi_2020", cmf::kDISvnNC0pi_2020},{"DISvnNC1pi_2020", cmf::kDISvnNC1pi_2020},{"DISvnNC2pi_2020", cmf::kDISvnNC2pi_2020},{"DISvnNC3pi_2020", cmf::kDISvnNC3pi_2020},{"DISvbarpCC0pi_2020", cmf::kDISvbarpCC0pi_2020},{"DISvbarpCC1pi_2020", cmf::kDISvbarpCC1pi_2020},{"DISvbarpCC2pi_2020", cmf::kDISvbarpCC2pi_2020},{"DISvbarpCC3pi_2020", cmf::kDISvbarpCC3pi_2020},{"DISvbarpNC0pi_2020", cmf::kDISvbarpNC0pi_2020},{"DISvbarpNC1pi_2020", cmf::kDISvbarpNC1pi_2020},{"DISvbarpNC2pi_2020", cmf::kDISvbarpNC2pi_2020},{"DISvbarpNC3pi_2020", cmf::kDISvbarpNC3pi_2020},{"DISvbarnCC0pi_2020", cmf::kDISvbarnCC0pi_2020},{"DISvbarnCC1pi_2020", cmf::kDISvbarnCC1pi_2020},{"DISvbarnCC2pi_2020", cmf::kDISvbarnCC2pi_2020},{"DISvbarnCC3pi_2020", cmf::kDISvbarnCC3pi_2020},{"DISvbarnNC0pi_2020", cmf::kDISvbarnNC0pi_2020},{"DISvbarnNC1pi_2020", cmf::kDISvbarnNC1pi_2020},{"DISvbarnNC2pi_2020", cmf::kDISvbarnNC2pi_2020},{"DISvbarnNC3pi_2020", cmf::kDISvbarnNC3pi_2020},{"FormZone_2020", cmf::kFormZone_2020},{"hNFSISyst2020_EV2", cmf::khNFSISyst2020_EV2},{"hNFSISyst2020_EV3", cmf::khNFSISyst2020_EV3},{"COHCCScaleSyst2018", cmf::kCOHCCScaleSyst2018},{"COHNCScaleSyst2018", cmf::kCOHNCScaleSyst2018},{"FluxPCA00", cmf::kFluxPCA00},{"FluxPCA01", cmf::kFluxPCA01},{"FluxPCA02", cmf::kFluxPCA02},{"FluxPCA03", cmf::kFluxPCA03},{"FluxPCA04", cmf::kFluxPCA04},{"KaonSyst", cmf::kKaonSyst},{"-2sigma", cmf::kMinus2Sigma},{"-1sigma", cmf::kMinus1Sigma},{"+1sigma", cmf::kPlus1Sigma},{"+2sigma", cmf::kPlus2Sigma}})
static const std::map<std::string, uint8_t> cmf::kVarNameToKey ( {{"NuE_CVN", cmf::kNuE_CVN},{"NuE_NumMichel", cmf::kNuE_NumMichel},{"Had_RecoE", cmf::kHad_RecoE},{"Lep_RecoE", cmf::kLep_RecoE},{"Nu_RecoE", cmf::kNu_RecoE},{"Lep_RecoE_MCFrac", cmf::kLep_RecoE_MCFrac},{"Reco_Q2", cmf::kRecoQ2},{"Fake_Weight", cmf::kFake_Weight},{"TrueE", cmf::kTrueE},{"TruePDG", cmf::kTruePDG},{"TrueCCNC", cmf::kTrueCCNC},{"TrueIntType", cmf::kTrueIntType},{"TruePDGOrig", cmf::kTruePDGOrig},{"TrueParentPDG", cmf::kTrueParentPDG},{"TrueParentPT", cmf::kTrueParentPT},{"TrueParentPZ", cmf::kTrueParentPZ},{"TrueParentDecay", cmf::kTrueParentDecay},{"TrueParentTargetPDG", cmf::kTrueParentTargetPDG},{"TrueHitNuc", cmf::kTrueHitNuc},{"TrueIntMode", cmf::kTrueIntMode},{"XsecCV2020", cmf::kXSecCV2020Wgt},{"PPFXFluxCV", cmf::kPPFXFluxCVWgt},{"RPARES", cmf::kRPARES_Weight},{"UnCorrNDMuEScaleSyst2020", cmf::kUnCorrNDMuEScaleSyst2020},{"UnCorrMuCatMuESyst2020", cmf::kUnCorrMuCatMuESyst2020},{"PileupMuESyst2020", cmf::kPileupMuESyst2020},{"CorrMuEScaleSyst2020", cmf::kCorrMuEScaleSyst2020},{"NeutronEvisPrimariesSyst2018", cmf::kNeutronVisEScalePrimariesSyst2018},{"MichelTaggingSyst2020", cmf::kMichelTaggingSyst2020},{"llND", cmf::kLightModelND},{"llFD", cmf::kLightModelFD},{"cherenkov", cmf::kCherenkov},{"calibND", cmf::kAbsoluteCalibrationND},{"calibFD", cmf::kAbsoluteCalibrationFD},{"calibshapeND", cmf::kCalibShapeND},{"calibshapeFD", cmf::kCalibShapeFD},{"detectoraging", cmf::kDetectorAging},{"NormalizationPOT", cmf::kNormalizationPOT},{"NormalizationNDMass", cmf::kNormalizationNDMass},{"NormalizationFDMass", cmf::kNormalizationFDMass},{"NormalizationML", cmf::kNormalizationML},{"NormalizationFHCNuMuContext", cmf::kNormalizationFHCNuMuContext},{"NormalizationRHCNuMuContext", cmf::kNormalizationRHCNuMuContext},{"NormalizationFHCNuEContext", cmf::kNormalizationFHCNuEContext},{"NormalizationRHCNuEContext", cmf::kNormalizationRHCNuEContext},{"NormalizationFHCNCContext", cmf::kNormalizationFHCNCContext},{"NormalizationRHCNCContext", cmf::kNormalizationRHCNCContext},{"MaNCEL", cmf::kMaNCEL},{"EtaNCEL", cmf::kEtaNCEL},{"AhtBY", cmf::kAhtBY},{"BhtBY", cmf::kBhtBY},{"CV1uBY", cmf::kCV1uBY},{"CV2uBY", cmf::kCV2uBY},{"AGKY_xF1pi", cmf::kAGKY_xF1pi},{"AGKY_pT1pi", cmf::kAGKY_pT1pi},{"BR1gamma", cmf::kBR1gamma},{"BR1eta", cmf::kBR1eta},{"Theta_Delta2Npi", cmf::kTheta_Delta2Npi},{"MvCCRES", cmf::kMvCCRES},{"MaCCRES", cmf::kMaCCRES},{"MvNCRES", cmf::kMvNCRES},{"MaNCRES", cmf::kMaNCRES},{"RPACCQEshapeEnh", cmf::kRPACCQEshapeEnh},{"RPACCQEshapeSupp", cmf::kRPACCQEshapeSupp},{"COHCCScale2018", cmf::kCOHCCScaleSyst2018},{"COHNCScale2018", cmf::kCOHNCScaleSyst2018},{"ZExpAxialFFSyst2020_eV1", cmf::kZExpEV1Syst2020},{"ZExpAxialFFSyst2020_eV2", cmf::kZExpEV2Syst2020},{"ZExpAxialFFSyst2020_eV3", cmf::kZExpEV3Syst2020},{"ZExpAxialFFSyst2020_eV4", cmf::kZExpEV4Syst2020},{"ZNormCCQE", cmf::kZNormCCQE},{"RESLowQ2SuppSyst2020", cmf::kRESLowQ2SuppSyst2020},{"hNFSISyst2020_MFP", cmf::khNFSISyst2020_MFP},{"hNFSISyst2020_EV1", cmf::khNFSISyst2020_EV1},{"MECEnuShapeSyst2020Nu", cmf::kMECEnuShapeSyst2020Nu},{"MECEnuShapeSyst2020AntiNu", cmf::kMECEnuShapeSyst2020AntiNu},{"MECShapeSyst2020Nu", cmf::kMECShapeSyst2020Nu},{"MECShapeSyst2020AntiNu", cmf::kMECShapeSyst2020AntiNu},{"MECInitStateNPFracSyst2020Nu", cmf::kMECInitStateNPFracSyst2020Nu},{"MECInitStateNPFracSyst2020AntiNu", cmf::kMECInitStateNPFracSyst2020AntiNu},{"RadCorrNue", cmf::kRadCorrNue},{"RadCorrNuebar", cmf::kRadCorrNuebar},{"2ndClassCurrs", cmf::k2ndClassCurrs},{"Norm_1Nux", cmf::kNorm_1Nux},{"MeanQ0_1Nux", cmf::kMeanQ0_1Nux},{"MeanQ3_1Nux", cmf::kMeanQ3_1Nux},{"SigmaQ0_1Nux", cmf::kSigmaQ0_1Nux},{"SigmaQ3_1Nux", cmf::kSigmaQ3_1Nux},{"Corr_1Nux", cmf::kCorr_1Nux},{"Norm_2Nux", cmf::kNorm_2Nux},{"MeanQ0_2Nux", cmf::kMeanQ0_2Nux},{"MeanQ3_2Nux", cmf::kMeanQ3_2Nux},{"SigmaQ0_2Nux", cmf::kSigmaQ0_2Nux},{"SigmaQ3_2Nux", cmf::kSigmaQ3_2Nux},{"Corr_2Nux", cmf::kCorr_2Nux},{"BaselineNux", cmf::kBaselineNux},{"TauScaleSyst", cmf::kTauScaleSyst},{"DISvpCC0pi_2020", cmf::kDISvpCC0pi_2020},{"DISvpCC1pi_2020", cmf::kDISvpCC1pi_2020},{"DISvpCC2pi_2020", cmf::kDISvpCC2pi_2020},{"DISvpCC3pi_2020", cmf::kDISvpCC3pi_2020},{"DISvpNC0pi_2020", cmf::kDISvpNC0pi_2020},{"DISvpNC1pi_2020", cmf::kDISvpNC1pi_2020},{"DISvpNC2pi_2020", cmf::kDISvpNC2pi_2020},{"DISvpNC3pi_2020", cmf::kDISvpNC3pi_2020},{"DISvnCC0pi_2020", cmf::kDISvnCC0pi_2020},{"DISvnCC1pi_2020", cmf::kDISvnCC1pi_2020},{"DISvnCC2pi_2020", cmf::kDISvnCC2pi_2020},{"DISvnCC3pi_2020", cmf::kDISvnCC3pi_2020},{"DISvnNC0pi_2020", cmf::kDISvnNC0pi_2020},{"DISvnNC1pi_2020", cmf::kDISvnNC1pi_2020},{"DISvnNC2pi_2020", cmf::kDISvnNC2pi_2020},{"DISvnNC3pi_2020", cmf::kDISvnNC3pi_2020},{"DISvbarpCC0pi_2020", cmf::kDISvbarpCC0pi_2020},{"DISvbarpCC1pi_2020", cmf::kDISvbarpCC1pi_2020},{"DISvbarpCC2pi_2020", cmf::kDISvbarpCC2pi_2020},{"DISvbarpCC3pi_2020", cmf::kDISvbarpCC3pi_2020},{"DISvbarpNC0pi_2020", cmf::kDISvbarpNC0pi_2020},{"DISvbarpNC1pi_2020", cmf::kDISvbarpNC1pi_2020},{"DISvbarpNC2pi_2020", cmf::kDISvbarpNC2pi_2020},{"DISvbarpNC3pi_2020", cmf::kDISvbarpNC3pi_2020},{"DISvbarnCC0pi_2020", cmf::kDISvbarnCC0pi_2020},{"DISvbarnCC1pi_2020", cmf::kDISvbarnCC1pi_2020},{"DISvbarnCC2pi_2020", cmf::kDISvbarnCC2pi_2020},{"DISvbarnCC3pi_2020", cmf::kDISvbarnCC3pi_2020},{"DISvbarnNC0pi_2020", cmf::kDISvbarnNC0pi_2020},{"DISvbarnNC1pi_2020", cmf::kDISvbarnNC1pi_2020},{"DISvbarnNC2pi_2020", cmf::kDISvbarnNC2pi_2020},{"DISvbarnNC3pi_2020", cmf::kDISvbarnNC3pi_2020},{"FormZone_2020", cmf::kFormZone_2020},{"hNFSISyst2020_EV2", cmf::khNFSISyst2020_EV2},{"hNFSISyst2020_EV3", cmf::khNFSISyst2020_EV3},{"COHCCScaleSyst2018", cmf::kCOHCCScaleSyst2018},{"COHNCScaleSyst2018", cmf::kCOHNCScaleSyst2018},{"FluxPCA00", cmf::kFluxPCA00},{"FluxPCA01", cmf::kFluxPCA01},{"FluxPCA02", cmf::kFluxPCA02},{"FluxPCA03", cmf::kFluxPCA03},{"FluxPCA04", cmf::kFluxPCA04},{"KaonSyst", cmf::kKaonSyst},{"-2sigma", cmf::kMinus2Sigma},{"-1sigma", cmf::kMinus1Sigma},{"+1sigma", cmf::kPlus1Sigma},{"+2sigma", cmf::kPlus2Sigma}}  )
static

Referenced by KeyToVarName(), and VarNameToKey().

float cmf::NCEnergy ( float  leptonicEnergy,
float  hadronicEnergy,
cmf::BeamType_t const &  beamType,
cmf::DetType_t const &  detector 
)
inlinestatic

Definition at line 365 of file VarVals.h.

References kFARDET, kFHC, kNEARDET, kRHC, pars(), and cet::pow().

Referenced by cmf::DataVarVals::DataVars(), and RecoEnergy().

369 {
370  // Note: leptonicEnergy must be the EM-like energy, as calculated by kEME_2020
371  // and hadronicEnergy must be the hadronic-like energy, as calculated by kHADE_2020
372  // If we don't have a tuned correction return the total calorimetric energy
373  if (beamType != kFHC ||
375  return leptonicEnergy + hadronicEnergy;
376 
377  // Set up correction parameters
378  double pars[4][6] = { {1.049, 0.795, 0.8409, 0.17, 0.82, -1.00}, // ND FHC
379  {1.025, 0.797, 0.9162, 0.53, -0.26, -1.48}, // FD FHC
380  {1.000, 1.000, 1.0000, 0.00, 0.00, 0.00}, // ND RHC
381  {1.000, 1.000, 1.0000, 0.00, 0.00, 0.00} };// FD RHC
382 
383  // set detector/beam index
384  int detCur = (detector == cmf::kFARDET) + ((beamType == kRHC)<<1); // bitshift magic
385 
386  // return the energy estimator
387  return (leptonicEnergy / pars[detCur][0] + hadronicEnergy / pars[detCur][1])
388  / (pars[detCur][2] + pars[detCur][3] * std::pow(leptonicEnergy + hadronicEnergy + pars[detCur][4],2) * std::exp(pars[detCur][5] * (leptonicEnergy + hadronicEnergy)));
389 }
constexpr T pow(T x)
Definition: pow.h:72
std::string pars("Th23Dmsq32")
float cmf::NuEEnergy ( float  leptonicEnergy,
float  hadronicEnergy,
cmf::BeamType_t const &  beamType 
)
inlinestatic

Definition at line 342 of file VarVals.h.

References e, kFHC, PandAna.Demos.pi0_spectra::p0, plot_validation_datamc::p1, plot_validation_datamc::p2, make_associated_cosmic_defs::p3, make_associated_cosmic_defs::p4, and make_associated_cosmic_defs::p5.

Referenced by cmf::DataVarVals::DataVars(), and RecoEnergy().

345 {
346  // p0 and p3 are 0.0 for both FHC and RHC
347  // 2020
348  float p0 = 0.0;
349  float p1 = (beamType == kFHC) ? 1.01777 : 0.988258;
350  float p2 = (beamType == kFHC) ? 1.10868 : 1.20084;
351  float p3 = 0.0;
352  float p4 = (beamType == kFHC) ? 1.43541e-03 : 1.92904e-07;
353  float p5 = (beamType == kFHC) ? 1.09628e-01 : 1.20704e-07;
354  float fr = (beamType == kFHC) ? 1. / 1.0355622 : 1. / 1.0111873;
355 
356  return fr *(( p5 * hadronicEnergy * hadronicEnergy) +
357  ( p4 * leptonicEnergy * leptonicEnergy) +
358  ( p3 * leptonicEnergy * hadronicEnergy) +
359  ( p2 * hadronicEnergy) +
360  ( p1 * leptonicEnergy) +
361  p0 );
362 }
Float_t e
Definition: plot.C:35
float cmf::NuMuEnergy ( float  leptonicEnergy,
float  hadronicEnergy 
)
inlinestatic

Definition at line 334 of file VarVals.h.

Referenced by cmf::DataVarVals::DataVars(), and RecoEnergy().

336 {
337  return leptonicEnergy + hadronicEnergy;
338 
339 }
std::ostream& cmf::operator<< ( std::ostream &  o,
cmf::Event const &  event 
)

Definition at line 27 of file Event.cxx.

References cmf::Event::DataVals(), cmf::Event::DataValsFilled(), allTimeWatchdog::endl, cmf::Event::EventID(), cmf::Event::EventIDFilled(), cmf::Event::MCVals(), cmf::Event::MCValsFilled(), and msf_helper::o.

Referenced by cmf::DataVarVals::DataVarVals(), cmf::MCVarVals::MCVarVals(), cmf::OscPar::operator<(), cmf::SystVar::operator<(), and cmf::Parameter::SetValue().

28  {
29  o << "Event Variables are: \n";
30 
31  if(event.EventIDFilled() ) o << event.EventID() ;
32  if(event.DataValsFilled()) o << event.DataVals();
33  if(event.MCValsFilled() ) o << event.MCVals() ;
34 
35  o << std::endl;
36 
37  return o;
38  }
std::ostream& cmf::operator<< ( std::ostream &  o,
cmf::GridPoint const &  gp 
)

Definition at line 34 of file GridPointResult.cxx.

References cOscParams_Strings(), IsAngleParameter(), msf_helper::o, cmf::GridPoint::X(), cmf::GridPoint::XPar(), cmf::GridPoint::Y(), and cmf::GridPoint::YPar().

35  {
36 
37  if(cmf::IsAngleParameter(gp.XPar()))
38  o << "sin^{2}("
39  << cmf::cOscParams_Strings[gp.XPar()]
40  << ") : ";
41  else
42  o << cmf::cOscParams_Strings[gp.XPar()]
43  << " : ";
44 
45  o << gp.X()
46  << " ";
47 
48  if(cmf::IsAngleParameter(gp.YPar()))
49  o << "sin^{2}("
50  << cmf::cOscParams_Strings[gp.YPar()]
51  << ") : ";
52  else
53  o << cmf::cOscParams_Strings[gp.YPar()]
54  << " : ";
55 
56  o << gp.Y();
57 
58  return o;
59  }
static bool IsAngleParameter(cmf::OscParm_t const &par)
Definition: StaticFuncs.h:354
const std::vector< std::string > cOscParams_Strings({"L","Rho","Dmsq21","Dmsq32","Th12","Th13","Th23","dCP","Th14","Th24","Th34","Dmsq41","d24","Eps_ee","Eps_emu","Eps_etau","Eps_mumu","Eps_mutau","Eps_tautau","Delta_emu","Delta_etau","Delta_mutau"})
std::ostream& cmf::operator<< ( std::ostream &  o,
cmf::InputPoint const &  ip 
)

Definition at line 34 of file InputPoint.cxx.

References cmf::InputPoint::DetectorParameters(), allTimeWatchdog::endl, IsOscillationParameter(), msf_helper::o, cet::pow(), std::sin(), string, and febshutoff_auto::val.

35  {
36 
37  double val;
39 
40  for(auto const& itr : ip.DetectorParameters()){
41  o << "InputPoint " << itr.Detector() << std::endl;
42 
43  for(auto const& parItr : itr.Parameters()){
44  name = parItr.Name();
45  val = parItr.Value();
46  if (name == "dCP")
47  o << "\t" << std::setw(20) << name << " " << std::setw(10) << val << " = " << val/TMath::Pi() << "(pi)" << " fixed: " << parItr.IsFixed() << std::endl;
48  else if(name == "Th23")
49  o << "\t" << std::setw(20) << name << " " << std::setw(10) << val << ": sin^2(Th23) : " << std::pow(std::sin(val), 2.) << " fixed: " << parItr.IsFixed() << std::endl;
50  else if(cmf::IsOscillationParameter(name))
51  o << "\t" << std::setw(20) << name << " " << std::setw(10) << val << " fixed: " << parItr.IsFixed() << std::endl;
52  else
53  o << "\t"<< std::setw(10) << name << " " << std::setw(10) << val << " fixed: " << parItr.IsFixed() << std::endl;
54  }
55  } // end loop over detectors
56 
57  o << std::endl;
58 
59  return o;
60  }
const XML_Char * name
Definition: expat.h:151
constexpr T pow(T x)
Definition: pow.h:72
TString ip
Definition: loadincs.C:5
static bool IsOscillationParameter(std::string const &str)
T sin(T number)
Definition: d0nt_math.hpp:132
enum BeamMode string
std::ostream& cmf::operator<< ( std::ostream &  o,
cmf::PointResult const &  pr 
)

Definition at line 59 of file PointResult.cxx.

References cmf::PointResult::ChiSqr(), cOscParams_Strings(), allTimeWatchdog::endl, IsAngleParameter(), kdCP, msf_helper::o, cmf::PointResult::ParameterSpaceLocation(), cet::pow(), art::right(), and std::sin().

60  {
61  o << "PointResult:" << std::endl
62  << "\tChiSqr = " << std::setw(5) << std::right << pr.ChiSqr() << std::endl;
63 
64  o << "Oscillation parameters:" << std::endl;
65  for(auto itr : pr.ParameterSpaceLocation() ){
66  if(itr.first == cmf::kdCP)
67  o << "\t" << std::setw(20) << cmf::cOscParams_Strings[itr.first] << " " << itr.second << " = " << itr.second/TMath::Pi() << "(pi)" << std::endl;
68  else if(cmf::IsAngleParameter(itr.first))
69  o << "\t" << std::setw(20) << cmf::cOscParams_Strings[itr.first] << " " << itr.second << ": sin^2(" << cmf::cOscParams_Strings[itr.first] << ") : " << std::pow(std::sin(itr.second), 2.) << std::endl;
70  else o << "\t" << std::setw(20) << cmf::cOscParams_Strings[itr.first] << " " << itr.second << std::endl;
71  }
72 
73  return o;
74  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:104
constexpr T pow(T x)
Definition: pow.h:72
static bool IsAngleParameter(cmf::OscParm_t const &par)
Definition: StaticFuncs.h:354
T sin(T number)
Definition: d0nt_math.hpp:132
const std::vector< std::string > cOscParams_Strings({"L","Rho","Dmsq21","Dmsq32","Th12","Th13","Th23","dCP","Th14","Th24","Th34","Dmsq41","d24","Eps_ee","Eps_emu","Eps_etau","Eps_mumu","Eps_mutau","Eps_tautau","Delta_emu","Delta_etau","Delta_mutau"})
std::ostream& cmf::operator<< ( std::ostream &  o,
cmf::FakeUniverse const &  fu 
)

Definition at line 59 of file FakeUniverse.cxx.

References cOscParams_Strings(), allTimeWatchdog::endl, and cmf::FakeUniverse::OscParMap().

60  {
61  o << "universe location ";
62 
63  for(auto const& itr : fu.OscParMap())
64  o << cmf::cOscParams_Strings[itr.first]
65  << " "
66  << itr.second
67  << " ";
68 
69  o << std::endl;
70 
71 // for(size_t b = 0; b < fu.AsimovSpectrum().size(); ++b){
72 // o << "fake universe spectrum bin "
73 // << b
74 // << " poisson: "
75 // << fu.PoissonSpectrum()[b]
76 // << " asimov: "
77 // << fu.AsimovSpectrum()[b]
78 // << "\n";
79 // }
80 
81  return o;
82  }
const std::vector< std::string > cOscParams_Strings({"L","Rho","Dmsq21","Dmsq32","Th12","Th13","Th23","dCP","Th14","Th24","Th34","Dmsq41","d24","Eps_ee","Eps_emu","Eps_etau","Eps_mumu","Eps_mutau","Eps_tautau","Delta_emu","Delta_etau","Delta_mutau"})
std::ostream& cmf::operator<< ( std::ostream &  o,
cmf::MCVarVals const &  mcvv 
)

Definition at line 71 of file VarVals.cxx.

References allTimeWatchdog::endl, KeyToVarName(), kRPARES_Weight, kTrueCCNC, kTrueE, kTrueHitNuc, kTrueIntMode, kTrueIntType, kTrueParentDecay, kTrueParentPDG, kTrueParentPT, kTrueParentPZ, kTrueParentTargetPDG, kTruePDG, kTruePDGOrig, kXSecCVPPFX_Weight, msf_helper::o, and cmf::MCVarVals::val_at().

72  {
73  o << "Event MC related variables are: "
74  << "\n\t" << cmf::KeyToVarName(cmf::kTrueE) << " " << mcvv.val_at(cmf::kTrueE )
75  << "\n\t" << cmf::KeyToVarName(cmf::kTruePDG) << " " << mcvv.val_at(cmf::kTruePDG )
76  << "\n\t" << cmf::KeyToVarName(cmf::kTrueCCNC) << " " << mcvv.val_at(cmf::kTrueCCNC )
77  << "\n\t" << cmf::KeyToVarName(cmf::kTrueIntType) << " " << mcvv.val_at(cmf::kTrueIntType )
78  << "\n\t" << cmf::KeyToVarName(cmf::kTruePDGOrig) << " " << mcvv.val_at(cmf::kTruePDGOrig )
79  << "\n\t" << cmf::KeyToVarName(cmf::kTrueParentPDG) << " " << mcvv.val_at(cmf::kTrueParentPDG )
80  << "\n\t" << cmf::KeyToVarName(cmf::kTrueParentPT) << " " << mcvv.val_at(cmf::kTrueParentPT )
81  << "\n\t" << cmf::KeyToVarName(cmf::kTrueParentPZ) << " " << mcvv.val_at(cmf::kTrueParentPZ )
82  << "\n\t" << cmf::KeyToVarName(cmf::kTrueParentDecay) << " " << mcvv.val_at(cmf::kTrueParentDecay )
83  << "\n\t" << cmf::KeyToVarName(cmf::kTrueParentTargetPDG) << " " << mcvv.val_at(cmf::kTrueParentTargetPDG)
84  << "\n\t" << cmf::KeyToVarName(cmf::kTrueHitNuc) << " " << mcvv.val_at(cmf::kTrueHitNuc )
85  << "\n\t" << cmf::KeyToVarName(cmf::kTrueIntMode) << " " << mcvv.val_at(cmf::kTrueIntMode )
86  << "\n\t" << cmf::KeyToVarName(cmf::kXSecCVPPFX_Weight) << " " << mcvv.val_at(cmf::kXSecCVPPFX_Weight )
87  << "\n\t" << cmf::KeyToVarName(cmf::kRPARES_Weight) << " " << mcvv.val_at(cmf::kRPARES_Weight )
88  << "\n\t and too many GENIE knobs to list"
89  << std::endl;
90 
91  return o;
92  }
static std::string KeyToVarName(uint8_t const &key)
Definition: StaticFuncs.h:410
std::ostream& cmf::operator<< ( std::ostream &  o,
cmf::OscPar const &  op 
)

Definition at line 88 of file Parameter.cxx.

References cOscParams_Strings(), msf_helper::o, cmf::OscPar::Param(), and cmf::OscPar::Value().

88  {
89  o << cmf::cOscParams_Strings[op.Param()]
90  << " "
91  << op.Value();
92 
93  return o;
94  }
const std::vector< std::string > cOscParams_Strings({"L","Rho","Dmsq21","Dmsq32","Th12","Th13","Th23","dCP","Th14","Th24","Th34","Dmsq41","d24","Eps_ee","Eps_emu","Eps_etau","Eps_mumu","Eps_mutau","Eps_tautau","Delta_emu","Delta_etau","Delta_mutau"})
std::ostream& cmf::operator<< ( std::ostream &  o,
cmf::SystVar const &  sv 
)

Definition at line 95 of file VarVals.cxx.

References cmf::SystVar::fMinus1Sigma, cmf::SystVar::fMinus2Sigma, cmf::SystVar::fPlus1Sigma, cmf::SystVar::fPlus2Sigma, cmf::SystVar::fType, KeyToVarName(), and msf_helper::o.

96  {
97  o << cmf::KeyToVarName(sv.fType)
98  << " | -2 sigma wgt: "
99  << sv.fMinus2Sigma
100  << " | -1 sigma wgt: "
101  << sv.fMinus1Sigma
102  << " | 1 sigma wgt: "
103  << sv.fPlus1Sigma
104  << " | 2 sigma wgt: "
105  << sv.fPlus2Sigma
106  << " | ";
107 
108  return o;
109  }
static std::string KeyToVarName(uint8_t const &key)
Definition: StaticFuncs.h:410
std::ostream& cmf::operator<< ( std::ostream &  o,
cmf::EventId const &  evid 
)

Definition at line 142 of file VarVals.cxx.

References cmf::EventId::cycle, cmf::EventId::event, msf_helper::o, cmf::EventId::run, cmf::EventId::slice, and cmf::EventId::subrun.

143  {
144  o << "run "
145  << evid.run
146  << "\tsubrun "
147  << evid.subrun
148  << "\tevent "
149  << evid.event
150  << "\tcycle "
151  << evid.cycle
152  << "\tslice "
153  << evid.slice;
154 
155  return o;
156  }
std::ostream& cmf::operator<< ( std::ostream &  o,
cmf::Parameter const &  par 
)

Definition at line 184 of file Parameter.cxx.

References allTimeWatchdog::endl, cmf::Parameter::IsConstrained(), cmf::Parameter::IsFixed(), cmf::Parameter::IsNuisance(), cmf::Parameter::IsOscPar(), cmf::Parameter::LowerBound(), cmf::Parameter::Name(), msf_helper::o, cmf::Parameter::UpperBound(), and cmf::Parameter::Value().

184  {
185 
186  o << "-- parameter: "
187  << std::setw(30) << par.Name() << std::setw(10)
188  << " val: " << par.Value()
189  << " fixed: " << par.IsFixed()
190  << " oscillation " << par.IsOscPar()
191  << " nuisance " << par.IsNuisance()
192  << " constrained " << par.IsConstrained()
193  << " lower: " << par.LowerBound()
194  << " upper: " << par.UpperBound()
195  << std::endl;
196 
197  return o;
198  }
Int_t par
Definition: SimpleIterate.C:24
std::ostream& cmf::operator<< ( std::ostream &  o,
SpillSummary const &  ss 
)
inline

Definition at line 199 of file Structs.h.

References cmf::SpillSummary::goodPOT, cmf::SpillSummary::liveTime, cmf::SpillSummary::numGoodSpills, msf_helper::o, cmf::SpillSummary::totalNumSpills, and cmf::SpillSummary::totalPOT.

200  {
201  o << "good POT: "
202  << ss.goodPOT
203  << " total POT: "
204  << ss.totalPOT
205  << " live time: "
206  << ss.liveTime
207  << " good spills: "
208  << ss.numGoodSpills
209  << " total spills: "
210  << ss.totalNumSpills;
211 
212  return o;
213  }
Float_t ss
Definition: plot.C:24
std::ostream& cmf::operator<< ( std::ostream &  o,
cmf::Location const &  loc 
)

Definition at line 201 of file Parameter.cxx.

References cDetType_Strings(), cmf::Location::DetectorLocations(), allTimeWatchdog::endl, and msf_helper::o.

202  {
203  auto const& detLocs = loc.DetectorLocations();
204 
205  std::set<std::string> parsDone;
206 
207  o << std::endl;
208  for(auto const& itr : detLocs){
209  for(auto const& parItr : itr.Parameters()){
210 
211  if(parsDone.find(parItr.Name()) != parsDone.end()) continue;
212 
213  parsDone.insert(parItr.Name());
214 
215  o << " -- parameter: "
216  << std::setw(30)
217  << parItr.Name()
218  << std::setw(15)
219  << " val "
220  << cmf::cDetType_Strings[itr.Detector()]
221  << ": "
222  << parItr.Value()
223  << " fixed: "
224  << std::setw(5)
225  << parItr.IsFixed();
226 
227  // see if this parameter is set for other detectors too
228  for(auto const& itr2 : detLocs){
229  if(itr2.Detector() == itr.Detector()) continue;
230  if(itr2.count(parItr.Name()) > 0){
231  auto const& par2 = itr2.Parameter(parItr.Name());
232  o << std::setw(15)
233  << " val "
234  << cmf::cDetType_Strings[itr2.Detector()]
235  << ": "
236  << std::setw(15)
237  << " "
238  << par2.Value()
239  << " fixed: "
240  << std::setw(5)
241  << par2.IsFixed();
242  }
243  } // end loop over other detectors
244  o << std::endl;
245  } // end loop over parameters
246  o << std::endl;
247  } // end loop over the current detector
248 
249  return o;
250  }
const std::vector< std::string > cDetType_Strings({"UnknownDet","NearDet","FarDet","MINOSNear","MINOSFar","AllDetectors"})
std::ostream& cmf::operator<< ( std::ostream &  o,
cmf::DataVarVals const &  dvv 
)

Definition at line 205 of file VarVals.cxx.

References allTimeWatchdog::endl, cmf::MetaData::isMC, KeyToVarName(), kFake_Weight, kHad_RecoE, kLep_RecoE, kLep_RecoE_MCFrac, kNu_RecoE, kNuE_CVN, kNuE_NumMichel, kNuESelection, kNuMuSelection, msf_helper::o, cmf::MetaData::selectionType, and cmf::DataVarVals::val_at().

206  {
207  cmf::MetaData numumd;
208  cmf::MetaData nuemd;
209 
210  numumd.isMC = false;
211  nuemd .isMC = false;
214 
215  o << "Event Data related variables are: "
216  << "\n\t" << cmf::KeyToVarName(cmf::kNuE_CVN) << " " << dvv.val_at(cmf::kNuE_CVN, nuemd )
217  << "\n\t" << cmf::KeyToVarName(cmf::kNuE_NumMichel) << " " << dvv.val_at(cmf::kNuE_NumMichel, nuemd )
218  << "\n\t" << cmf::KeyToVarName(cmf::kHad_RecoE) << " " << dvv.val_at(cmf::kHad_RecoE, nuemd )
219  << "\n\t" << cmf::KeyToVarName(cmf::kLep_RecoE) << " " << dvv.val_at(cmf::kLep_RecoE, nuemd )
220  << "\n\t" << cmf::KeyToVarName(cmf::kLep_RecoE_MCFrac) << " " << dvv.val_at(cmf::kLep_RecoE_MCFrac, numumd)
221  << "\n\t" << cmf::KeyToVarName(cmf::kNu_RecoE ) << " nue " << dvv.val_at(cmf::kNu_RecoE, nuemd )
222  << "\n\t" << cmf::KeyToVarName(cmf::kNu_RecoE ) << " numu " << dvv.val_at(cmf::kNu_RecoE, numumd)
223  << "\n\t" << cmf::KeyToVarName(cmf::kFake_Weight) << " " << dvv.val_at(cmf::kFake_Weight, nuemd )
224  << std::endl;
225 
226  return o;
227  }
cmf::SelectionType_t selectionType
Definition: Structs.h:116
static std::string KeyToVarName(uint8_t const &key)
Definition: StaticFuncs.h:410
std::ostream& cmf::operator<< ( std::ostream &  o,
cmf::OscParamPoint const &  hpp 
)

Definition at line 254 of file GridPointResult.cxx.

References cOscParams_Strings(), allTimeWatchdog::endl, msf_helper::o, and cmf::OscParamPoint::OscPointAsVec().

255  {
256  for(auto const& itr : hpp.OscPointAsVec())
257  o << cmf::cOscParams_Strings[itr.Param()]
258  << " "
259  << itr.Value()
260  << " ";
261 
262  o << std::endl;
263 
264  return o;
265  }
const std::vector< std::string > cOscParams_Strings({"L","Rho","Dmsq21","Dmsq32","Th12","Th13","Th23","dCP","Th14","Th24","Th34","Dmsq41","d24","Eps_ee","Eps_emu","Eps_etau","Eps_mumu","Eps_mutau","Eps_tautau","Delta_emu","Delta_etau","Delta_mutau"})
static std::string cmf::OscParMapToString ( cmf::OscillationParameterMap const &  opm)
inlinestatic

Definition at line 419 of file StaticFuncs.h.

References cOscParams_Strings(), string, and art::to_string().

Referenced by cmf::GridPointsBestFit::FindChiSqrForPoint(), and InteractionTypeKey().

420 {
421  std::string oscParString;
422  for(auto const& itr : opm){
423  oscParString += " " + cmf::cOscParams_Strings[itr.first] + ": " + std::to_string(itr.second);
424  }
425 
426  return oscParString;
427 }
std::string to_string(ModuleType const mt)
Definition: ModuleType.h:34
const std::vector< std::string > cOscParams_Strings({"L","Rho","Dmsq21","Dmsq32","Th12","Th13","Th23","dCP","Th14","Th24","Th34","Dmsq41","d24","Eps_ee","Eps_emu","Eps_etau","Eps_mumu","Eps_mutau","Eps_tautau","Delta_emu","Delta_etau","Delta_mutau"})
enum BeamMode string
void cmf::ParameterSetToLocation ( fhicl::ParameterSet const &  pset,
cmf::DetType_t const &  det,
cmf::Location loc 
)

Definition at line 12 of file ParameterUtility.cxx.

References fillBadChanDBTables::det, fhicl::ParameterSet::get(), fhicl::ParameterSet::get_names(), cmf::Location::InsertParameter(), fhicl::ParameterSet::is_empty(), PandAna.Demos.demo0::loc, MF_LOG_DEBUG, ParseFluxesFile::param, sigma(), string, StringToDetectorType(), fhicl::ParameterSet::to_indented_string(), and febshutoff_auto::val.

Referenced by cmf::CovarianceMatrixFitter::FillDataSpectrum(), cmf::ParameterUtility::Initialize(), and cmf::CovarianceMatrixFitter::writeResults().

15  {
16  // nothing to be done with an empty parameter set
17  if(pset.is_empty()) return;
18 
20  bool fixed;
21  bool nuisance;
22  bool constraint;
23  float centralVal;
24  float variance;
25  float sigma;
26  double val;
27  float lowerBound;
28  float upperBound;
29  std::string parstr;
30  std::string detstr;
31 
32  auto const& parNames = pset.get_names();
33 
34  for(auto const& itr : parNames){
35 
36  param = pset.get<fhicl::ParameterSet>(itr);
37 
38  MF_LOG_DEBUG("ParameterSetToLocation")
39  << param.to_indented_string();
40 
41  detstr = param.get<std::string>("Detector", "BOTH");
42  parstr = param.get<std::string>("Parameter" );
43  fixed = param.get<bool >("Fixed", true );
44  val = param.get<double >("Value", 0. );
45  nuisance = param.get<bool >("Nuisance", false );
46  sigma = param.get<float >("Sigma", 1.e6 );
47  centralVal = param.get<float >("CentralValue", 0. );
48  variance = param.get<float >("Variance", 1.e-5 );
49  constraint = param.get<bool >("Constraint", false );
50  lowerBound = param.get<float >("LoVal", 0. );
51  upperBound = param.get<float >("HiVal", 1.e6 );
52 
53  // remove any Wgt from the parameter name
54  if(parstr.find("Wgt") != std::string::npos) parstr.erase(parstr.find("Wgt"), 3);
55 
56  if(detstr == "BOTH" || cmf::StringToDetectorType(detstr) == det){
58  det,
59  val,
60  fixed,
61  sigma,
62  centralVal,
63  variance,
64  nuisance,
65  constraint,
66  lowerBound,
67  upperBound));
68 
69  MF_LOG_DEBUG("ParameterSpaceLoc")
70  << "inserting parameter "
71  << parstr;
72  } // end if using the correct detector
73  } // end loop over parameter names
74 
75  MF_LOG_DEBUG("ParameterSpaceLoc")
76  << " full location is "
77  << loc;
78 
79  }
T get(std::string const &key) const
Definition: ParameterSet.h:231
static cmf::DetType_t StringToDetectorType(std::string const &str)
Definition: StaticFuncs.h:267
void InsertParameter(cmf::Parameter const &par)
Definition: Parameter.cxx:291
double sigma(TH1F *hist, double percentile)
std::string to_indented_string() const
#define MF_LOG_DEBUG(id)
enum BeamMode string
static long cmf::PeriodKey ( long const &  ep)
inlinestatic
long cmf::PeriodStringToInt ( std::string const &  epochStr)

Definition at line 69 of file Structs.cxx.

References MF_LOG_DEBUG, and MF_LOG_WARNING.

Referenced by cmf::MetaData::MetaData(), and cmf::MetaDataLite::MetaDataLite().

69  {
70  size_t first = epochStr.find_first_of("abcdefghijklmnopqrstuvwxyz");
71  if(first != std::string::npos){
72  MF_LOG_WARNING("MetaData")
73  << "use of subperiods is deprecated, only full periods are used";
74 
75  //auto alpha = epochStr.substr(first, first + 1);
76  //return (std::stol(epochStr.substr(0, first).c_str(), nullptr, 0) * 1000 + static_cast<int>(*(alpha.c_str())));
77  }
78 
79  MF_LOG_DEBUG("MetaData")
80  << epochStr
81  << " "
82  << std::stol(epochStr.substr(0, epochStr.length()).c_str(), nullptr, 0);
83 
84  return std::stol(epochStr.substr(0, epochStr.length()).c_str(), nullptr, 0);
85  }
#define MF_LOG_DEBUG(id)
#define MF_LOG_WARNING(category)
static cmf::BeamType_t cmf::PeriodToBeamType ( std::string const &  str)
static
template<class T >
static bool cmf::readSingleResult ( art::Results const &  r,
std::string const &  module,
std::string const &  instance,
std::vector< T > &  resvec 
)
static
template<class T >
static bool cmf::readVectorResults ( art::Results const &  r,
std::string const &  module,
std::string const &  instance,
std::vector< T > &  resvec,
bool  clearResVec = true 
)
static
template<class T >
static bool cmf::readVectorResults ( art::Results const &  r,
std::string const &  module,
std::vector< T > &  resvec,
bool  clearResVec = true 
)
static
float cmf::RecoEnergy ( float  leptonicEnergy,
float  hadronicEnergy,
cmf::MetaData const &  md 
)
inlinestatic

Definition at line 317 of file VarVals.h.

References cmf::MetaData::BeamType(), cmf::MetaData::detector, cmf::MetaData::IsNCSelected(), cmf::MetaData::IsNuESelected(), cmf::MetaData::IsNuMuSelected(), NCEnergy(), NuEEnergy(), NuMuEnergy(), and cmf::MetaData::selectionType.

Referenced by cmf::DataVarVals::DataVars(), FillSpectrumFromSingleList(), cmf::EventListManipulator::FillTextFile(), and cmf::DataVarVals::NuRecoEVal().

320 {
321  if (md.IsNuMuSelected()) return cmf::NuMuEnergy(leptonicEnergy, hadronicEnergy );
322  else if(md.IsNCSelected() ) return cmf::NCEnergy (leptonicEnergy, hadronicEnergy, md.BeamType(), md.detector);
323  else if(md.IsNuESelected() ) return cmf::NuEEnergy (leptonicEnergy, hadronicEnergy, md.BeamType());
324  else
325  throw cet::exception("DataVarVals")
326  << "Unknown selection type "
327  << md.selectionType
328  << " requested to be used in calculating reconstructed energy";
329 
330  return std::numeric_limits<float>::lowest();
331 }
static float NuMuEnergy(float leptonicEnergy, float hadronicEnergy)
Definition: VarVals.h:334
static float NuEEnergy(float leptonicEnergy, float hadronicEnergy, cmf::BeamType_t const &beamType)
Definition: VarVals.h:342
::xsd::cxx::tree::exception< char > exception
Definition: Database.h:225
static float NCEnergy(float leptonicEnergy, float hadronicEnergy, cmf::BeamType_t const &beamType, cmf::DetType_t const &detector)
Definition: VarVals.h:365
static long cmf::SelectionTypeKey ( cmf::SelectionType_t const &  st)
inlinestatic
void cmf::SerializeEventListColl ( std::string const &  dirName,
cmf::EventListColl const &  listColl 
)

Definition at line 117 of file Event.cxx.

References dir, fetch_tb_beamline_files::md, SerializeEvents(), ss, and cmf::MetaData::ToString().

Referenced by cmf::DSTToEventList::endJob(), cmf::CAFToEventList::endJob(), and cmf::EventList::TotalEvents().

119  {
120 
121  // make a directory in the output file, and the act of making it puts us
122  // into that directory of the file
124  auto dir = tfs->mkdir(dirName.c_str());
125 
128 
129  // first the metadata tree
130  // leave this pointer dangling because the fileService created & manages it
131  TTree *metadataTree = dir.make<TTree>( "metadata", "Event list metadata" );
132  metadataTree->Branch("metadata", &md);
133  metadataTree->Branch("spillsummary", &ss);
134 
135  for(auto const& itr : listColl){
136 
137  md = itr.ListMetaData();
138  ss = itr.ListSpillSummary();
139 
140  metadataTree->Fill();
141 
142  // same principle as above for the event tree
143  TTree *eventTree = dir.make<TTree>(md.ToString().c_str(), "CovarianceMatrixFit event records");
144 
145  cmf::SerializeEvents(eventTree,
146  md,
147  itr);
148 
149  } // end loop over the lists
150  }
Float_t ss
Definition: plot.C:24
void SerializeEvents(TTree *eventTree, cmf::MetaData const &md, cmf::EventList const &events)
Definition: Event.cxx:55
std::string ToString() const
Definition: Structs.cxx:135
std::string dirName
Definition: PlotSpectra.h:47
TDirectory * dir
Definition: macro.C:5
void cmf::SerializeEvents ( TTree *  eventTree,
cmf::MetaData const &  md,
cmf::EventList const &  events 
)

Definition at line 55 of file Event.cxx.

References cmf::DataVars::DataVars(), cmf::MetaData::isMC, kMinus1Sigma, kMinus2Sigma, kPlus1Sigma, kPlus2Sigma, string, cmf::TruthVars::TruthVars(), and cmf::WeightVars::WeightVars().

Referenced by cmf::CMFCappedEventList::Serialize(), SerializeEventListColl(), and cmf::EventList::TotalEvents().

58  {
59 
60  cmf::DataVars dataVars;
61  cmf::TruthVars truthVars;
62  cmf::WeightVars weightVars;
63  cmf::EventId eventId;
64 
65  std::string eventidst("run/I:subrun/I:event/I:cycle/I:slice/I");
66  std::string datavarst("fNue_CVN/F:fNuE_NumMichel/F:fNu_RecoE/F:fHad_RecoE/F:fLep_RecoE/F:fLep_RecoE_MCFrac/F:fRecoQ2/F:fFake_Weight/F");
67  std::string weightvst("fXSecCVPPFX_Weight/F:fRPACCQE_Weight/F:fRPARES_Weight/F:fDISvnCC1pi_Weight/F:fEmpiricalMEC_Weight/F:fEmpiricalMECtoGENIEQE_Weight/F:fEmpiricalMECtoGENIERES_Weight/F:fOtherDIS_Weight/F:fXSecCVPPFX2020_Weight/F:fPPFXFluxCV_Weight/F");
68  std::string truthvrst("fTrueE/F:fTruePDG/F:fTrueCCNC/F:fTrueIntType/F:fTruePDGOrig/F:fTrueParentPDG/F:fTrueNucHit/F:fTrueParentPT/F:fTrueParentPZ/F:fTrueParentDecay/F:fTrueParentTargetPDG/F:fTrueIntMode/F");
69 
70  eventTree->Branch("eventId" , &eventId , eventidst.c_str());
71  eventTree->Branch("dataVars", &dataVars, datavarst.c_str());
72 
73  std::vector<unsigned char> systVarKeys;
74  std::vector<float> systVarMinus2Wgts;
75  std::vector<float> systVarMinus1Wgts;
76  std::vector<float> systVarPlus1Wgts;
77  std::vector<float> systVarPlus2Wgts;
78  if(md.isMC){
79  eventTree->Branch("truthVars" , &truthVars , truthvrst.c_str());
80  eventTree->Branch("weightVars", &weightVars, weightvst.c_str());
81  eventTree->Branch("systVarKeys", &systVarKeys );
82  eventTree->Branch("systVarMinus2Wgts", &systVarMinus2Wgts );
83  eventTree->Branch("systVarMinus1Wgts", &systVarMinus1Wgts );
84  eventTree->Branch("systVarPlus1Wgts", &systVarPlus1Wgts );
85  eventTree->Branch("systVarPlus2Wgts", &systVarPlus2Wgts );
86  } // end if MC
87 
88  for(auto & itr : events){
89 
90  eventId = itr->EventID();
91  dataVars = itr->DataVals().DataVars();
92 
93  if(md.isMC){
94  truthVars = itr->MCVals().TruthVars();
95  weightVars = itr->MCVals().WeightVars();
96  systVarKeys .clear();
97  systVarMinus2Wgts.clear();
98  systVarMinus1Wgts.clear();
99  systVarPlus1Wgts .clear();
100  systVarPlus2Wgts .clear();
101  for(auto const& systItr : itr->MCVals().SystematicShifts()){
102  systVarKeys.emplace_back(systItr.Type());
103  systVarMinus2Wgts.emplace_back(systItr.SigmaWeight(cmf::kMinus2Sigma));
104  systVarMinus1Wgts.emplace_back(systItr.SigmaWeight(cmf::kMinus1Sigma));
105  systVarPlus1Wgts .emplace_back(systItr.SigmaWeight(cmf::kPlus1Sigma));
106  systVarPlus2Wgts .emplace_back(systItr.SigmaWeight(cmf::kPlus2Sigma));
107  }
108  }
109 
110  eventTree->Fill();
111  }
112  }
void events(int which)
Definition: Cana.C:52
enum BeamMode string
static cmf::BeamType_t cmf::StringToBeamType ( std::string const &  str)
inlinestatic

Definition at line 258 of file StaticFuncs.h.

References kFHC, kRHC, and kUnknownBeam.

Referenced by InteractionTypeKey().

259 {
260  if (str == "RHC") return cmf::kRHC;
261  else if(str == "FHC") return cmf::kFHC;
262 
263  return cmf::kUnknownBeam;
264 }
static cmf::ChiSqrCalc_t cmf::StringToChiSqrType ( std::string const &  str)
static
static cmf::ContourType_t cmf::StringToContourType ( std::string const &  str)
static
static cmf::DetType_t cmf::StringToDetectorType ( std::string const &  str)
inlinestatic
static cmf::InteractionType_t cmf::StringToInteractionType ( std::string const &  str)
static
long cmf::StringToKey ( std::string const &  str)

Definition at line 15 of file Structs.cxx.

References cDetType_Strings(), DetectorTypeKey(), FileTypeKey(), InteractionTypeKey(), kBeam, kCosmicMuon, kDataFile, findDuplicateFiles::key, kNC, kNuEBarCC, kNuECC, kNuESelection, kNuESelectionHighPID, kNuESelectionLowPID, kNuESelectionMidPID, kNuESelectionPeripheral, kNuMuBarCC, kNuMuCC, kNuMuSelection, kNuMuSelectionQ1, kNuMuSelectionQ2, kNuMuSelectionQ3, kNuMuSelectionQ4, kNuTauBarCC, kNuTauCC, kRockFluxSwap, kRockNonSwap, kSwap, kTauSwap, PeriodKey(), SelectionTypeKey(), and StringToDetectorType().

16  {
17  long key = 0;
18 
19  // check for the detector
20  for(auto const& detItr : cmf::cDetType_Strings){
21  if(str.find(detItr) != std::string::npos)
23  }
24 
25  // check the period
26  if(str.find("Period") != std::string::npos)
27  key += cmf::PeriodKey(std::stol(str.substr(str.find("Period") + 6, std::string::npos)));
28  else if(str.find("P") != std::string::npos)
29  key += cmf::PeriodKey(std::stol(str.substr(str.find("P") + 1, std::string::npos)));
30 
31  // check the file type
32  if (str.find("Beam" ) != std::string::npos) key += cmf::FileTypeKey(cmf::kBeam );
33  else if(str.find("TauSwap" ) != std::string::npos) key += cmf::FileTypeKey(cmf::kTauSwap );
34  else if(str.find("FluxSwap" ) != std::string::npos) key += cmf::FileTypeKey(cmf::kSwap );
35  else if(str.find("RockFluxSwap") != std::string::npos) key += cmf::FileTypeKey(cmf::kRockFluxSwap);
36  else if(str.find("RockNonSwap" ) != std::string::npos) key += cmf::FileTypeKey(cmf::kRockNonSwap );
37  else if(str.find("Data" ) != std::string::npos) key += cmf::FileTypeKey(cmf::kDataFile );
38 
39  // check for a selection
40  if (str.find("NuMuSelQ1" ) != std::string::npos) key += cmf::SelectionTypeKey(cmf::kNuMuSelectionQ1 );
41  else if(str.find("NuMuSelQ2" ) != std::string::npos) key += cmf::SelectionTypeKey(cmf::kNuMuSelectionQ2 );
42  else if(str.find("NuMuSelQ3" ) != std::string::npos) key += cmf::SelectionTypeKey(cmf::kNuMuSelectionQ3 );
43  else if(str.find("NuMuSelQ4" ) != std::string::npos) key += cmf::SelectionTypeKey(cmf::kNuMuSelectionQ4 );
44  else if(str.find("NuMuSel" ) != std::string::npos) key += cmf::SelectionTypeKey(cmf::kNuMuSelection );
45  else if(str.find("NuESel_AllPID" ) != std::string::npos) key += cmf::SelectionTypeKey(cmf::kNuESelection );
46  else if(str.find("NuESel_LowPID" ) != std::string::npos) key += cmf::SelectionTypeKey(cmf::kNuESelectionLowPID );
47  else if(str.find("NuESel_MidPID" ) != std::string::npos) key += cmf::SelectionTypeKey(cmf::kNuESelectionMidPID );
48  else if(str.find("NuESel_HighPID" ) != std::string::npos) key += cmf::SelectionTypeKey(cmf::kNuESelectionHighPID );
49  else if(str.find("NuESel_Peripheral") != std::string::npos) key += cmf::SelectionTypeKey(cmf::kNuESelectionPeripheral);
50 
51  // check for an interaction type
52  if (str.find("NuMuCC" ) != std::string::npos) key += cmf::InteractionTypeKey(cmf::kNuMuCC );
53  else if(str.find("NuMuBarCC" ) != std::string::npos) key += cmf::InteractionTypeKey(cmf::kNuMuBarCC );
54  else if(str.find("NuECC" ) != std::string::npos) key += cmf::InteractionTypeKey(cmf::kNuECC );
55  else if(str.find("NuEBarCC" ) != std::string::npos) key += cmf::InteractionTypeKey(cmf::kNuEBarCC );
56  else if(str.find("NuTauCC" ) != std::string::npos) key += cmf::InteractionTypeKey(cmf::kNuTauCC );
57  else if(str.find("NuTauBarCC") != std::string::npos) key += cmf::InteractionTypeKey(cmf::kNuTauBarCC);
58  else if(str.find("NC" ) != std::string::npos) key += cmf::InteractionTypeKey(cmf::kNC );
59  else if(str.find("CosmicMuon") != std::string::npos) key += cmf::InteractionTypeKey(cmf::kCosmicMuon);
60 
61  // check if this is data or MC, multiply by +/- 1 depending on the answer
62  if (str.find("MC") != std::string::npos) key *= 1;
63  else if(str.find("Data") != std::string::npos) key *= -1;
64 
65  return key;
66  }
static long SelectionTypeKey(cmf::SelectionType_t const &st)
Definition: StaticFuncs.h:19
static long DetectorTypeKey(cmf::DetType_t const &det)
Definition: StaticFuncs.h:15
const std::vector< std::string > cDetType_Strings({"UnknownDet","NearDet","FarDet","MINOSNear","MINOSFar","AllDetectors"})
static long PeriodKey(long const &ep)
Definition: StaticFuncs.h:16
static cmf::DetType_t StringToDetectorType(std::string const &str)
Definition: StaticFuncs.h:267
static long InteractionTypeKey(cmf::InteractionType_t const &it)
Definition: StaticFuncs.h:20
static long FileTypeKey(cmf::FileType_t const &ft)
Definition: StaticFuncs.h:17
static cmf::OscParm_t cmf::StringToOscParmType ( std::string const &  str)
static
static cmf::SelectionType_t cmf::StringToSelectionType ( std::string const &  str)
inlinestatic

Definition at line 248 of file StaticFuncs.h.

References cSelectionType_Strings(), MECModelEnuComparisons::i, and kUnknownSelection.

Referenced by cmf::SelectionUtility::Initialize(), and InteractionTypeKey().

249 {
250  for(size_t i = 0; i < cmf::cSelectionType_Strings.size() - 1; ++i){
252  }
253 
254  return cmf::kUnknownSelection;
255 }
enum cmf::sel_type SelectionType_t
const std::vector< std::string > cSelectionType_Strings({"NuESel_AllPID","NuESel_LowPID","NuESel_MidPID","NuESel_HighPID","NuESel_Peripheral","NuMuSel","NuMuSelQ1","NuMuSelQ2","NuMuSelQ3","NuMuSelQ4","NCSel","UnknownSel"})
static uint8_t cmf::VarNameToKey ( std::string const &  name)
inlinestatic

Definition at line 395 of file StaticFuncs.h.

References febshutoff_auto::end, kUnknownVar, kVarNameToKey(), and MF_LOG_VERBATIM.

Referenced by cmf::ShifterAndWeighter::CMFSystVarWeight(), cmf::CAFToEventList::FillMCVals(), InteractionTypeKey(), and cmf::Parameter::Parameter().

396 {
397  auto const& itr = cmf::kVarNameToKey.find(name);
398  if(itr != cmf::kVarNameToKey.end()) return itr->second;
399  MF_LOG_VERBATIM("VarNameToKey")
400  << "Variable name "
401  << name
402  << " does not correspond to any key, returning 0";
403 
404  return cmf::kUnknownVar;
405 }
const XML_Char * name
Definition: expat.h:151
static const std::map< std::string, uint8_t > kVarNameToKey({{"NuE_CVN", cmf::kNuE_CVN},{"NuE_NumMichel", cmf::kNuE_NumMichel},{"Had_RecoE", cmf::kHad_RecoE},{"Lep_RecoE", cmf::kLep_RecoE},{"Nu_RecoE", cmf::kNu_RecoE},{"Lep_RecoE_MCFrac", cmf::kLep_RecoE_MCFrac},{"Reco_Q2", cmf::kRecoQ2},{"Fake_Weight", cmf::kFake_Weight},{"TrueE", cmf::kTrueE},{"TruePDG", cmf::kTruePDG},{"TrueCCNC", cmf::kTrueCCNC},{"TrueIntType", cmf::kTrueIntType},{"TruePDGOrig", cmf::kTruePDGOrig},{"TrueParentPDG", cmf::kTrueParentPDG},{"TrueParentPT", cmf::kTrueParentPT},{"TrueParentPZ", cmf::kTrueParentPZ},{"TrueParentDecay", cmf::kTrueParentDecay},{"TrueParentTargetPDG", cmf::kTrueParentTargetPDG},{"TrueHitNuc", cmf::kTrueHitNuc},{"TrueIntMode", cmf::kTrueIntMode},{"XsecCV2020", cmf::kXSecCV2020Wgt},{"PPFXFluxCV", cmf::kPPFXFluxCVWgt},{"RPARES", cmf::kRPARES_Weight},{"UnCorrNDMuEScaleSyst2020", cmf::kUnCorrNDMuEScaleSyst2020},{"UnCorrMuCatMuESyst2020", cmf::kUnCorrMuCatMuESyst2020},{"PileupMuESyst2020", cmf::kPileupMuESyst2020},{"CorrMuEScaleSyst2020", cmf::kCorrMuEScaleSyst2020},{"NeutronEvisPrimariesSyst2018", cmf::kNeutronVisEScalePrimariesSyst2018},{"MichelTaggingSyst2020", cmf::kMichelTaggingSyst2020},{"llND", cmf::kLightModelND},{"llFD", cmf::kLightModelFD},{"cherenkov", cmf::kCherenkov},{"calibND", cmf::kAbsoluteCalibrationND},{"calibFD", cmf::kAbsoluteCalibrationFD},{"calibshapeND", cmf::kCalibShapeND},{"calibshapeFD", cmf::kCalibShapeFD},{"detectoraging", cmf::kDetectorAging},{"NormalizationPOT", cmf::kNormalizationPOT},{"NormalizationNDMass", cmf::kNormalizationNDMass},{"NormalizationFDMass", cmf::kNormalizationFDMass},{"NormalizationML", cmf::kNormalizationML},{"NormalizationFHCNuMuContext", cmf::kNormalizationFHCNuMuContext},{"NormalizationRHCNuMuContext", cmf::kNormalizationRHCNuMuContext},{"NormalizationFHCNuEContext", cmf::kNormalizationFHCNuEContext},{"NormalizationRHCNuEContext", cmf::kNormalizationRHCNuEContext},{"NormalizationFHCNCContext", cmf::kNormalizationFHCNCContext},{"NormalizationRHCNCContext", cmf::kNormalizationRHCNCContext},{"MaNCEL", cmf::kMaNCEL},{"EtaNCEL", cmf::kEtaNCEL},{"AhtBY", cmf::kAhtBY},{"BhtBY", cmf::kBhtBY},{"CV1uBY", cmf::kCV1uBY},{"CV2uBY", cmf::kCV2uBY},{"AGKY_xF1pi", cmf::kAGKY_xF1pi},{"AGKY_pT1pi", cmf::kAGKY_pT1pi},{"BR1gamma", cmf::kBR1gamma},{"BR1eta", cmf::kBR1eta},{"Theta_Delta2Npi", cmf::kTheta_Delta2Npi},{"MvCCRES", cmf::kMvCCRES},{"MaCCRES", cmf::kMaCCRES},{"MvNCRES", cmf::kMvNCRES},{"MaNCRES", cmf::kMaNCRES},{"RPACCQEshapeEnh", cmf::kRPACCQEshapeEnh},{"RPACCQEshapeSupp", cmf::kRPACCQEshapeSupp},{"COHCCScale2018", cmf::kCOHCCScaleSyst2018},{"COHNCScale2018", cmf::kCOHNCScaleSyst2018},{"ZExpAxialFFSyst2020_eV1", cmf::kZExpEV1Syst2020},{"ZExpAxialFFSyst2020_eV2", cmf::kZExpEV2Syst2020},{"ZExpAxialFFSyst2020_eV3", cmf::kZExpEV3Syst2020},{"ZExpAxialFFSyst2020_eV4", cmf::kZExpEV4Syst2020},{"ZNormCCQE", cmf::kZNormCCQE},{"RESLowQ2SuppSyst2020", cmf::kRESLowQ2SuppSyst2020},{"hNFSISyst2020_MFP", cmf::khNFSISyst2020_MFP},{"hNFSISyst2020_EV1", cmf::khNFSISyst2020_EV1},{"MECEnuShapeSyst2020Nu", cmf::kMECEnuShapeSyst2020Nu},{"MECEnuShapeSyst2020AntiNu", cmf::kMECEnuShapeSyst2020AntiNu},{"MECShapeSyst2020Nu", cmf::kMECShapeSyst2020Nu},{"MECShapeSyst2020AntiNu", cmf::kMECShapeSyst2020AntiNu},{"MECInitStateNPFracSyst2020Nu", cmf::kMECInitStateNPFracSyst2020Nu},{"MECInitStateNPFracSyst2020AntiNu", cmf::kMECInitStateNPFracSyst2020AntiNu},{"RadCorrNue", cmf::kRadCorrNue},{"RadCorrNuebar", cmf::kRadCorrNuebar},{"2ndClassCurrs", cmf::k2ndClassCurrs},{"Norm_1Nux", cmf::kNorm_1Nux},{"MeanQ0_1Nux", cmf::kMeanQ0_1Nux},{"MeanQ3_1Nux", cmf::kMeanQ3_1Nux},{"SigmaQ0_1Nux", cmf::kSigmaQ0_1Nux},{"SigmaQ3_1Nux", cmf::kSigmaQ3_1Nux},{"Corr_1Nux", cmf::kCorr_1Nux},{"Norm_2Nux", cmf::kNorm_2Nux},{"MeanQ0_2Nux", cmf::kMeanQ0_2Nux},{"MeanQ3_2Nux", cmf::kMeanQ3_2Nux},{"SigmaQ0_2Nux", cmf::kSigmaQ0_2Nux},{"SigmaQ3_2Nux", cmf::kSigmaQ3_2Nux},{"Corr_2Nux", cmf::kCorr_2Nux},{"BaselineNux", cmf::kBaselineNux},{"TauScaleSyst", cmf::kTauScaleSyst},{"DISvpCC0pi_2020", cmf::kDISvpCC0pi_2020},{"DISvpCC1pi_2020", cmf::kDISvpCC1pi_2020},{"DISvpCC2pi_2020", cmf::kDISvpCC2pi_2020},{"DISvpCC3pi_2020", cmf::kDISvpCC3pi_2020},{"DISvpNC0pi_2020", cmf::kDISvpNC0pi_2020},{"DISvpNC1pi_2020", cmf::kDISvpNC1pi_2020},{"DISvpNC2pi_2020", cmf::kDISvpNC2pi_2020},{"DISvpNC3pi_2020", cmf::kDISvpNC3pi_2020},{"DISvnCC0pi_2020", cmf::kDISvnCC0pi_2020},{"DISvnCC1pi_2020", cmf::kDISvnCC1pi_2020},{"DISvnCC2pi_2020", cmf::kDISvnCC2pi_2020},{"DISvnCC3pi_2020", cmf::kDISvnCC3pi_2020},{"DISvnNC0pi_2020", cmf::kDISvnNC0pi_2020},{"DISvnNC1pi_2020", cmf::kDISvnNC1pi_2020},{"DISvnNC2pi_2020", cmf::kDISvnNC2pi_2020},{"DISvnNC3pi_2020", cmf::kDISvnNC3pi_2020},{"DISvbarpCC0pi_2020", cmf::kDISvbarpCC0pi_2020},{"DISvbarpCC1pi_2020", cmf::kDISvbarpCC1pi_2020},{"DISvbarpCC2pi_2020", cmf::kDISvbarpCC2pi_2020},{"DISvbarpCC3pi_2020", cmf::kDISvbarpCC3pi_2020},{"DISvbarpNC0pi_2020", cmf::kDISvbarpNC0pi_2020},{"DISvbarpNC1pi_2020", cmf::kDISvbarpNC1pi_2020},{"DISvbarpNC2pi_2020", cmf::kDISvbarpNC2pi_2020},{"DISvbarpNC3pi_2020", cmf::kDISvbarpNC3pi_2020},{"DISvbarnCC0pi_2020", cmf::kDISvbarnCC0pi_2020},{"DISvbarnCC1pi_2020", cmf::kDISvbarnCC1pi_2020},{"DISvbarnCC2pi_2020", cmf::kDISvbarnCC2pi_2020},{"DISvbarnCC3pi_2020", cmf::kDISvbarnCC3pi_2020},{"DISvbarnNC0pi_2020", cmf::kDISvbarnNC0pi_2020},{"DISvbarnNC1pi_2020", cmf::kDISvbarnNC1pi_2020},{"DISvbarnNC2pi_2020", cmf::kDISvbarnNC2pi_2020},{"DISvbarnNC3pi_2020", cmf::kDISvbarnNC3pi_2020},{"FormZone_2020", cmf::kFormZone_2020},{"hNFSISyst2020_EV2", cmf::khNFSISyst2020_EV2},{"hNFSISyst2020_EV3", cmf::khNFSISyst2020_EV3},{"COHCCScaleSyst2018", cmf::kCOHCCScaleSyst2018},{"COHNCScaleSyst2018", cmf::kCOHNCScaleSyst2018},{"FluxPCA00", cmf::kFluxPCA00},{"FluxPCA01", cmf::kFluxPCA01},{"FluxPCA02", cmf::kFluxPCA02},{"FluxPCA03", cmf::kFluxPCA03},{"FluxPCA04", cmf::kFluxPCA04},{"KaonSyst", cmf::kKaonSyst},{"-2sigma", cmf::kMinus2Sigma},{"-1sigma", cmf::kMinus1Sigma},{"+1sigma", cmf::kPlus1Sigma},{"+2sigma", cmf::kPlus2Sigma}})
#define MF_LOG_VERBATIM(category)

Variable Documentation

int cmf::gBin
static

Definition at line 22 of file SpectrumTools.cxx.

Referenced by FillSpectrumFromSingleList().

cmf::ChiSqrCalc_t cmf::gChiSqrCalc

Definition at line 43 of file CovarianceFitHelper.cxx.

ChiSqrCalculator* cmf::gChiSqrCalculator = nullptr
static

Definition at line 18 of file ChiSqrCalculator.cxx.

Referenced by cmf::ChiSqrCalculator::Instance().

CovarianceBinUtility* cmf::gCovBinUtil = nullptr
static

Definition at line 15 of file CovarianceBinUtility.cxx.

Referenced by cmf::CovarianceBinUtility::Instance().

CovarianceFitHelper* cmf::gCovFitHelp = nullptr
static

Definition at line 34 of file CovarianceFitHelper.cxx.

Referenced by cmf::CovarianceFitHelper::Instance().

std::unique_ptr<cmf::ExposureMap> cmf::gExposureMap

Definition at line 38 of file CovarianceFitHelper.cxx.

ROOT::Math::Minimizer* cmf::gFFMin

Definition at line 42 of file CovarianceFitHelper.cxx.

std::unique_ptr<std::vector<std::string> > cmf::gFFNames

Definition at line 41 of file CovarianceFitHelper.cxx.

std::unique_ptr<std::vector<double> > cmf::gFFVals

Definition at line 40 of file CovarianceFitHelper.cxx.

float cmf::gHadE
static

Definition at line 21 of file SpectrumTools.cxx.

float cmf::gLepE
static

Definition at line 19 of file SpectrumTools.cxx.

std::unique_ptr<cmf::Location> cmf::gLoc

Definition at line 39 of file CovarianceFitHelper.cxx.

SpectrumPredictionMaker* cmf::gLPU = nullptr
static

Definition at line 20 of file SpectrumPredictionMaker.cxx.

Referenced by cmf::SpectrumPredictionMaker::Instance().

std::unique_ptr<cmf::EventListColl> cmf::gMCEventLists

Definition at line 37 of file CovarianceFitHelper.cxx.

double cmf::gMinChiSqr
int cmf::gMinStatus

Definition at line 45 of file CovarianceFitHelper.cxx.

Referenced by cmf::CovarianceFitHelper::Result().

double cmf::gNormalization
static

Definition at line 18 of file SpectrumTools.cxx.

Referenced by FillSpectrumFromSingleList().

int cmf::gOffset
static

Definition at line 23 of file SpectrumTools.cxx.

ParameterUtility* cmf::gParUtil = nullptr
static

Definition at line 81 of file ParameterUtility.cxx.

Referenced by cmf::ParameterUtility::Instance().

const double cmf::gPI = 3.141592653589793238462643383279502884
static

Definition at line 46 of file CovarianceFitHelper.cxx.

PlotUtilities* cmf::gPlotUtil = nullptr
static

Definition at line 23 of file PlotUtilities.cxx.

Referenced by cmf::PlotUtilities::Instance().

float cmf::gRecoE
static

Definition at line 20 of file SpectrumTools.cxx.

RandomUniverseUtility* cmf::gRUU = nullptr
static

Definition at line 20 of file RandomUniverseUtility.cxx.

Referenced by cmf::RandomUniverseUtility::Instance().

ShifterAndWeighter* cmf::gShifterAndWeighter = nullptr
static

Definition at line 31 of file ShifterAndWeighter.cxx.

Referenced by cmf::ShifterAndWeighter::Instance().

SelectionUtility* cmf::gSU = nullptr
static

Definition at line 9 of file SelectionUtility.cxx.

Referenced by cmf::SelectionUtility::Instance().

double cmf::gWeight
static

Definition at line 17 of file SpectrumTools.cxx.

Referenced by FillSpectrumFromSingleList().

const double cmf::kGarbageDouble = std::numeric_limits<double>::max()
static
const float cmf::kGarbageFloat = std::numeric_limits<float >::max()
static

Definition at line 19 of file Constants.h.

Referenced by cmf::FitFeldmanCousinsPoint::reconfigure().

const uint8_t cmf::kNumCalibSysts = kLastCalibrationVar - kFirstCalibrationVar + 1
static

Definition at line 559 of file Constants.h.

const uint8_t cmf::kNumEShiftSysts = kLastEShiftVar - kFirstEShiftVar + 1
static

Definition at line 560 of file Constants.h.

const uint8_t cmf::kNumNormSysts = kLastNormalizationVar - kFirstNormalizationVar + 1
static

Definition at line 561 of file Constants.h.

const uint8_t cmf::kNumSigmaSysts = kLastSigmaVar - kFirstSigmaVar + 1
static

Definition at line 558 of file Constants.h.