LArSoft  v08_35_01
Liquid Argon Software toolkit - http://larsoft.org/
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.

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
ntuple GetBranch ( "organID"  ) -> SetAddress(&xx)
ntuple GetBranch ( "edep"  ) -> SetAddress(&edep)
ntuple Print ( )

Variable Documentation

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

Definition at line 5 of file macro.C.

Referenced by geoalgo::GeoAlgo::_RemainingPoints_(), lar_pandora::PFParticleTrackAna::analyze(), trkf::SeedAna::analyze(), trkf::TrackAna::analyze(), tca::AttachToAnyVertex(), pma::ProjectionMatchingAlg::autoFlip(), trkf::TrackKalmanCheater::beginJob(), trkf::Track3DKalmanHit::beginJob(), trkf::SpacePointAna::bookHistograms(), braggPeak(), mvapid::MVAAlg::CalcSegmentdEdxDist(), ShowerRecoTools::ShowerPMATrackFinder::CalculateElement(), util::DetectorPropertiesServiceArgoNeuT::CalculateXTicksParams(), detinfo::DetectorPropertiesStandard::CalculateXTicksParams(), checkBeam(), tca::ChgFracBetween(), tca::ChkStop(), trkf::PropYZPlane::clone(), trkf::PropXYZPlane::clone(), trkf::PropYZLine::clone(), trkf::PropAny::clone(), reco_tool::CandHitDerivative::configure(), reco_tool::CandHitMorphological::configure(), lar_cluster3d::ClusterMergeAlg::configure(), reco_tool::PeakFitterGaussian::configure(), trkf::SeedFinderAlgorithm::ConsolidateSeed(), geo::PlaneGeo::DetectGeometryDirections(), detectGlobalDriftDir(), recob::TrackTrajectory::DirectionAtPoint(), recob::Trajectory::DirectionAtPoint(), tca::DotProd(), genf::GFMaterialEffects::effects(), recob::TrackTrajectory::EndDirection(), recob::Trajectory::EndDirection(), trkf::KalmanFilterAlg::extendTrack(), genf::SlTrackRep::extrapolate(), genf::SlTrackRep::extrapolateToLine(), genf::SlTrackRep::extrapolateToPoint(), trkf::CCTrackMaker::FillChgNear(), tca::FilldEdx(), tca::FindHammerVertices2(), reco_tool::CandHitDerivative::findHitCandidates(), reco_tool::CandHitMorphological::findHitCandidates(), tca::FindParent(), trkf::SeedFinderAlgorithm::FindSeeds(), tca::FitTraj(), fragmentAngularDistribution(), fragmentAngularDistributionGM(), fragmentAngularDistributionHistogram(), fragmentEnergy(), fragmentEnergyDistributionDifferentAngles(), fragmentYields(), fragmentYieldsPlot(), pma::PMAlgCosmicTagger::fullHeightCrossing(), pma::PMAlgCosmicTagger::fullLengthCrossing(), pma::PMAlgCosmicTagger::fullWidthCrossing(), trkf::Surface::getDirection(), pma::Segment3D::GetDirection3D(), trkf::SeedFinderAlgorithm::GetHitDistAndProj(), trkf::Propagator::getInteractor(), trkf::KTrack::getMomentum(), trkf::Geometric3DVertexFitter::getParsCovsOnPlane(), calo::Calorimetry::GetPitch(), trkf::KHitContainer::getUnused(), shower::TrackShowerSeparationAlg::Gradient(), trkf::Track3DKalmanHitAlg::growSeedIntoTracks(), pma::Track3D::HasTPC(), lar_cluster3d::ConvexHullPathFinder::initializeHistograms(), lar_cluster3d::VoronoiPathFinder::initializeHistograms(), geoalgo::GeoAlgo::Intersection(), trkf::Track3DKalmanHitAlg::makeSeed(), geo::GeometryCore::MassBetweenPoints(), trkf::SeedAna::MCHists::MCHists(), trkf::TrackAna::MCHists::MCHists(), evdb::FileMenu::Open(), evdb::JobMenu::OpenJob(), lar::example::ShowerCalibrationGaloreFromPID::OpenROOTdirectory(), trkf::PropYZPlane::origin_vec_prop(), trkf::PropXYZPlane::origin_vec_prop(), trkf::PropYZLine::origin_vec_prop(), trkf::SurfYZPlane::phi(), trkf::SurfYZLine::phi(), phot::PhotonLibraryHybrid::PhotonLibraryHybrid(), tca::PointDirection(), trkf::KTrack::Print(), tca::PrintP(), tca::PrintPFP(), cluster::DBCluster3D::produce(), trkf::TrackKalmanCheater::produce(), cluster::TrajCluster::produce(), TrackProducerFromPFParticle::produce(), calo::Calorimetry::produce(), trkf::KalmanFilterFinalTrackFitter::produce(), trkf::CosmicTracker::produce(), evd::RecoBaseDrawer::Prong2D(), readExfor(), trkf::SeedAna::RecoHists::RecoHists(), trkf::TrackAna::RecoHists::RecoHists(), evd::RecoBaseDrawer::Seed3D(), evd::RecoBaseDrawer::SeedOrtho(), recob::Shower::set_direction(), trkf::KTrack::setDirection(), trkf::KalmanFilterTrajectoryFitter::setDirFlip(), trkf::KalmanFilterFinalTrackFitter::setDirFlip(), genf::GFDetPlane::setFinitePlane(), geo::PlaneBase< geo::Vector_t >::SetMainDir(), genf::GFKalman::setNumIterations(), tca::SetParent(), trkf::KalmanFilterAlg::setPlane(), geo::PlaneBase< geo::Vector_t >::SetSecondaryDir(), trkf::TrackTrajectoryAlg::ShortTrackTrajectory(), lar_content::NeutrinoIdTool::SliceFeatures::SliceFeatures(), trkf::KalmanFilterAlg::smoothTrack(), pma::SolveLeastSquares3D(), trkf::TrackKalmanFitter::sortOutput(), simb::MCTrajectory::Sparsify(), recob::TrackTrajectory::StartDirection(), recob::Trajectory::StartDirection(), trkf::CCTrackMaker::StoreTrack(), pma::PMAlgCosmicTagger::tagAny(), trkf::SurfXYZPlane::theta(), lar::util::TrackPitchInView(), trkf::TrackStatePropagator::TrackStatePropagator(), trkf::TrackTrajectoryAlg::TrackTrajectory(), tca::UpdateShower(), recob::TrackTrajectory::VertexDirection(), recob::Trajectory::VertexDirection(), geoalgo::Cone::~Cone(), and geoalgo::HalfLine::~HalfLine().

Int_t nevent = Int_t(ntuple->GetEntries())

Definition at line 10 of file macro.C.