Functions | Variables
macro.C File Reference

Go to the source code of this file.

Functions

TFile f ("human_phantom.root")
 
ntuple Print ()
 
ntuple GetBranch ("organID") -> SetAddress(&xx)
 
ntuple GetBranch ("edep") -> SetAddress(&edep)
 
 for (Int_t i=0;i< nevent;i++)
 

Variables

TDirectory * dir = (TDirectory*)f.Get("human_phantom_ntuple")
 
TTree * ntuple = (TTree*)dir->Get("1")
 
Int_t nevent = Int_t(ntuple->GetEntries())
 
Double_t xx
 
Double_t edep
 

Function Documentation

TFile f ( "human_phantom.root"  )
for ( )

Definition at line 17 of file macro.C.

References om::cout, allTimeWatchdog::endl, and MECModelEnuComparisons::i.

17  {
18  ntuple->GetEvent(i);
19  cout << "organ ID, edep (MeV): "
20  << xx << ", " << edep << endl;
21  }
Double_t xx
Definition: macro.C:12
TTree * ntuple
Definition: macro.C:6
Double_t edep
Definition: macro.C:13
OStream cout
Definition: OStream.cxx:6
ntuple GetBranch ( "organID"  ) -> SetAddress(&xx)
ntuple GetBranch ( "edep"  ) -> SetAddress(&edep)
ntuple Print ( )

Definition at line 91 of file Icons.cxx.

References om::Icons::Find(), and r().

Referenced by om::ButtonBank::ButtonBank().

92  {
93  static const std::string s = Find("control_print_blue.png");
94  static const TGPicture* r = 0;
95  if (r==0) r = gClient->GetPicture(s.c_str());
96  return r;
97  }
const XML_Char * s
Definition: expat.h:262
const char * Find(const char *fname)
Definition: Icons.cxx:12
::xsd::cxx::tree::string< char, simple_type > string
Definition: Database.h:154
TRandom3 r(0)

Variable Documentation

TDirectory* dir = (TDirectory*)f.Get("human_phantom_ntuple")

Definition at line 5 of file macro.C.

Referenced by ana::ReweightableSpectrum::_SaveTo(), dqsf::DQSpillFlags::AccumulateSyncMetric(), ana::MultiExperiment::Add(), caf::AddCosmicTruthToVec(), ana::FluxMultiverseSyst::AllUniverses(), ana::GenieMultiverseSpectra::AllUniverses(), comi::CosmicMetrics::analyze(), calib::HitEfficiency::analyze(), beamlinereco::EventWaveformDump::analyze(), earms::ElasticArmsValidate::analyze(), rockmuon::NDRockMuon::analyze(), comi::NearlineAna::analyze(), ncs::Xeff::analyze(), moonshadowana::MoonShadowAna::analyze(), moonshadowana::MoonShadowAnaHough::analyze(), ncs::NCAna::analyze(), AnaResultsLoad(), ana::TwoSampleDecomp::AntiNueComponent(), ApplicationSA(), beamlinereco::EventWaveformDump::beginJob(), braggPeak(), slid::ParticleIDAlg::CalcCellPlaneTransverseDedx(), slid::ParticleIDAlg::CalcPlaneTransverseDedx(), dt::Chain::Chain(), dt::DiscreteTracker::CheckAndFixSparseChain(), checkBeam(), caf::Proxy< caf::SRShower >::CheckEquals(), caf::Proxy< caf::SRTrack >::CheckEquals(), caf::Proxy< caf::SRProng >::CheckEquals(), CLAApplication(), genie::geometry::FidPolyhedron::clear(), geo::GeometryBase::ClosestApproach(), dt::Cand::ClosestToEndCell(), genie::TuneId::CMCDirectory(), ana::DataMCPair::CName(), ana::IPrediction::ComponentNCAnti(), config_parser::config_parser(), ana::constructBPFPng3dVar(), convert(), genie::geometry::PlaneParam::ConvertMaster2Top(), ProductionTestTools::convertSize(), ProductionTestTools::cosmicVetoEfficiencyDefunct(), ProductionTestTools::countEventsInRootFile(), ana::CountingExperiment::CountingExperiment(), ana::CovMxManager::CovMxManager(), ana::NCDecomp::Data_Component(), ana::NueDecomp::Data_Component(), ana::NumuDecomp::Data_Component(), ana::ProportionalDecomp::Data_Component(), dataprocess_numuccinc(), DataVtxDistributionLoad(), ViewHTML::definitionListToExplorerData(), ana::ReactorExperiment::Derivative(), ana::SolarConstraints::Derivative(), dif::DiFShowerFinder::distancefromtrack(), slid::DeconvolveAlg::DistanceToCore(), testbeam::BeamlineEventDisplay::DrawNOvATracks(), EHadVisMECpairs(), calib::CosmicCalib::endJob(), calib::MakeAttenuationProfiles::endJob(), calib::AttenFit::endJob(), Tier.Tier::executeProcess(), TMVA::TMVAGlob::ExistMethodName(), dt::DiscreteTracker::ExtendChain(), ExtendedAxesLoad(), genie::geometry::FidCylinder::FidCylinder(), genie::geometry::FidSphere::FidSphere(), genie::masterclass::GNuMcMainFrame::FileOpen(), filter::Filter::FillTrackVariables(), novaddt::MoonShadow::filter(), trk::KalmanTrack::FilterOnly(), trk::KalmanTrack::FilterTracker(), FindE(), TMVA::TMVAGlob::FindMethod(), common_tools::findRootOutput(), trk::KalmanTrack::FindTracks(), FindW(), ana::FitInAnaBinsBkgdEstimator::FitInAnaBinsBkgdEstimator(), tut::TutProducer::FitPhoton(), FitSystEffectsLoad(), trk::WindowTrackingAlg::FitView(), fragmentAngularDistribution(), fragmentAngularDistributionGM(), fragmentAngularDistributionHistogram(), fragmentEnergy(), fragmentEnergyDistributionDifferentAngles(), fragmentYields(), fragmentYieldsPlot(), geo::LiveGeometry::FullNDProjectedCells(), futureSig_reach_singlePOTcombo_syst(), generate_fc_binlists(), ana::GenieMultiverseNormalizedSpectra::GenieMultiverseNormalizedSpectra(), get_fdmc_spectra(), ana::ISurface::GetBestFitY(), jmshower::RecoJMShower::GetCellTransDedx(), TMVAGlob::GetCorrelationPlotsDir(), Plotter::GetDataPlots(), TMVAGlob::GetInputVariablesDir(), ana::NusSystShift::GetLabel(), TMVA::TMVAGlob::GetListOfKeys(), TMVA::TMVAGlob::GetListOfMethods(), TMVA::TMVAGlob::GetListOfTitles(), GetMatrices(), Plotter::GetMCPlots(), nuesand::FillNueSandbox::GetMincell(), xsrec::MakeXSecCCPi0Inc::GetMuIdx(), ana::NusSystMaker::GetNominal(), ana::GetNueCosmics2020(), GetNueCosmicsFuture(), ana::GetNueData2020(), ana::GetNuePrediction2020(), GetNuePredPath(), GetNumuCosmics2017(), GetNumuCosmics2018(), GetNumuCosmics2019(), ana::GetNumuCosmics2020(), GetNumuCosmicsFuture(), GetNumuData2017(), ana::GetNumuData2020(), GetNumuPredictionsFuture(), dt::View::GetPlanes(), jmshower::NueSelLID::GetPointDoca(), jmshower::RecoJMShower::GetPointDoca(), ana::FrequentistSurface::GetProfiledHists(), shadow::NOVASLocate::GetRaDec(), ProductionTestTools::getSamDefinitionFiles(), ProductionTestTools::getSAMMetaData(), ProductionTestTools::getSAMProjectStatus(), numusand::NumuSandFxs::getScatt(), cosrej::CosRejFxs::getScatt(), ana::PredictionSystJoint2018::GetShiftedPrediction(), ana::PredictionSystJointDemo::GetShiftedPrediction(), ana::PredictionSyst3Flavor2020::GetShiftedPrediction(), ana::CovMxSurface::GetSpectra(), ana::PredictionScaleComp::GetSpectra(), ana::NusSystematicsMaker::GetSystMakers(), GetSystsFromFile(), jmshower::JMShower::GetTransHits(), ana::SpectrumLoader::HandleFile(), tf::TimingFitAlg::HoughFit(), TMVA::TMVAGlob::imgconv(), ProductionTestTools::inspectFile(), genie::geometry::FidSphere::Intercept(), geo::GeometryBase::isDetectorBigBoxUsed(), ProductionTestTools::isFileBeingWrittenInto(), remid::RecoMuon::IsTrackContained(), ana::GenericSystematicDef< SRType >::IsTwoSided(), trk::KalmanTrackMerge::JoinTracks(), ana::Binning::Labels(), ana::ReweightableSpectrum::Livetime(), fnex::CalibSyst::Load2018CalibSystHists(), fnex::CalibSyst::LoadCalibSystHists(), ana::LoadFrom(), ana::PredictionXSecTuning::LoadFrom(), ana::CountingExperiment::LoadFrom(), ana::PredictionNoOsc::LoadFrom(), ana::TrivialBkgdEstimator::LoadFrom(), ana::ReactorExperiment::LoadFrom(), ana::SolarConstraints::LoadFrom(), ana::TrivialSignalEstimator::LoadFrom(), ana::FDPredictionSterile::LoadFrom(), ana::CheatDecomp::LoadFrom(), ana::Binning::LoadFrom(), ana::NDPredictionSterile::LoadFrom(), ana::PredictionExtrap::LoadFrom(), ana::FitInAnaBinsBkgdEstimator::LoadFrom(), ana::MultiExperiment::LoadFrom(), ana::NCDecomp::LoadFrom(), ana::NDExtrapBeamComponent::LoadFrom(), ana::NueDecomp::LoadFrom(), ana::NDOscillatableSpectrum::LoadFrom(), ana::PredictionCombinePeriods::LoadFrom(), ana::NDExtrapComponent::LoadFrom(), ana::PredictionAddRock::LoadFrom(), ana::SingleSampleExperiment::LoadFrom(), ana::NumuDecomp::LoadFrom(), ana::CrossSectionSpectra::LoadFrom(), ana::FluxMultiverseSyst::LoadFrom(), ana::PredictionSystJoint2018::LoadFrom(), ana::PredictionSystJointDemo::LoadFrom(), ana::PredictionExtendToPeripheral::LoadFrom(), ana::CovMxManager::LoadFrom(), ana::PredictionNoExtrap::LoadFrom(), ana::PredictionScaleComp::LoadFrom(), ana::FDExtrap::LoadFrom(), ana::NDExtrap::LoadFrom(), ana::ProportionalDecomp::LoadFrom(), ana::CutOptimization::LoadFrom(), ana::TrivialExtrap::LoadFrom(), ana::BayesianSurface::LoadFrom(), ana::FakeDecomp::LoadFrom(), ana::TrivialCrossSectionAnalysis::LoadFrom(), ana::CrossSectionAnalysis::LoadFrom(), ana::Multiverse::LoadFrom(), ana::TwoSampleDecomp::LoadFrom(), ana::SpectrumComponents::LoadFrom(), ana::PredictionInterp::LoadFrom(), ana::NusSystShiftSigma::LoadFrom(), ana::FluxDecomp::LoadFrom(), ana::ModularExtrapSterile::LoadFrom(), ana::MichelDecomp::LoadFrom(), ana::ReweightableSpectrum::LoadFrom(), ana::OscillatableSpectrum::LoadFrom(), ana::BENDecomp::LoadFrom(), ana::GenieMultiverseSpectra::LoadFrom(), ana::NoReweight::LoadFrom(), ana::PredictionSystNue2017::LoadFrom(), ana::PredictionSystNumu2017::LoadFrom(), ana::NusSystShift::LoadFrom(), ana::GenericSystematicDef< SRType >::LoadFrom(), ana::TruthReweight::LoadFrom(), ana::DataMCPair::LoadFrom(), ana::RecoReweight::LoadFrom(), ana::ModularExtrap::LoadFrom(), ana::NusSystMaker::LoadFrom(), ana::FluxReweight::LoadFrom(), ana::NusSystematicsMaker::LoadFrom(), ana::Spectrum::LoadFrom(), ana::GenieMultiverseNormalizedSpectra::LoadFrom(), ana::NusISyst::LoadFrom(), ana::LoadFrom< osc::IOscCalc >(), ana::PredictionInterp::LoadFromBody(), gibuu::GiBUURegen::LoadGiBUUCorrs(), gibuu::GiBUURegen::LoadGiBUURecords(), ana::LoadMaps(), LoadNominal(), ana::CovMxManager::LoadSyst(), LoadSyst(), LoadUncerts(), ana::IExperiment::LogLikelihood(), ana::LogLikelihood(), make_cm_pullterm_pdf(), make_dst_cosrejbdttrain(), make_nueFDprediction_kinematics_FHC(), make_nueFDprediction_kinematics_FHC_pTExtrap(), make_nueFDprediction_kinematics_FHC_REW(), make_nueFDprediction_kinematics_FHC_REW_pTExtrap(), make_nueFDprediction_kinematics_RHC(), make_nueFDprediction_kinematics_RHC_pTExtrap(), make_nueFDprediction_kinematics_RHC_REW(), make_nueFDprediction_kinematics_RHC_REW_pTExtrap(), make_predictions_systs(), make_predictions_systs_fakedata(), MakeCovMx(), makeFakeDataFluxes(), MakeISysts(), MakePlots(), makeRealDataFluxes(), MakeSystRatios(), trk::CosmicTrackAlg::MakeTrack(), cmf::RandomUniverses::MakeUniverseHistograms(), trk::CosmicTrackUtilities::MakeZBoundaryMap(), calib::MakeZBoundaryMap(), ana::IDecomp::MC_AntiNueComponent(), ana::MichelDecomp::MC_MCTotal(), ana::FluxDecomp::MC_TotalComponent(), ViewHTML::metricsToHTMLTable(), novaddt::NuMuTrigger::n3DCellsToEdge(), ana::TrivialExtrap::NCAntiComponent(), ND_pred_MC_nue_signal(), nue_background_decomposition(), nue_signal_extrapolation(), ana::NumuCC2p2hBkgdEstimator::NumuCC2p2hBkgdEstimator(), evdb::FileMenu::Open(), evdb::JobMenu::OpenJob(), dt::Segment::operator<(), caf::Proxy< caf::SRShower >::operator=(), caf::Proxy< caf::SRTrack >::operator=(), caf::Proxy< caf::SRProng >::operator=(), ana::Spectrum::OverrideLivetime(), ViewHTML::parseInfo(), slid::ParticleIDAlg::PlaneRadius(), plot_prediction_systs(), plotStabilitySpectra(), ana::PlotSyst(), dt::DiscreteTracker::PossibleNextSegs(), ppfx_smooth_weights_make(), ana::FakeDecomp::Pre_AntiNueComponent(), ana::PredictionInterp::PredictionInterp(), ProductionTestTools::printEnvironment(), PrintNus18CosBkgd(), ana::SystShifts::Prior(), cheat::ProngCheater::produce(), cheat::ShowerCheater::produce(), cheat::TrackCheater::produce(), slid::Recluster::produce(), jmshower::JMTrackMerge::produce(), jmshower::JMClusterMerge::produce(), crvtx::CosmicRayVertex::produce(), cheat::MCCheater::produce(), fuzz::FuzzyKVertex::produce(), nerd::NERDProng::produce(), geo::LiveGeometry::ProjectedCellsInMC(), geo::LiveGeometry::ProjectedCellsToEdge(), geo::LiveGeometry::ProjectedCellsToNextBadRegion(), geo::LiveGeometry::ProjectedDistance(), geo::LiveGeometry::ProjectedLiveCellsToEdge(), rb::Prong::Prong(), slid::ParticleIDAlg::Radius(), reach_2018_dCPfractions(), read_eventlisttress_missingruns(), read_eventlisttress_runs_subruns(), daq2raw::TestBeamRawInputDriver::readBeamline(), readExfor(), cmf::EventListManipulator::reconfigure(), reduce_the_predfile_nue_numu(), Tier.Tier::runTier(), runTwoSampleDecomp(), ProductionTestTools::samDefinitionSummary(), ana::SaveMaps(), SavePrediction(), ana::CovMxManager::SaveSyst(), ana::PredictionXSecTuning::SaveTo(), ana::CountingExperiment::SaveTo(), ana::TrivialBkgdEstimator::SaveTo(), ana::PredictionNoOsc::SaveTo(), ana::ReactorExperiment::SaveTo(), ana::PredictionSterile::SaveTo(), ana::TrivialSignalEstimator::SaveTo(), ana::SolarConstraints::SaveTo(), ana::FDPredictionSterile::SaveTo(), ana::CheatDecomp::SaveTo(), ana::Binning::SaveTo(), ana::NDPredictionSterile::SaveTo(), ana::PredictionExtrap::SaveTo(), ana::FitInAnaBinsBkgdEstimator::SaveTo(), ana::MultiExperiment::SaveTo(), ana::NCDecomp::SaveTo(), ana::NDExtrapBeamComponent::SaveTo(), ana::NueDecomp::SaveTo(), ana::NDOscillatableSpectrum::SaveTo(), ana::PredictionCombinePeriods::SaveTo(), ana::NDExtrapComponent::SaveTo(), ana::PredictionAddRock::SaveTo(), ana::SingleSampleExperiment::SaveTo(), ana::CrossSectionSpectra::SaveTo(), ana::FluxMultiverseSyst::SaveTo(), ana::NumuDecomp::SaveTo(), ana::PredictionExtendToPeripheral::SaveTo(), ana::PredictionSystJoint2018::SaveTo(), ana::PredictionSystJointDemo::SaveTo(), ana::PredictionNoExtrap::SaveTo(), ana::NDExtrap::SaveTo(), ana::FDExtrap::SaveTo(), ana::PredictionScaleComp::SaveTo(), ana::ProportionalDecomp::SaveTo(), ana::CutOptimization::SaveTo(), ana::TrivialCrossSectionAnalysis::SaveTo(), ana::FakeDecomp::SaveTo(), ana::TrivialExtrap::SaveTo(), ana::CrossSectionAnalysis::SaveTo(), ana::Multiverse::SaveTo(), ana::TwoSampleDecomp::SaveTo(), ana::SpectrumComponents::SaveTo(), ana::PredictionInterp::SaveTo(), ana::FluxDecomp::SaveTo(), ana::NusSystShiftSigma::SaveTo(), ana::ModularExtrapSterile::SaveTo(), ana::BENDecomp::SaveTo(), ana::MichelDecomp::SaveTo(), ana::GenieMultiverseSpectra::SaveTo(), ana::NoReweight::SaveTo(), ana::PredictionSystNue2017::SaveTo(), ana::PredictionSystNumu2017::SaveTo(), ana::NusSystShift::SaveTo(), ana::GenericSystematicDef< SRType >::SaveTo(), ana::TruthReweight::SaveTo(), ana::DataMCPair::SaveTo(), ana::RecoReweight::SaveTo(), ana::ModularExtrap::SaveTo(), ana::NusSystMaker::SaveTo(), ana::FluxReweight::SaveTo(), ana::NusSystematicsMaker::SaveTo(), ana::Spectrum::SaveTo(), ana::NusISyst::SaveTo(), cmf::SerializeEventListMap(), fnex::SerializeEventListMap(), ana::CovarianceMatrix::SetNUniverses(), genie::geometry::PathSegmentList::SetPrintVerbose(), genie::geometry::PathSegmentList::SetStartInfo(), rb::Shower::Shower(), ViewSTDOUT::showMetric(), ViewSTDOUT::showMetricsSummary(), ViewSTDOUT::showMetricsSummaryComplex(), SideBandLoad(), ana::SingleSampleExperiment::SingleSampleExperiment(), simb::MCTrajectory::Sparsify(), specprod_numuccinc(), specprod_systematics(), ana::SpectrumComponents::SpectrumComponents(), genie::flux::GDk2NuFlux::SphereNormal(), dt::DiscreteTracker::SpliceChains(), g4n::RockCutterAction::StackClassifyNewTrack(), SystematicShiftEffect(), TestMatrix(), TestPred(), geo::GeometryTest::testStepping(), ana::CheatDecomp::TotalMC(), dt::Chain::ToTrack(), rb::Track::Track(), cosrej::MakeNueCosRej::TransMomFractionShower(), ana::TrivialBkgdEstimator::TrivialBkgdEstimator(), jw::TrivialPrediction::TrivialPrediction(), ana::TrivialPrediction::TrivialPrediction(), ana::OscillatableSpectrum::TrueEnergy(), genie::TuneId::TuneDirectory(), ana::BayesianMarginal::Vars(), ana::MCMCSamples::Vars(), ana::VisibleHadE(), brb::WCTrack::WCTrack(), rb::WeightedProng::WeightedProng(), fnex::EventListManipulator::WriteCappedListsAsTrees(), calib::AttenuationFit::writeResults(), ana::CrossSectionAnalysis::~CrossSectionAnalysis(), ana::FDExtrap::~FDExtrap(), genie::geometry::FidShape::~FidShape(), rb::FitSum::~FitSum(), genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper(), ana::IBkgdEstimator::~IBkgdEstimator(), ana::IExtrap::~IExtrap(), ana::ModularExtrapComponent::~ModularExtrapComponent(), ana::NDExtrap::~NDExtrap(), ana::nueccinc::NueCCIncCrossSectionAnalysis::~NueCCIncCrossSectionAnalysis(), ana::nueccinc::NueCCIncCrossSectionTemplates::~NueCCIncCrossSectionTemplates(), ana::nueccinc::NueCCIncEnhancedSamples::~NueCCIncEnhancedSamples(), ana::nueccinc::NueCCIncMRECorrection::~NueCCIncMRECorrection(), and ana::NumuCCIncAnalysis::~NumuCCIncAnalysis().

Double_t edep
Int_t nevent = Int_t(ntuple->GetEntries())
TTree* ntuple = (TTree*)dir->Get("1")
Double_t xx