LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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(), mvapid::MVAAlg::CalcSegmentdEdxDist(), reco_tool::CandHitDerivative::CandHitDerivative(), reco_tool::CandHitMorphological::CandHitMorphological(), tca::ChgFracBetween(), tca::ChkStop(), trkf::PropYZLine::clone(), trkf::PropXYZPlane::clone(), trkf::PropYZPlane::clone(), trkf::PropAny::clone(), lar_cluster3d::ClusterMergeAlg::configure(), trkf::SeedFinderAlgorithm::ConsolidateSeed(), detinfo::DetectorPropertiesStandard::DataFor(), detectGlobalDriftDir(), recob::TrackTrajectory::DirectionAtPoint(), recob::Trajectory::DirectionAtPoint(), tca::DotProd(), geo::PlaneGeo::DriftPoint(), 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(), 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(), calo::GnocchiCalorimetry::GetPitch(), trkf::KHitContainer::getUnused(), shower::TrackShowerSeparationAlg::Gradient(), trkf::Track3DKalmanHitAlg::growSeedIntoTracks(), pma::Track3D::HasTPC(), lar_cluster3d::ConvexHullPathFinder::initializeHistograms(), lar_cluster3d::VoronoiPathFinder::initializeHistograms(), geoalgo::GeoAlgo::Intersection(), tca::KinkSignificance(), trkf::Track3DKalmanHitAlg::makeSeed(), geo::GeometryCore::MassBetweenPoints(), trkf::SeedAna::MCHists::MCHists(), trkf::TrackAna::MCHists::MCHists(), tca::NearbyCleanPt(), evdb::FileMenu::Open(), evdb::JobMenu::OpenJob(), trkf::PropYZLine::origin_vec_prop(), trkf::PropXYZPlane::origin_vec_prop(), trkf::PropYZPlane::origin_vec_prop(), reco_tool::PeakFitterGaussian::PeakFitterGaussian(), trkf::SurfYZPlane::phi(), trkf::SurfYZLine::phi(), phot::PhotonLibraryHybrid::PhotonLibraryHybrid(), tca::PointDirection(), trkf::KTrack::Print(), tca::PrintP(), tca::PrintPFP(), cluster::DBCluster3D::produce(), cluster::TrajCluster::produce(), TrackProducerFromPFParticle::produce(), trkf::TrackKalmanCheater::produce(), calo::Calorimetry::produce(), trkf::KalmanFilterFinalTrackFitter::produce(), trkf::CosmicTracker::produce(), evd::RecoBaseDrawer::Prong2D(), trkf::SeedAna::RecoHists::RecoHists(), trkf::TrackAna::RecoHists::RecoHists(), shower::LArPandoraShowerAlg::SCECorrectPitch(), 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< T >::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(), 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.

TTree* ntuple = (TTree*)dir->Get("1")

Definition at line 6 of file macro.C.