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 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(), 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::IChiSqExperiment::Derivative(), ana::ReactorExperiment::Derivative(), ana::SolarConstraints::Derivative(), dif::DiFShowerFinder::distancefromtrack(), slid::DeconvolveAlg::DistanceToCore(), 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(), GetNuePredPath(), GetNumuCosmics2017(), GetNumuCosmics2018(), GetNumuCosmics2019(), GetNumuData2017(), 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::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(), trk::KalmanTrackMerge::JoinTracks(), ana::Binning::Labels(), ana::ReweightableSpectrum::Livetime(), fnex::CalibSyst::Load2018CalibSystHists(), fnex::CalibSyst::LoadCalibSystHists(), ana::LoadFrom(), ana::CovMxManager::LoadFrom(), ana::BayesianSurface::LoadFrom(), ana::NusSystShiftSigma::LoadFrom(), ana::NusSystMaker::LoadFrom(), ana::LoadFrom< IBkgdEstimator >(), ana::LoadFrom< IChiSqExperiment >(), ana::LoadFrom< IDecomp >(), ana::LoadFrom< IExtrap >(), ana::LoadFrom< IPrediction >(), ana::LoadFrom< ModularExtrapComponent >(), ana::LoadFrom< osc::IOscCalculator >(), ana::LoadFrom< osc::IOscCalculatorAdjustable >(), ana::LoadFromFile(), gibuu::GiBUURegen::LoadGiBUUCorrs(), gibuu::GiBUURegen::LoadGiBUURecords(), ana::LoadMaps(), LoadNominal(), ana::CovMxManager::LoadSyst(), LoadSyst(), LoadUncerts(), ana::LogLikelihood(), make_cm_pullterm_pdf(), make_dst_cosrejbdttrain(), make_predictions_systs(), make_predictions_systs_fakedata(), MakeCovMx(), makeFakeDataFluxes(), MakeISysts(), MakePlots(), makeRealDataFluxes(), MakeSystRatios(), trk::CosmicTrackAlg::MakeTrack(), 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<(), ana::Spectrum::OverrideLivetime(), ViewHTML::parseInfo(), slid::ParticleIDAlg::PlaneRadius(), plot_prediction_systs(), plots_interactionMode(), plotStabilitySpectra(), ana::PlotSyst(), dt::DiscreteTracker::PossibleNextSegs(), ppfx_smooth_weights_make(), ana::FakeDecomp::Pre_AntiNueComponent(), ana::PredictionTemplateShift::Predict(), ana::PredictionInterp::PredictionInterp(), ProductionTestTools::printEnvironment(), PrintNus18CosBkgd(), ana::SystShifts::Prior(), cheat::ShowerCheater::produce(), cheat::ProngCheater::produce(), cheat::TrackCheater::produce(), slid::Recluster::produce(), jmshower::JMTrackMerge::produce(), jmshower::JMClusterMerge::produce(), crvtx::CosmicRayVertex::produce(), cheat::MCCheater::produce(), fuzz::FuzzyKVertex::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(), reduce_the_predfile_nue_numu(), Tier.Tier::runTier(), runTwoSampleDecomp(), ProductionTestTools::samDefinitionSummary(), saTestContours(), ana::SaveMaps(), SavePrediction(), ana::CovMxManager::SaveSyst(), ana::CountingExperiment::SaveTo(), ana::ReactorExperiment::SaveTo(), ana::SolarConstraints::SaveTo(), ana::MultiExperiment::SaveTo(), ana::SaveTo(), ana::SingleSampleExperiment::SaveTo(), 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(), 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