LArSoft  v06_85_00
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(), pma::ProjectionMatchingAlg::autoFlip(), trkf::TrackKalmanCheater::beginJob(), trkf::Track3DKalmanHit::beginJob(), trkf::SpacePointAna::bookHistograms(), braggPeak(), mvapid::MVAAlg::CalcSegmentdEdxDist(), lar_pandora::LArPandoraOutput::CalculateT0(), util::DetectorPropertiesServiceArgoNeuT::CalculateXTicksParams(), detinfo::DetectorPropertiesStandard::CalculateXTicksParams(), art::TFileDirectory::cd(), checkBeam(), tca::ChgFracBetween(), tca::TrajClusterAlg::ChkStop(), trkf::PropXYZPlane::clone(), trkf::PropYZLine::clone(), trkf::PropYZPlane::clone(), trkf::PropAny::clone(), reco_tool::CandHitDerivative::configure(), reco_tool::CandHitMorphological::configure(), trkf::SeedFinderAlgorithm::ConsolidateSeed(), geo::PlaneGeo::DetectGeometryDirections(), detectGlobalDriftDir(), recob::Track::DirectionAtPoint(), tca::DotProd(), genf::GFMaterialEffects::effects(), recob::Track::EndDirection(), trkf::KalmanFilterAlg::extendTrack(), genf::SlTrackRep::extrapolate(), genf::GeaneTrackRep2::extrapolate(), genf::SlTrackRep::extrapolateToLine(), genf::GeaneTrackRep2::extrapolateToLine(), genf::SlTrackRep::extrapolateToPoint(), genf::GeaneTrackRep2::extrapolateToPoint(), trkf::CCTrackMaker::FillChgNear(), trkf::BezierTrack::FillSeedVector(), tca::FindCompleteness(), tca::FindHammerVertices2(), reco_tool::CandHitDerivative::findHitCandidates(), reco_tool::CandHitMorphological::findHitCandidates(), tca::FindNeutralVertices(), trkf::SeedFinderAlgorithm::FindSeeds(), tca::FitTp3s(), tca::FitTraj(), fragmentAngularDistribution(), fragmentAngularDistributionGM(), fragmentAngularDistributionHistogram(), fragmentEnergy(), fragmentEnergyDistributionDifferentAngles(), fragmentYields(), fragmentYieldsPlot(), pma::PMAlgCosmicTagger::fullHeightCrossing(), pma::PMAlgCosmicTagger::fullLengthCrossing(), pma::PMAlgCosmicTagger::fullWidthCrossing(), ems::MergeEMShower3D::getCos3D(), trkf::Surface::getDirection(), pma::Segment3D::GetDirection3D(), trkf::SeedFinderAlgorithm::GetHitDistAndProj(), trkf::Propagator::getInteractor(), trkf::KTrack::getMomentum(), trkf::Geometric3DVertexFitter::getParsCovsOnPlane(), trkf::BezierTrackerAlgorithm::GetSeedDirProjected(), trkf::KHitContainer::getUnused(), shower::TrackShowerSeparationAlg::Gradient(), trkf::Track3DKalmanHitAlg::growSeedIntoTracks(), pma::Track3D::HasTPC(), geoalgo::GeoAlgo::Intersection(), trkf::Track3DKalmanHitAlg::makeSeed(), tca::MCParticleListUtils::MakeTruTrajPoint(), geo::GeometryCore::MassBetweenPoints(), tca::TruthMatcher::MatchTrueHits(), tca::TruthMatcher::MatchTruth(), trkf::SeedAna::MCHists::MCHists(), trkf::TrackAna::MCHists::MCHists(), art::TFileDirectory::mkdir(), recob::Trajectory::Momenta(), evdb::FileMenu::Open(), evdb::JobMenu::OpenJob(), lar::example::ShowerCalibrationGaloreFromPID::OpenROOTdirectory(), trkf::PropXYZPlane::origin_vec_prop(), trkf::PropYZLine::origin_vec_prop(), trkf::PropYZPlane::origin_vec_prop(), trkf::SurfYZPlane::phi(), trkf::SurfYZLine::phi(), phot::PhotonLibraryHybrid::PhotonLibraryHybrid(), tca::PointDirection(), trkf::KTrack::Print(), ToyOneShowerGen::produce(), cluster::TrajCluster::produce(), TrackProducerFromPFParticle::produce(), trkf::TrackKalmanCheater::produce(), calo::Calorimetry::produce(), trkf::KalmanFilterFinalTrackFitter::produce(), trkf::CosmicTracker::produce(), ems::MergeEMShower3D::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(), 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(), trkf::CCTrackMaker::StoreTrack(), pma::PMAlgCosmicTagger::tagAny(), art::TFileDirectory::TFileDirectory(), trkf::SurfXYZPlane::theta(), lar::util::TrackPitchInView(), trkf::TrackStatePropagator::TrackStatePropagator(), trkf::TrackTrajectoryAlg::TrackTrajectory(), tca::UpdateShower(), recob::Track::VertexDirection(), geoalgo::Cone::~Cone(), and geoalgo::HalfLine::~HalfLine().

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

Definition at line 10 of file macro.C.