ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Example.C File Reference

See the main function Example() More...

#include <TFile.h>
#include <TPad.h>
#include <TString.h>
#include <TSystem.h>
#include <TTree.h>
#include <cassert>
#include <cmath>
#include <calobase/RawTower.h>
#include <calobase/RawTowerv1.h>
#include <g4main/PHG4HitEval.h>
#include <g4main/PHG4Particlev1.h>
#include <g4main/PHG4Particlev2.h>
#include <g4main/PHG4VtxPointv1.h>
+ Include dependency graph for Example.C:

Go to the source code of this file.

Functions

void CheckItOut ()
 First, checkout what is in there.
 
void AcessGeant4Particles ()
 Access information for the truth Geant4 particles.
 
void WhereIsTheHits ()
 
void PlotCalorimeterSamplingFraction ()
 
void AccessCalorimeterTowers ()
 
void Example (const TString infile="https://www.phenix.bnl.gov/phenix/WWW/sPHENIX/tutorial/G4sPHENIX.root_DSTReader.root")
 

Variables

TFile * _file0 = NULL
 
TTree * T = NULL
 

Detailed Description

See the main function Example()

Author
Jin Huang jhuan.nosp@m.g@bn.nosp@m.l.gov
Version
Revision:
Date
Date:

Definition in file Example.C.

Function Documentation

void AccessCalorimeterTowers ( )

Definition at line 118 of file Example.C.

View newest version in sPHENIX GitHub at line 118 of file Example.C

References T.

Referenced by Example().

+ Here is the caller graph for this function:

void AcessGeant4Particles ( )

Access information for the truth Geant4 particles.

Definition at line 54 of file Example.C.

View newest version in sPHENIX GitHub at line 54 of file Example.C

References T.

Referenced by Example().

+ Here is the caller graph for this function:

void CheckItOut ( )

First, checkout what is in there.

Definition at line 34 of file Example.C.

View newest version in sPHENIX GitHub at line 34 of file Example.C

References T.

Referenced by Example().

+ Here is the caller graph for this function:

void Example ( const TString  infile = "https://www.phenix.bnl.gov/phenix/WWW/sPHENIX/tutorial/G4sPHENIX.root_DSTReader.root")

Definition at line 148 of file Example.C.

View newest version in sPHENIX GitHub at line 148 of file Example.C

References _file0, AccessCalorimeterTowers(), AcessGeant4Particles(), CheckItOut(), PlotCalorimeterSamplingFraction(), T, and WhereIsTheHits().

+ Here is the call graph for this function:

void PlotCalorimeterSamplingFraction ( )

Definition at line 94 of file Example.C.

View newest version in sPHENIX GitHub at line 94 of file Example.C

References T.

Referenced by Example().

+ Here is the caller graph for this function:

void WhereIsTheHits ( )

X-Y distribution for the hits note, as long as we load libg4eval.so, the compiled functions can be used in T->Draw. Example, I will use PHG4Hit::get_avg_x(), https://www.phenix.bnl.gov/WWW/sPHENIX/doxygen/html/d3/d9e/classPHG4Hit.html#a99663034e71d3f324eb878eb0e3b36ba

Definition at line 76 of file Example.C.

View newest version in sPHENIX GitHub at line 76 of file Example.C

References T.

Referenced by Example().

+ Here is the caller graph for this function:

Variable Documentation

TFile* _file0 = NULL

Definition at line 30 of file Example.C.

View newest version in sPHENIX GitHub at line 30 of file Example.C

Referenced by Example().

TTree* T = NULL

Definition at line 31 of file Example.C.

View newest version in sPHENIX GitHub at line 31 of file Example.C

Referenced by G4AttValueFilterT< T, ConversionErrorPolicy >::Accept(), AccessCalorimeterTowers(), AcessGeant4Particles(), G4VTHitsMap< _Tp, std::multimap< G4int, _Tp * > >::add(), AddFlowToParent(), G4VTHitsMap< _Tp, std::multimap< G4int, _Tp * > >::allocate(), G4VTHitsVector< G4StatAnalysis, std::deque< G4StatAnalysis * > >::allocate(), nanoflann::allocate(), nanoflann::PooledAllocator::allocate(), G4NuclearStopping::AlongStepDoIt(), kdfinder::TVector< T >::angle(), kdfinder::angle_between_vectors(), kdfinder::TrackCandidate< T >::approxLength(), Acts::BoundarySurfaceT< T >::attachedVolume(), kdfinder::Helix< T >::bad(), dfe::SmallVector< T, N, Allocator >::begin(), G4StatMFParameters::Beta(), G4StatMFMacroTriNucleon::CalcEnergy(), G4StatMFMacroNucleon::CalcEnergy(), G4StatMFMacroBiNucleon::CalcEnergy(), G4StatMFMacroMultiNucleon::CalcEnergy(), G4StatMFMacroNucleon::CalcMeanMultiplicity(), G4StatMFMacroMultiNucleon::CalcMeanMultiplicity(), kdfinder::TrackCandidate< T >::calcMinMaxR(), G4StatMFMicroPartition::CalcPartitionProbability(), G4GEMProbability::CalcProbability(), G4HadronCrossSections::CalcScatteringCrossSections(), G4Track::CalculateVelocity(), kdfinder::Data< T >::center(), CheckItOut(), G4QuasiElRatios::ChExElCoef(), kdfinder::CircleFit< T >::ChiSqr(), kdfinder::CircleFit< T >::CircleFitByChernovHoussam(), kdfinder::CircleFit< T >::CircleFitByHyper(), kdfinder::CircleFit< T >::CircleFitByPratt(), kdfinder::CircleFit< T >::CircleFitByTaubin(), GMocrenDataPrimitive< T >::clear(), G4ThreadLocalSingleton< T >::Clear(), G4UrbanMscModel::ComputeCrossSectionPerAtom(), G4UrbanAdjointMscModel::ComputeCrossSectionPerAtom(), RunAction::ComputeMscHighland(), Run::ComputeMscHighland(), G4NIELCalculator::ComputeNIEL(), G4VRangeToEnergyConverter::ConvertCutToKineticEnergy(), G4GMocrenIO::convertEndian(), Copy(), G4GeomSplitter< T >::CopyMasterContents(), HepGeom::BasicVector3D< G4double >::cosTheta(), G4PersistencyManagerT< T >::Create(), nlohmann::basic_json::create(), G4UImessenger::CreateCommand(), G4DCIOentryT< T >::CreateDCIOmanager(), G4HCIOentryT< T >::CreateHCIOmanager(), Acts::IntegrationTest::createPlanarTransform(), Acts::Test::createPlanarTransform(), G4TWorkspacePool< T >::CreateWorkspace(), kdfinder::Helix< T >::curvatureSignedDistance(), G4StatMFParameters::DBetaDT(), G4FermiPhaseSpaceDecay::Decay(), G4BraggIonModel::DEDX(), dfe::SmallVector< T, N, Allocator >::destruct_deallocate_onheap(), dfe::SmallVector< T, N, Allocator >::destruct_inplace(), dpipe_register(), kdfinder::CircleFit< T >::eigen2x2(), G4hICRU49He::ElectronicStoppingPower(), G4hSRIM2000p::ElectronicStoppingPower(), G4hICRU49p::ElectronicStoppingPower(), G4hZiegler1985p::ElectronicStoppingPower(), G4BraggModel::ElectronicStoppingPower(), G4BraggIonModel::ElectronicStoppingPower(), dfe::SmallVector< T, N, Allocator >::emplace(), dfe::FlatMap< Key, T, Compare >::emplace(), Acts::detail::ensureThetaBounds(), Example(), kdfinder::export_candidates_json(), kdfinder::export_candidates_json_old(), boost::array< T, 0 >::failed_rangecheck(), G4ElasticHadrNucleusHE::FillData(), G4INCL::ElasticChannel::fillFinalState(), G4CascadeFinalStateAlgorithm::FillUsingKopylov(), kdfinder::find_vertex_seeds(), G4NuclearLevelData::FindLevel(), G4TWorkspacePool< T >::FindOrCreateWorkspace(), G4StatMF::FindTemperatureOfBreakingChannel(), G4ScreeningMottCrossSection::FormFactor2ExpHof(), G4ScreeningMottCrossSection::FormFactor2Gauss(), G4ScreeningMottCrossSection::FormFactor2UniformHelm(), G4StatMFChannel::FragmentsMomenta(), G4VUPLSplitter< T >::FreeWorkArea(), G4GeomSplitter< T >::FreeWorkArea(), kdfinder::Helix< T >::fudgePathLength(), G4TableTemplate< T >::G4GetNewContainer(), DicomPhantomZSliceHeader::G4s2n(), G4SwapObj(), G4SwapPtr(), CLHEP::RandBinomial::genBinomial(), G4INCL::PhaseSpaceKopylov::generate(), G4HadPhaseSpaceKopylov::GenerateMultiBody(), kdfinder::Helix< T >::geometricSignedDistance(), FW::WhiteBoard::get(), kdfinder::get_track_color(), findNode::getClass(), G4CrystalUnitCell::GetIntSp2(), G4Accumulables::GetMergeFunction(), kdfinder::TrackCandidate< T >::getMomForHit(), G4INCL::AllocationPool< T >::getObject(), kdfinder::TrackCandidate< T >::getS(), G4TemplateRNGHelper< T >::GetSeed(), G4VITProcess::G4ProcessState::GetState(), G4VITProcess::GetState(), G4VITProcess::G4ProcessStateBase< T >::GetType(), G4AttValueFilterT< T, ConversionErrorPolicy >::GetValidElement(), G4ParticleHPThermalScatteringData::GetX(), kdfinder::CircleFit< T >::GradientHessian(), PHPointerList< T >::grow(), G4ThreadLocalSingleton< T >::Instance(), G4PhysListStamper< T >::Instantiate(), G4PhysicsConstructorFactory< T >::Instantiate(), G4CrossSectionFactory< T, mode >::Instantiate(), G4CrossSectionFactory< T, 0 >::Instantiate(), G4CrossSectionFactory< T, 1 >::Instantiate(), G4CrossSectionFactory< T, 2 >::Instantiate(), Acts::interpolate(), G4GMocrenIO::invertByteOrder(), PHSimpleKFProp::KDPointCloud< T >::kdtree_distance(), kdfinder::KDPointCloud< double >::kdtree_distance(), nanoflann::load_value(), G4AttValueFilterT< T, ConversionErrorPolicy >::LoadIntervalElement(), G4AttValueFilterT< T, ConversionErrorPolicy >::LoadSingleValueElement(), main(), kdfinder::make_triplets(), G4Analysis::make_unique(), Acts::Surface::makeShared(), G4GDMLReadMaterials::MaterialRead(), MCGIDI_KalbachMann_sampleEp(), kdfinder::merge_track_candidates(), kdfinder::Helix< T >::momentum(), kdfinder::Helix< T >::moveOrigin(), MultiArray< TVector3 >::MultiArray(), G4VUPLSplitter< T >::NewSubInstances(), Acts::BinnedArrayXD< T >::objectCluster(), Delete< T >::operator()(), G4Delete::operator()(), G4Scatterer::Register::operator()(), G4CollisionComposite::Register::operator()(), Acts::DistanceSorterT< T >::operator()(), G4AnyMethod::FuncRef< S, T >::operator()(), G4AnyMethod::FuncRef1< S, T, A0 >::operator()(), G4AnyMethod::FuncRef2< S, T, A0, A1 >::operator()(), nanoflann::L1_Adaptor< T, DataSource, _DistanceType >::operator()(), nanoflann::L2_Adaptor< T, DataSource, _DistanceType >::operator()(), GMocrenDataPrimitive< T >::operator+(), GMocrenDataPrimitive< T >::operator=(), dfe::SmallVector< T, N, Allocator >::operator[](), kdfinder::CircleFit< T >::OptimalRadius(), kdfinder::TVector< T >::orthogonal(), HepGeom::BasicVector3D< G4double >::orthogonal(), kdfinder::Helix< T >::pathLength(), kdfinder::Helix< T >::pathLengths(), HepGeom::BasicVector3D< G4double >::perp2(), PHPointerList< T >::PHPointerList(), kdfinder::TrackCandidate< T >::Pl(), Acts::PlaneSurface::PlaneSurface(), G4PlotManager::PlotAndWrite(), PlotCalorimeterSamplingFraction(), HepGeom::Plane3D< G4double >::point(), dfe::polynomial_val(), dfe::polynomial_valder(), G4VelocityTable::PrepareVelocityTable(), G4GEMProbabilityVI::ProbabilityDistributionFunction(), G4INCL::CDPP::processOneParticle(), kdfinder::CircleFit< T >::pythag(), Acts::detail::radian_pos(), Acts::detail::radian_sym(), G4DNAPTBIonisationModel::ReadDiffCSFile(), G4GeomSplitter< T >::Reallocate(), G4MPIToolsManager::Receive(), kdfinder::LinearFit< T >::RegularFit(), PHPointerList< T >::removeAt(), kdfinder::rnd_gauss(), kdfinder::LinearFit< T >::RobustFit(), kdfinder::LinearFit< T >::rofunc(), kdfinder::TVector< T >::rotateX(), kdfinder::TVector< T >::rotateY(), kdfinder::TVector< T >::rotateZ(), G4AntiNuclElastic::SampleInvariantT(), G4PreCompoundFragment::SampleKineticEnergy(), G4EvaporationProbability::SampleKineticEnergy(), G4GEMChannel::SampleKineticEnergy(), G4PenelopeGammaConversionModel::SampleSecondaries(), G4PenelopeComptonModel::SampleSecondaries(), G4AntiNuclElastic::SampleThetaCMS(), G4AntiNuclElastic::SampleThetaLab(), nanoflann::save_value(), kdfinder::Data< T >::scale(), kdfinder::LinearFit< T >::select(), G4VTHitsMap< _Tp, std::multimap< G4int, _Tp * > >::set(), G4IsotopeProperty::SetLifeTime(), HepGeom::BasicVector3D< G4double >::setMag(), HepGeom::BasicVector3D< G4double >::setPerp(), HepGeom::BasicVector3D< G4double >::setPhi(), HepTool::Evaluator::setSystemOfUnits(), HepGeom::BasicVector3D< G4double >::setTheta(), boost::shared_polymorphic_downcast(), G4INCL::Random::shootInteger(), kdfinder::CircleFit< T >::Sigma(), kdfinder::CircleFit< T >::SigmaWithLargeCircleOption(), kdfinder::TrackCandidate< T >::sign(), G4StatMFChannel::SolveEqOfMotion(), G4hICRU49He::StoppingPower(), G4hICRU49p::StoppingPower(), G4BraggModel::StoppingPower(), G4BraggIonModel::StoppingPower(), kdfinder::LinearFit< T >::SWAP(), G4ChipsProtonInelasticXS::ThresholdMomentum(), G4ChipsKaonPlusInelasticXS::ThresholdMomentum(), G4ChipsPionPlusInelasticXS::ThresholdMomentum(), nlohmann::detail::to_json_tuple_impl(), tools::aida::to_vector(), FW::WhiteBoard::HolderT< T, typename >::type(), kdfinder::TVector< T >::unit(), HepGeom::BasicVector3D< G4double >::unit(), WhereIsTheHits(), G4VUPLSplitter< T >::WorkerCopySubInstanceArray(), Acts::detail::wrap_periodic(), and dfe::NamedTupleNumpyWriter< NamedTuple >::write_bytes().