LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
compare.C File Reference

Go to the source code of this file.

Functions

 while (1)
 
 fclose (fg1)
 
 fclose (fg2)
 
gPad SetLogy ()
 
gr1 SetTitle ("Dose rate distribution")
 
gr1 GetXaxis () -> SetTitle("Distance from the centre (cm)")
 
gr1 GetYaxis () -> SetTitle("Normalised dose rate distribution")
 
gr1 SetLineWidth (1)
 
gr1 SetMarkerColor (1)
 
gr1 SetMarkerStyle (20)
 
gr1 Draw ("AP")
 
gr2 SetMarkerColor (2)
 
gr2 SetMarkerStyle (21)
 
gr2 SetMarkerSize (0.5)
 
gr2 SetLineColor (2)
 
gr2 Draw ("CP")
 
leg SetFillColor (0)
 
leg AddEntry (gr1,"Reference data","lp")
 
leg AddEntry (gr2,"Geant4 - 280 M events","lp")
 
leg Draw ()
 

Variables

Int_t n_points_granero =13
 
Float_t x1 [n_points_granero]
 
Float_t y1 [n_points_granero]
 
Float_t x
 
Float_t y
 
Int_t ncols_granero
 
Int_t nlines1 =0
 
FILE * fg2 =fopen("geant4.txt", "r")
 
Int_t n_points_geant4 =398
 
Float_t x2 [n_points_geant4]
 
Float_t y2 [n_points_geant4]
 
Int_t ncols_geant4
 
Int_t nlines2 =0
 
TGraph * gr1 = new TGraph (nlines1, x1, y1)
 
TGraph * gr2 = new TGraph (nlines2, x2, y2)
 
TCanvas * c1
 
TLegend * leg = new TLegend(0.3, 0.5, 0.6, 0.8)
 

Function Documentation

leg AddEntry ( gr1  ,
"Reference data"  ,
"lp"   
)
leg AddEntry ( gr2  ,
"Geant4 - 280 M events"  ,
"lp"   
)
gr1_ratio Draw ( "AP"  )
gr6 Draw ( "CP"  )
pad3 Draw ( )
fclose ( fg2  )
h2 GetXaxis ( ) -> SetTitle("Distance from the centre (cm)")
h2 GetYaxis ( ) -> SetTitle("Normalised dose rate distribution")
pad3 SetFillColor ( )
hist13 SetLineColor ( )
gr1_ratio SetLineWidth ( )

Referenced by export_G4VisAttributes().

gPad SetLogy ( )
gr1_ratio SetMarkerColor ( )
ntuple2 SetMarkerColor ( )
ntupleExperimental SetMarkerSize ( 0.  5)
ntuple2 SetMarkerStyle ( 20  )
gr5_ratio SetMarkerStyle ( 21  )
gr1 SetTitle ( "Dose rate distribution"  )
while ( )

Definition at line 10 of file compare.C.

References fclose(), nlines1, x, and y.

11  {
12  ncols_granero = fscanf(fg1,"%f %f",&x, &y);
13  if (ncols_granero<0) break;
14  // std::cout << "x " << x << std::endl;
15  x1[nlines1]=x;
16  y1[nlines1]=y;
17  nlines1++;
18 }
Float_t x
Definition: compare.C:6
Float_t y1[n_points_granero]
Definition: compare.C:5
Float_t x1[n_points_granero]
Definition: compare.C:5
Float_t y
Definition: compare.C:6
Int_t nlines1
Definition: compare.C:8
Int_t ncols_granero
Definition: compare.C:7

Variable Documentation

TCanvas* c1
Initial value:
= new TCanvas("c1","Graph Draw Options",
200,10,600,400)

Definition at line 45 of file compare.C.

FILE* fg2 =fopen("geant4.txt", "r")

Definition at line 24 of file compare.C.

TGraph* gr1 = new TGraph (nlines1, x1, y1)

Definition at line 42 of file compare.C.

Referenced by plot().

TGraph* gr2 = new TGraph (nlines2, x2, y2)

Definition at line 43 of file compare.C.

TLegend * leg = new TLegend(0.3, 0.5, 0.6, 0.8)
Int_t n_points_geant4 =398

Definition at line 25 of file compare.C.

Int_t n_points_granero =13

Definition at line 4 of file compare.C.

Int_t ncols_geant4

Definition at line 27 of file compare.C.

Int_t ncols_granero

Definition at line 7 of file compare.C.

Int_t nlines1 =0

Definition at line 8 of file compare.C.

Referenced by while().

Int_t nlines2 =0

Definition at line 28 of file compare.C.

Float_t x

Definition at line 6 of file compare.C.

Referenced by lar::util::details::DataTracker< Degree *2, Data_t >::add(), lar::util::StatCollector< T, W >::add(), lar::util::StatCollector2D< T, W >::add(), pma::ProjectionMatchingAlg::addEndpointRef_(), reco3d::SpacePointSolver::AddNeighbours(), larg4::MuNuclearSplittingProcessXSecBias::AlongStepDoIt(), trkf::SpacePointAna::analyze(), nnet::WaveformDenoiseTest::analyze(), lar::ComputePi::analyze(), trkf::TrackAna::anaStitch(), lar_cluster3d::ConvexHull::Area(), lar_content::DeltaRayMatchingAlgorithm::AreClustersMatched(), boost::python::indexing_suite< Container, DerivedPolicies, NoProxy >::base_contains(), boost::python::detail::slice_helper< Container, DerivedPolicies, ProxyHandler, Data, Index >::base_set_slice(), evgen::NDKGen::beginJob(), evgen::GENIEGen::beginJob(), TruncMean::CalcIterativeTruncMean(), detsim::ISCalculationSeparate::CalculateIonization(), geoalgo::Sphere::Center(), evd::HitSelector::ChangeHit(), evd::TWQProjectionView::ChangeWire(), evd::TWQMultiTPCProjectionView::ChangeWire(), hit::DPRawHitFinder::ChargeFunc(), shower::LArPandoraShowerCheatingAlg::CheatDebugEVD(), pma::ProjectionMatchingAlg::chkEndpointHits_(), lar::util::StatCollector< T, W >::clear(), lar::util::StatCollector2D< T, W >::clear(), evd::TWQMultiTPCProjectionView::ClearEndPoints(), evd::TWQProjectionView::ClearEndPoints(), keras::LayerMaxPooling::compute_output(), keras::LayerConv2D::compute_output(), QuadExpr::Constant(), shower::EMShowerAlg::Construct3DPoint_(), cluster::BlurredClusteringAlg::ConvertBinToCharge(), tf::Graph::create(), shower::LArPandoraShowerAlg::DebugEVD(), genf::GFWireHitPolicy::detPlane(), genf::GFWirepointHitPolicy::detPlane(), geoalgo::HalfLine::Dir(), genf::GFDetPlane::dist(), evdb_tool::DrawSkewHits::Draw(), evd::RecoBaseDrawer::Draw2DSlopeEndPoints(), evd_tool::ICARUSDrawer::DrawGrids(), evd_tool::MicroBooNEDrawer::DrawGrids(), evd_tool::StandardDrawer::DrawGrids(), evd_tool::ProtoDUNEDrawer::DrawGrids(), evd::RecoBaseDrawer::DrawTrackOrtho(), evd::RecoBaseDrawer::DrawTrackVertexAssns2D(), detsim::ISCalculationSeparate::EFieldAtStep(), detinfo::DetectorPropertiesStandard::Eloss(), geoalgo::LineSegment::End(), cluster::EndPointAlg::EndPoint(), evd::RecoBaseDrawer::EndPoint2D(), phot::PhotonLibraryHybrid::FitFunc::Eval(), art::EventProcessor::EventProcessor(), export_G4ThreeVector(), export_G4TwoVector(), boost::python::container_utils::extend_container(), f_alloc_int(), phot::fast_acos(), larg4::fast_acos(), cluster::HoughBaseAlg::FastTransform(), evgb::FillMCTruth(), lar_content::ShowerHitsBaseTool::FilterCaloHits(), cluster::BlurredClusteringAlg::FindBlurringParameters(), cluster::BlurredClusteringAlg::FindClusters(), lar_content::LArConnectionPathwayHelper::FindShowerStartFromPosition(), tca::FitTP3Ds(), tca::FitTraj(), cluster::ClusterCrawlerAlg::FitVtx(), cluster::BlurredClusteringAlg::GaussianBlur(), cluster::EndPointAlg::GaussianDerivativeX(), MedicalBeam::GenerateBeamDirection(), genie::flux::GPowerSpectrumAtmoFlux::GenerateNext(), larg4::MCTruthEventActionService::generatePrimaries(), g4b::ConvertMCTruthToG4::GeneratePrimaries(), detsim::SimWire::GenNoise(), util::GeometryUtilities::Get2DPointProjection(), lar_content::ThreeViewShowersAlgorithm::GetBestHitOverlapFraction(), lar_content::BoundedClusterMopUpAlgorithm::GetBoundedFraction(), trkf::SeedFinderAlgorithm::GetCenterAndDirection(), evgb::EvtTimeShiftI::GetConfigTokens(), lar_content::HitWidthClusterMergingAlgorithm::GetGlobalDirection(), lar_content::TwoDSlidingFitResult::GetGlobalFitPositionListAtX(), lar_dl_content::DlHitTrackShowerIdAlgorithm::GetHitRegion(), lar_dl_content::DlVertexingAlgorithm::GetHitRegion(), sim::SimListUtils::GetLArVoxelList(), lar_content::NViewDeltaRayMatchingAlgorithm< T >::GetNearbyMuonPfos(), util::GeometryUtilities::GetProjectedPoint(), lar_content::ThreeViewTrackFragmentsAlgorithm::GetProjectedPositions(), lar_content::NViewDeltaRayMatchingAlgorithm< T >::GetProjectedPositions(), evgen::CORSIKAGen::GetSample(), lar_content::ThreeViewTransverseTracksAlgorithm::GetSegmentOverlap(), lar_content::MissingTrackSegmentTool::GetSegmentOverlapMap(), lar_content::BoundedClusterMopUpAlgorithm::GetShowerPositionMap(), lar_content::ThreeViewShowersAlgorithm::GetShowerPositionMaps(), lar_dl_content::DlHitTrackShowerIdAlgorithm::GetSparseTileMap(), lar_content::TwoDSlidingFitResult::GetTransverseSurroundingLayers(), phot::PropagationTimeModel::getVISTimes(), larg4::OpFastScintillation::getVISTimes(), util::GeometryUtilities::GetXYZ(), ems::Hit2D::Hit2D(), cluster::HoughBaseAlg::HoughBaseAlg(), sim::MCRecoPart::InDetector(), lar_dl_content::DlHitTrackShowerIdAlgorithm::Infer(), lar_dl_content::DlVertexingAlgorithm::Infer(), pma::Track3D::InitFromHits(), lar_content::DiscreteProbabilityVector::InitialiseDiscreteProbabilityData(), DUNE::NeutrinoShowerEff::insideFV(), NuShowerEff::insideFV(), DUNE::NeutrinoTrackingEff::insideFV(), DUNE::MuonTrackingEff::insideFV(), lar_content::LArVertexHelper::IsInFiducialVolume(), Iterate(), trkf::KHitWireLine::KHitWireLine(), trkf::KHitWireX::KHitWireX(), sim::LArVoxelID::LArVoxelID(), lar_cluster3d::PCASeedFinderAlg::LineFit2DHits(), lar_cluster3d::HoughSeedFinderAlg::LineFit2DHits(), main(), lar_dl_content::DlVertexingAlgorithm::MakeNetworkInputFromHits(), trkf::Track3DKalmanHitAlg::makeSeed(), trkf::SpacePointAlg::makeSpacePoints(), lar_dl_content::DlVertexingAlgorithm::MakeWirePlaneCoordinatesFromCanvas(), trkf::TrajectoryMCSFitter::mass(), pma::PMAlgTracker::matchCluster(), geoalgo::AABox::Max(), pma::PMAlgTracker::maxCluster(), hit::details::CompiledGausFitCacheBaseStruct::MaxGaussians(), Metric(), geoalgo::AABox::Min(), MyG4MuIonisationNoDelta::MinPrimaryEnergy(), molecule(), evd::Ortho3DPad::MouseEvent(), hit::details::CompiledGausFitCacheBaseStruct::ngaus(), cluster::BlurredClusteringAlg::NumNeighbours(), delete_marker::operator()(), delete_polymarker::operator()(), delete_line::operator()(), delete_polyline::operator()(), delete_arc::operator()(), delete_box::operator()(), delete_text::operator()(), delete_latex::operator()(), delete_marker3dbox::operator()(), delete_polymarker3d::operator()(), delete_polyline3d::operator()(), mvapid::MVAAlg::SumDistance2::operator()(), lar::Identity< T >::operator()(), art::PtrRemapper::operator()(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_2D(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_3D(), reco3d::PlotSpacePoints::Plot(), reco3d::PlotSpacePoints::Plot3D(), larg4::MuNuclearSplittingProcessXSecBias::PostStepDoIt(), lar_dl_content::DlVertexingAlgorithm::PrepareTrainingSample(), wc::CellTree::processSpacePoint(), wc::CellTree::processSpacePointTruthDepo(), vertex::PrimaryVertexFinder::produce(), trkf::TrackKalmanCheater::produce(), NuGraphInference::produce(), calo::Calorimetry::produce(), genf::GFDetPlane::project(), geoalgo::Line::Pt1(), geoalgo::Line::Pt2(), ReadASCII(), evgen::FileMuons::ReadEvents(), evgen::LightSource::readParametersFromInputFile(), tf::Graph::run(), lar_content::LArPcaHelper::RunPca(), evgen::LightSource::Sample(), evgen::ActiveVolumeVertexSampler::sample_vertex_pos(), evgen::RadioGen::samplefromth1d(), evgen::larg4SingleGen::SampleMany(), evgen::SingleGen::SampleMany(), evgen::GaisserParam::SampleOne(), evgen::larg4SingleGen::SampleOne(), evgen::SingleGen::SampleOne(), evd::HitSelector::SaveHits(), evd::RecoBaseDrawer::Seed2D(), evd::TWQProjectionView::SelectHit(), evd::TWQProjectionView::SelectPoint(), evd::TWQMultiTPCProjectionView::SelectPoint(), art::ServiceHandle< art::FileTransfer >::ServiceHandle(), genf::GFDetPlane::setFinitePlane(), evd::TWQProjectionView::SetMouseZoomRegion(), evd::TWQMultiTPCProjectionView::SetMouseZoomRegion(), trkf::TrackKalmanFitter::setupInputStates(), sim::MCEnDep::SetVertex(), evd::TWireProjPad::SetZoomToRoI(), shower::LArPandoraShowerAlg::ShowerCentre(), shower::TCShowerTemplateMaker::showerProfileTrue(), cheat::PhotonBackTracker::SimSDPsToXYZ(), pma::SolveLeastSquares3D(), SolvePair(), evgen::SpectrumVolumeGen::SpectrumVolumeGen(), geoalgo::Sphere::Sphere(), sqr(), geoalgo::HalfLine::Start(), geoalgo::LineSegment::Start(), vertex::PrimaryVertexFinder::StartPointSeperation(), lar::util::StatCollector< T, W >::Sum(), lar::util::StatCollector< T, W >::SumSq(), lar_dl_content::DlVertexingAlgorithm::VertexTuple::ToString(), tca::TrajClosestApproach(), reco3d::TripletFinder::Triplets(), reco3d::TripletFinder::TripletsTwoView(), trkf::TrackLineFitAlg::TrkLineFit(), sim::UniquePosition::UniquePosition(), geoalgo::Vector::Vector(), while(), hit::DPRawHitFinder::WidthFunc(), geoalgo::AABox::~AABox(), geoalgo::Cone::~Cone(), geoalgo::HalfLine::~HalfLine(), geoalgo::Line::~Line(), geoalgo::LineSegment::~LineSegment(), and geoalgo::Sphere::~Sphere().

Float_t y

Definition at line 6 of file compare.C.

Referenced by lar::util::StatCollector2D< T, W >::add(), pma::ProjectionMatchingAlg::addEndpointRef_(), reco3d::SpacePointSolver::AddNeighbours(), opdet::OpFlashAna::analyze(), lar::ComputePi::analyze(), lar_cluster3d::ConvexHull::Area(), evgen::NDKGen::beginJob(), evgen::GENIEGen::beginJob(), detsim::ISCalculationSeparate::CalculateIonization(), lar_content::DiscreteProbabilityVector::CalculateNormalisation(), geoalgo::Sphere::Center(), evd::HitSelector::ChangeHit(), shower::LArPandoraShowerCheatingAlg::CheatDebugEVD(), lar::util::StatCollector2D< T, W >::clear(), keras::LayerMaxPooling::compute_output(), keras::LayerActivation::compute_output(), keras::LayerConv2D::compute_output(), keras::conv_single_depth_same(), keras::conv_single_depth_valid(), cluster::BlurredClusteringAlg::ConvertBinToCharge(), shower::LArPandoraShowerAlg::DebugEVD(), geoalgo::HalfLine::Dir(), evdb_tool::DrawSkewHits::Draw(), evd::RecoBaseDrawer::Draw2DSlopeEndPoints(), evd_tool::MicroBooNEDrawer::DrawGrids(), evd_tool::ICARUSDrawer::DrawGrids(), evd_tool::ProtoDUNEDrawer::DrawGrids(), evd_tool::StandardDrawer::DrawGrids(), evd::RecoBaseDrawer::DrawTrackOrtho(), detsim::ISCalculationSeparate::EFieldAtStep(), geoalgo::LineSegment::End(), cluster::EndPointAlg::EndPoint(), evd::RecoBaseDrawer::EndPoint2D(), export_G4ThreeVector(), export_G4TwoVector(), cluster::HoughBaseAlg::FastTransform(), cosmic::BeamFlashTrackMatchTaggerAlg::FillFlashProperties(), evgb::FillMCTruth(), tca::Find3DVertices(), cluster::BlurredClusteringAlg::FindBlurringParameters(), cluster::BlurredClusteringAlg::FindClusters(), evd::TWQMultiTPCProjectionView::FindEndPoint(), evd::TWQProjectionView::FindEndPoint(), cluster::ClusterCrawlerAlg::FindHammerClusters(), evd::TWQMultiTPCProjectionView::FindLineLength(), evd::TWQProjectionView::FindLineLength(), quad::FindPeak3D(), reco_tool::PeakFitterMrqdt::findPeakParameters(), tca::FitTraj(), cluster::ClusterCrawlerAlg::FitVtx(), cluster::BlurredClusteringAlg::GaussianBlur(), cluster::EndPointAlg::GaussianDerivativeY(), MedicalBeam::GenerateBeamDirection(), genie::flux::GPowerSpectrumAtmoFlux::GenerateNext(), larg4::MCTruthEventActionService::generatePrimaries(), g4b::ConvertMCTruthToG4::GeneratePrimaries(), vertex::FeatureVertexFinder::Get3dVertexCandidates(), trkf::SeedFinderAlgorithm::GetCenterAndDirection(), sim::SimListUtils::GetLArVoxelList(), util::GeometryUtilities::GetProjectedPoint(), util::GeometryUtilities::GetYZ(), cluster::HoughBaseAlg::HoughBaseAlg(), sim::MCRecoPart::InDetector(), pma::Track3D::InitFromHits(), pma::Track3D::InitFromRefPoints(), DUNE::NeutrinoShowerEff::insideFV(), NuShowerEff::insideFV(), DUNE::NeutrinoTrackingEff::insideFV(), DUNE::MuonTrackingEff::insideFV(), lar_content::LArVertexHelper::IsInFiducialVolume(), sim::LArVoxelID::LArVoxelID(), cluster::ClusterMatchAlg::Match_RoughZ(), geoalgo::AABox::Max(), geoalgo::AABox::Min(), larg4::model_far(), molecule(), evd::Ortho3DPad::MouseEvent(), cluster::BlurredClusteringAlg::NumNeighbours(), mvapid::MVAAlg::SumDistance2::operator()(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_2D(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_3D(), reco3d::PlotSpacePoints::Plot(), reco3d::PlotSpacePoints::Plot3D(), wc::CellTree::processSpacePoint(), wc::CellTree::processSpacePointTruthDepo(), vertex::PrimaryVertexFinder::produce(), shwf::ShowerReco::produce(), trkf::TrackKalmanCheater::produce(), geoalgo::Line::Pt1(), geoalgo::Line::Pt2(), ReadASCII(), evgen::RadioGen::readfile(), evgen::LightSource::readParametersFromInputFile(), lar_content::LArPcaHelper::RunPca(), evgen::ActiveVolumeVertexSampler::sample_vertex_pos(), evd::HitSelector::SaveHits(), evd::RecoBaseDrawer::Seed2D(), evd::TWQProjectionView::SelectHit(), evd::TWQProjectionView::SelectPoint(), evd::TWQMultiTPCProjectionView::SelectPoint(), detinfo::LArPropertiesStandard::SetAlphaScintYield(), detinfo::LArPropertiesStandard::SetElectronScintYield(), detinfo::LArPropertiesStandard::SetKaonScintYield(), detinfo::LArPropertiesStandard::SetMuonScintYield(), detinfo::LArPropertiesStandard::SetPionScintYield(), detinfo::LArPropertiesStandard::SetProtonScintYield(), detinfo::LArPropertiesStandard::SetScintYield(), detinfo::LArPropertiesStandard::SetTpbTimeConstant(), sim::MCEnDep::SetVertex(), evd::TWireProjPad::SetZoomToRoI(), trkf::TrackTrajectoryAlg::ShortTrackTrajectory(), shower::LArPandoraShowerAlg::ShowerCentre(), shower::TCShowerTemplateMaker::showerProfileTrue(), cheat::PhotonBackTracker::SimSDPsToXYZ(), pma::SolveLeastSquares3D(), evgen::SpectrumVolumeGen::SpectrumVolumeGen(), geoalgo::Sphere::Sphere(), geoalgo::HalfLine::Start(), geoalgo::LineSegment::Start(), vertex::PrimaryVertexFinder::StartPointSeperation(), lar_dl_content::DlVertexingAlgorithm::VertexTuple::ToString(), tca::TrajClosestApproach(), sim::UniquePosition::UniquePosition(), geoalgo::Vector::Vector(), cluster::ClusterCrawlerAlg::VtxMatch(), while(), geoalgo::AABox::~AABox(), geoalgo::Cone::~Cone(), geoalgo::HalfLine::~HalfLine(), geoalgo::Line::~Line(), geoalgo::LineSegment::~LineSegment(), gshf::MarqFitAlg::~MarqFitAlg(), and geoalgo::Sphere::~Sphere().