Functions | Variables
makeCovMatrix.C File Reference
#include <TMatrixD.h>

Go to the source code of this file.

Functions

 for (int i=0;i< nP;i++)
 
tMat SetMatrixArray (tFlt)
 
tMat Write ("tMat", TObject::kOverwrite)
 
fMat Close ()
 
 exit (0)
 

Variables

TFile * fMat = new TFile("tmat.out.root","recreate")
 
double tDat [nP][nP]
 
double tFlt [nP *nP] = {0.}
 
TMatrixD tMat (nP, nP)
 

Function Documentation

fMat Close ( )
exit ( )

Referenced by ana::FCSurface::Add(), genie::AlgConfigPool::AddBasicParameter(), genie::flux::GAtmoFlux::AddFluxFile(), TCAttrib::adjust_tmo(), genie::LHAPDF6::AllPDFs(), mcdatadaq::MockDataDAQAna::analyze(), earms::ElasticArmsValidate::analyze(), ApplicationSA(), genie::Registry::AssertExistence(), genie::GHepParticle::AssertIsKnownParticle(), genie::KineGeneratorWithCache::AssertXSecLimits(), AssignCut(), INukeOsetTable::badFile(), om::TestTMapFile::beginJob(), ana::GenieMultiverseSpectra::BuildKnobConfigTable(), ana::GenieMultiverseParameters::BuildKnobConfigTable(), genie::geometry::ROOTGeomAnalyzer::BuildListOfTargetNuclei(), BuildSpectrum(), Calculate_covariances(), ana::CalculateFluxAndNoCorrelatedErrorBand(), genie::COHHadronicSystemGenerator::CalculateHadronicSystem_AlvarezRuso(), ana::CalculateIntegratedFlux(), caf::Proxy< caf::SRCosmic >::CheckEquals(), ana::CheckSystsMatchWithNOvARwgt(), genie::utils::math::CholeskyDecomposition(), genie::utils::math::CholeskyGenerateCorrelatedParams(), CLAApplication(), genie::Registry::CloneRegistryItem(), compare_cos_numi(), keras::LayerMaxPooling::compute_output(), genie::GMCJDriver::ComputeInteractionProbabilities(), genie::geometry::ROOTGeomAnalyzer::ComputeMaxPathLengths(), ConvertToGTracker(), CreateRockBoxSelection(), evgb::CRYHelper::CRYHelper(), mjf_common::dataset_defs(), genie::alvarezruso::AlvarezRusoCOHPiPDXSec::DeltaWidthPauliBlocked(), demoFitSlices(), ControllerView.ControllerView::draw_plots(), DrawDeltaChiSqrWithContours(), estimate_cosmics(), estimate_cosmics_triggeronly(), common_tools::fetchLogs(), genie::masterclass::GNuMcMainFrame::FileOpen(), FillQrkArray(), novaddt::SlowMMTrigger::filter(), chaninfo::FindSwappedChannels::filter(), genie::Algorithm::FindConfig(), for(), fragmentAngularDistribution(), fragmentAngularDistributionGM(), genie::NNBarOscPrimaryVtxGenerator::GenerateDecayProducts(), genie::GMCJDriver::GenerateEvent1Try(), genie::GMCJDriver::GenerateEventKinematics(), GenerateEventsAtFixedInitState(), genie::KNOHadronization::GenerateHadronCodes(), genie::flux::GJPARCNuFlux::GenerateNext_weighted(), genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), genie::flux::GNuMIFlux::GenerateNext_weighted(), genie::LocalFGM::GenerateNucleon(), genie::EffectiveSF::GenerateNucleon(), genie::FGMBodekRitchie::GenerateNucleon(), genie::geometry::ROOTGeomAnalyzer::GenerateVertex(), evgen::GENIENeutronOscGen::GENIENeutronOscGen(), geom(), get_cosmic_sample(), genie::AlgFactory::GetAlgorithm(), GetAlgorithms(), GetCommandLineArgs(), GetEventRange(), GetFlux(), ana::GetFractionalError(), GetGeometry(), GetIntranuke(), GetLoaders2017FakeData(), GetNueData2018(), GetNueData2019(), GetNuePrediction2018(), GetNuePrediction2019(), ana::GetNuePrediction2020(), GetNumuCosmics2017(), GetNumuCosmics2018(), GetNumuCosmics2019(), ana::GetNumuCosmics2020(), GetNumuCosmicsFuture(), GetNumuData2017(), GetNumuData2018(), GetNumuData2019(), ana::GetNumuPredictions2020(), runNovaSAM::getOutDir(), runNovaSAM_cmake::getOutDir(), runNovaSAM::getOutputFileName(), runNovaSAM_cmake::getOutputFileName(), genie::COHHadronicSystemGenerator::getPionPDGCodeFromXclTag(), ProductionTestTools::getSamDefinitionFiles(), ProductionTestTools::getSAMMetaData(), getSample(), ProductionTestTools::getSAMProjectStatus(), genie::XSecSplineList::GetSpline(), GetTargetCodes(), genie::geometry::ROOTGeomAnalyzer::GetWeight(), genie::utils::xml::GetXMLPathList(), GetZExpSystematic(), genie::LHAPDF5::Initialize(), Initialize(), evgen::GENIENeutronOscGen::initializeNeutronOscGenerator(), genie::EmpiricalMECPXSec2015::Integral(), genie::LwlynSmithQELCCPXSec::Integral(), genie::NievesQELCCPXSec::Integral(), om::IPC::IPC(), daqchannelmap::DAQChannelMapBaseOLD::isinitBlockOrderInDiblock(), daqchannelmap::DAQChannelMapBaseOLD::isinitNumberOfCellsPerDCMInDiblock(), daqchannelmap::DAQChannelMapBaseOLD::isinitNumberOfDCMsInDiblockDetector(), daqchannelmap::DAQChannelMapBaseOLD::isinitNumberOfTypePlanesInBlock(), daqchannelmap::DAQChannelMapBaseOLD::isinitPlanesInBlockAndDiblockDetector(), daqchannelmap::DAQChannelMapBaseOLD::isinitPlanesInBlockID(), daqchannelmap::DAQChannelMapBaseOLD::isinitPlanesInDiblockID(), daqchannelmap::DAQChannelMapBaseOLD::isinitStartPlaneTypeInBlock(), genie::utils::kinematics::Jacobian(), joint_fit_2017_contours(), joint_fit_2017_slices(), joint_fit_2018_contours(), joint_fit_2018_slices(), joint_fit_2019_bestfit(), joint_fit_2019_contours(), joint_fit_2019_slices(), TCAttrib::keypress(), genie::FermiMover::KickHitNucleon(), load(), genie::geometry::ROOTGeomAnalyzer::Load(), load_libs_3flavor(), load_libs_muonid(), load_libs_nuebarccinc(), load_libs_nueccinc(), load_libs_numubarccinc(), load_libs_numucc2p2h(), load_libs_numucc_0Pi(), load_libs_numuccinc(), load_libs_nuxana(), genie::flux::GJPARCNuFlux::LoadBeamSimData(), genie::flux::GDk2NuFlux::LoadBeamSimData(), genie::flux::GNuMIFlux::LoadBeamSimData(), genie::BaryonResonanceDecayer::LoadConfig(), genie::LHAPDF6::LoadConfig(), genie::NievesQELCCPXSec::LoadConfig(), genie::GSimFiles::LoadFromFile(), loadlibs(), readNtuple::Loop(), main(), make_fc_nus_surfs_nersc_2019(), make_fc_surfaces_2020(), make_fc_surfaces_2020_validation(), make_fc_surfaces_nersc_2018(), make_fc_surfaces_nersc_2019(), make_nueFDprediction_kinematics_FHC_REW(), make_nueFDprediction_kinematics_RHC_REW(), Controller.Controller::make_output_directory(), CalibAnaPlot::MakeDir(), MakeDir(), MakeFakeExperiment(), MakeNus17CosBkgd(), MakeNus18CosBkgd(), rsim::ExcessNoiseMaker::MakeTemplate(), keras::missing_activation_impl(), NeutronOscGenerator(), genie::masterclass::GNuMcMainFrame::NextEvent(), NucleonDecayGenerator(), caf::Proxy< caf::SRCosmic >::operator=(), ana::CutOptimization::Optimize(), ana::CutOptimization::OptimizedSigmaOverSigma(), MCenterSpills::options(), nova_uptime::options(), genie::utils::res::OrbitalAngularMom(), FindNearlineConfig::ParseArguments(), ParseFEBList(), ParseFluxFileConfig(), ParseFluxHst(), TierConfigurations::parseTierConfiguration(), plot_joint_fit_2020_slices(), plot_nuCrystalBall(), plot_xsecs(), PlotDeltaFractionVsSignificance(), PlotDeltaFractionVsYear(), PlotSignificanceVsYear_FixDelta(), PlotSignificanceVsYear_FixTh23(), evd::SliceNavigator::postProcessEvent(), evdb::EventDisplay::postProcessEvent(), genie::GMCJDriver::PreCalcFluxProbabilities(), genie::GMCJDriver::PreGenFluxInteractionProbability(), print_nus17_fd_cut_tables(), print_nus17_fd_cut_tables2D(), genie::DFRHadronicSystemGenerator::ProcessEventRecord(), genie::RESKinematicsGenerator::ProcessEventRecord(), genie::QELEventGenerator::ProcessEventRecord(), genie::EventGenerator::ProcessEventRecord(), genie::QELEventGeneratorSM::ProcessEventRecord(), getGoodRuns4SAM::processFarDetData(), getGoodRuns4SAM::processNearDetData(), murem::MergeDigits::produce(), genie::SmithMonizUtils::Q2QES_SM_lim(), evdb::FileMenu::Quit(), genie::utils::mec::Qvalue(), genie::RandomGen::RandomGen(), reach_2018_dCPfractions(), daqdataformats::RawDAQData::readDataGeneral(), locator::CelestialLocator::reconfigure(), genie::utils::res::ResonanceIndex(), genie::alvarezruso::integrationtools::RGN1D(), genie::alvarezruso::integrationtools::RGN2D(), genie::utils::nuclear::RQEFG_generic(), novadaq::BackgroundProcess::run(), run_joint_fit_2020_bestfit(), run_joint_fit_2020_contours(), run_joint_fit_2020_slices(), genie::Registry::SafeFind(), ProductionTestTools::samDefinitionSummary(), evgen::SingleGen::Sample(), SaveToPsFile(), genie::flux::GNuMIFlux::ScanForMaxWeight(), evgen::GENIENeutronOscGen::selectAnnihilationMode(), SelectAnnihilationMode(), genie::KNOPythiaHadronization::SelectHadronizer(), SelectInitState(), genie::alvarezruso::AlvarezRusoCOHPiPDXSec::SetCurrent(), genie::alvarezruso::AlvarezRusoCOHPiPDXSec::SetFlavour(), genie::SmithMonizUtils::SetInteraction(), genie::alvarezruso::integrationtools::SGNR(), specprod_numuccinc(), specprod_systematics(), genie::utils::StringToQELBindingMode(), test_stanfit_withsysts(), genie::KPhaseSpace::Threshold(), Projections::tierEfficiency(), ana::CutOptimization::ToHist(), calib::PCHitsList::TrueW(), genie::TuneId::TuneId(), Tutorial2019FitSlices(), genie::utils::units::UnitFromString(), windef::usage(), ValidateRootFile(), genie::NievesQELCCPXSec::vcr(), genie::utils::app_init::XSecTable(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().

for ( )

Definition at line 29 of file makeCovMatrix.C.

References om::cout, allTimeWatchdog::endl, exit(), MECModelEnuComparisons::i, calib::j, and tMat.

29  {
30  for (int j=0;j<nP;j++) {
31  if (tFlt[j*nP+i] != tDat[i][j] && i > j)
32  {
33  std::cout<< "Matrix needs to be symmetric!" << std::endl;
34  std::cout<< i<<","<<j<<": "<<tFlt[j*nP+i] <<","<< tDat[i][j]<<std::endl;
35  exit(1);
36  }
37  tFlt[i*nP+j] = tDat[i][j];
38  }}
double tFlt[nP *nP]
Definition: makeCovMatrix.C:28
double tDat[nP][nP]
Definition: makeCovMatrix.C:21
const double j
Definition: BetheBloch.cxx:29
OStream cout
Definition: OStream.cxx:6
exit(0)
tMat SetMatrixArray ( tFlt  )
tMat Write ( "tMat"  ,
TObject::kOverwrite   
)

Variable Documentation

TFile* fMat = new TFile("tmat.out.root","recreate")

Definition at line 18 of file makeCovMatrix.C.

double tDat[nP][nP]
Initial value:
=
{{0.0154582, 0.0451836, -0.215641, 0.20647},
{0.0451836, 1.08091, -2.38702, 1.0386},
{-0.215641, -2.38702, 6.53568, -4.76577},
{0.20647, 1.0386, -4.76577, 7.39832} }

Definition at line 21 of file makeCovMatrix.C.

double tFlt[nP *nP] = {0.}

Definition at line 28 of file makeCovMatrix.C.

TMatrixD tMat(nP, nP)

Referenced by for().