LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 Draw ( "AP"  )
gr2 Draw ( "CP"  )
pad3 Draw ( )
fclose ( fg2  )
h2 GetXaxis ( ) -> SetTitle("Distance from the centre (cm)")
h2 GetYaxis ( ) -> SetTitle("Normalised dose rate distribution")
pad3 SetFillColor ( )
gr2 SetLineWidth ( )

Referenced by export_G4VisAttributes().

gPad SetLogy ( )
gr1 SetMarkerColor ( )
ntuple2 SetMarkerColor ( )
ntupleExperimental SetMarkerSize ( 0.  5)
ntuple2 SetMarkerStyle ( 20  )
gr2 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.

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(), lar::ComputePi::analyze(), trkf::SpacePointAna::analyze(), trkf::TrackAna::anaStitch(), 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::NUANCEGen::beginJob(), evgen::NDKGen::beginJob(), evgen::GENIEGen::beginJob(), evd::RecoBaseDrawer::BezierTrack2D(), evd::RecoBaseDrawer::BezierTrack3D(), bounds(), reco3d::SpacePointSolver::BuildSystemXUV(), TruncMean::CalcIterativeTruncMean(), larg4::ISCalculationSeparate::CalculateIonization(), geoalgo::Sphere::Center(), evd::HitSelector::ChangeHit(), evd::TWQMultiTPCProjectionView::ChangeWire(), evd::TWQProjectionView::ChangeWire(), hit::DPRawHitFinder::ChargeFunc(), pma::ProjectionMatchingAlg::chkEndpointHits(), tca::TrajClusterAlg::ChkStop(), lar::util::StatCollector< T, W >::clear(), lar::util::StatCollector2D< T, W >::clear(), evd::TWQMultiTPCProjectionView::ClearEndPoints(), evd::TWQProjectionView::ClearEndPoints(), art::EventSelector::combine(), keras::LayerMaxPooling::compute_output(), keras::LayerConv2D::compute_output(), QuadExpr::Constant(), shower::EMShowerAlg::Construct3DPoint(), cluster::BlurredClusteringAlg::ConvertBinToCharge(), tf::Graph::create(), lar::example::ShowerCalibrationGaloreFromPID::createInterpolator(), genf::GFWireHitPolicy::detPlane(), genf::GFWirepointHitPolicy::detPlane(), geoalgo::HalfLine::Dir(), genf::GFDetPlane::dist(), evd::TQPad::Draw(), evd::RecoBaseDrawer::Draw2DSlopeEndPoints(), evd_tool::StandardDrawer::DrawGrids(), evd_tool::MicroBooNEDrawer::DrawGrids(), evd_tool::ICARUSDrawer::DrawGrids(), evd::RecoBaseDrawer::DrawTrackOrtho(), evd::RecoBaseDrawer::DrawTrackVertexAssns2D(), larg4::ISCalculationSeparate::EFieldAtStep(), util::LArPropertiesServiceArgoNeuT::Eloss(), detinfo::DetectorPropertiesStandard::Eloss(), geoalgo::LineSegment::End(), cluster::EndPointAlg::EndPoint(), evd::RecoBaseDrawer::EndPoint2D(), phot::PhotonLibraryHybrid::FitFunc::Eval(), art::EventSelector::expandDecisionList(), export_G4ThreeVector(), export_G4TwoVector(), boost::python::container_utils::extend_container(), lar::example::details::extractPositionX(), f_alloc_int(), cluster::HoughBaseAlg::FastTransform(), evgb::FillMCTruth(), lar_content::ShowerHitsBaseTool::FilterCaloHits(), cluster::BlurredClusteringAlg::FindBlurringParameters(), cluster::BlurredClusteringAlg::FindClusters(), tca::FitTp3(), tca::FitTp3s(), tca::FitTraj(), cluster::ClusterCrawlerAlg::FitVtx(), cluster::BlurredClusteringAlg::GaussianBlur(), cluster::EndPointAlg::GaussianDerivativeX(), vertex::HarrisVertexFinder::GaussianDerivativeX(), MedicalBeam::GenerateBeamDirection(), g4b::ConvertMCTruthToG4::GeneratePrimaries(), lar_content::ThreeDShowersAlgorithm::GetBestHitOverlapFraction(), lar_content::BoundedClusterMopUpAlgorithm::GetBoundedFraction(), trkf::SeedFinderAlgorithm::GetCenterAndDirection(), trkf::BezierTrack::GetClosestApproach(), lar_content::TwoDSlidingFitResult::GetGlobalFitPositionListAtX(), sim::SimListUtils::GetLArVoxelList(), trkf::Track3DKalmanHit::getPFParticleStuff(), util::GeometryUtilities::GetProjectedPoint(), lar_content::ThreeDTrackFragmentsAlgorithm::GetProjectedPositions(), evgen::CORSIKAGen::GetSample(), lar_content::ThreeDTransverseTracksAlgorithm::GetSegmentOverlap(), lar_content::MissingTrackSegmentTool::GetSegmentOverlapMap(), lar_content::BoundedClusterMopUpAlgorithm::GetShowerPositionMap(), lar_content::ThreeDShowersAlgorithm::GetShowerPositionMaps(), lar_content::TwoDSlidingFitResult::GetTransverseSurroundingLayers(), util::GeometryUtilities::GetXYZ(), ems::Hit2D::Hit2D(), sim::MCRecoPart::InDetector(), pma::Track3D::InitFromHits(), DUNE::NeutrinoShowerEff::insideFV(), DUNE::NeutrinoTrackingEff::insideFV(), DUNE::MuonTrackingEff::insideFV(), Iterate(), trkf::KHitWireLine::KHitWireLine(), trkf::KHitWireX::KHitWireX(), sim::LArVoxelID::LArVoxelID(), corner::CornerFinderAlg::line_integrals(), lar_cluster3d::PCASeedFinderAlg::LineFit2DHits(), lar_cluster3d::HoughSeedFinderAlg::LineFit2DHits(), main(), tca::TrajClusterAlg::MakeJunkTraj(), trkf::Track3DKalmanHitAlg::makeSeed(), trkf::SpacePointAlg::makeSpacePoints(), wc::MergeWireCell::MakeTracks(), trkf::TrajectoryMCSFitter::mass(), pma::PMAlgTracker::matchCluster(), geoalgo::AABox::Max(), pma::PMAlgTracker::maxCluster(), hit::details::CompiledGausFitCacheBaseStruct::MaxGaussians(), Metric(), geoalgo::AABox::Min(), 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()(), evgb::GENIEHelper::PackMCTruth(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_2D(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_3D(), reco3d::PlotSpacePoints::Plot(), reco3d::PlotSpacePoints::Plot3D(), lar::example::SpacePartition< PointIter >::pointIndex(), larg4::MuNuclearSplittingProcessXSecBias::PostStepDoIt(), wc::CellTree::processSpacePoint(), evgen::NUANCEGen::produce(), trkf::TrackKalmanCheater::produce(), vertex::PrimaryVertexFinder::produce(), vertex::HarrisVertexFinder::produce(), calo::Calorimetry::produce(), genf::GFDetPlane::project(), evd::RecoBaseDrawer::Prong2D(), geoalgo::Line::Pt1(), geoalgo::Line::Pt2(), evgen::FileMuons::ReadEvents(), tf::Graph::run(), lar_content::LArPcaHelper::RunPca(), evgen::LightSource::Sample(), evgen::ActiveVolumeVertexSampler::sample_vertex_pos(), evgen::RadioGen::samplefromth1d(), evgen::SingleGen::SampleMany(), evgen::GaisserParam::SampleOne(), evgen::SingleGen::SampleOne(), evd::HitSelector::SaveHits(), evd::RecoBaseDrawer::Seed2D(), evd::TWQProjectionView::SelectHit(), evd::TWQMultiTPCProjectionView::SelectPoint(), evd::TWQProjectionView::SelectPoint(), art::ServiceHandle< art::FileTransfer >::ServiceHandle(), art::ServiceHandle< T, art::ServiceScope::PER_SCHEDULE >::ServiceHandle(), genf::GFDetPlane::setFinitePlane(), evd::TWQMultiTPCProjectionView::SetMouseZoomRegion(), evd::TWQProjectionView::SetMouseZoomRegion(), trkf::TrackKalmanFitter::setupInputStates(), sim::MCEnDep::SetVertex(), evd::TWireProjPad::SetZoomToRoI(), cheat::PhotonBackTracker::SimSDPsToXYZ(), pma::SolveLeastSquares3D(), SolvePair(), 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(), tca::TjDirFOM(), tca::TrajClosestApproach(), cluster::HoughBaseAlg::Transform(), trkf::TrackLineFitAlg::TrkLineFit(), sim::UniquePosition::UniquePosition(), unixDlError(), evd::Display3DPad::UpdateSeedCurve(), evd::TWireProjPad::UpdateSeedCurve(), geoalgo::Vector::Vector(), lar::example::ShowerCalibrationGaloreFromPID::verifyOrder(), while(), hit::DPRawHitFinder::WidthFunc(), geo::GeometryCore::WireCoordinate(), geoalgo::AABox::~AABox(), geoalgo::Cone::~Cone(), genf::GeaneMCApplication::~GeaneMCApplication(), 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(), evgen::NUANCEGen::beginJob(), evgen::NDKGen::beginJob(), evgen::GENIEGen::beginJob(), evd::RecoBaseDrawer::BezierTrack2D(), evd::RecoBaseDrawer::BezierTrack3D(), bounds(), larg4::ISCalculationSeparate::CalculateIonization(), geoalgo::Sphere::Center(), evd::HitSelector::ChangeHit(), tca::TrajClusterAlg::ChkStop(), 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(), lar::example::ShowerCalibrationGaloreFromPID::createInterpolator(), geoalgo::HalfLine::Dir(), evd::TQPad::Draw(), evd::RecoBaseDrawer::Draw2DSlopeEndPoints(), evd_tool::StandardDrawer::DrawGrids(), evd_tool::ICARUSDrawer::DrawGrids(), evd_tool::MicroBooNEDrawer::DrawGrids(), evd::RecoBaseDrawer::DrawTrackOrtho(), evd::RecoBaseDrawer::DrawTrackVertexAssns2D(), larg4::ISCalculationSeparate::EFieldAtStep(), geoalgo::LineSegment::End(), cluster::EndPointAlg::EndPoint(), evd::RecoBaseDrawer::EndPoint2D(), export_G4ThreeVector(), export_G4TwoVector(), lar::example::details::extractPositionY(), 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(), tca::FitTraj(), cluster::ClusterCrawlerAlg::FitVtx(), cluster::BlurredClusteringAlg::GaussianBlur(), cluster::EndPointAlg::GaussianDerivativeY(), vertex::HarrisVertexFinder::GaussianDerivativeY(), MedicalBeam::GenerateBeamDirection(), g4b::ConvertMCTruthToG4::GeneratePrimaries(), vertex::FeatureVertexFinder::Get3dVertexCandidates(), trkf::SeedFinderAlgorithm::GetCenterAndDirection(), sim::SimListUtils::GetLArVoxelList(), util::GeometryUtilities::GetProjectedPoint(), util::GeometryUtilities::GetYZ(), sim::MCRecoPart::InDetector(), pma::Track3D::InitFromHits(), pma::Track3D::InitFromRefPoints(), DUNE::NeutrinoShowerEff::insideFV(), DUNE::NeutrinoTrackingEff::insideFV(), DUNE::MuonTrackingEff::insideFV(), sim::LArVoxelID::LArVoxelID(), corner::CornerFinderAlg::line_integrals(), main(), tca::TrajClusterAlg::MakeJunkTraj(), trkf::BezierTrackerAlgorithm::MakeTracks(), wc::MergeWireCell::MakeTracks(), cluster::ClusterMatchAlg::Match_RoughZ(), geoalgo::AABox::Max(), geoalgo::AABox::Min(), evd::Ortho3DPad::MouseEvent(), cluster::BlurredClusteringAlg::NumNeighbours(), mvapid::MVAAlg::SumDistance2::operator()(), evgb::GENIEHelper::PackMCTruth(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_2D(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_3D(), reco3d::PlotSpacePoints::Plot(), reco3d::PlotSpacePoints::Plot3D(), lar::example::SpacePartition< PointIter >::pointIndex(), wc::CellTree::processSpacePoint(), evgen::NUANCEGen::produce(), trkf::TrackKalmanCheater::produce(), vertex::PrimaryVertexFinder::produce(), vertex::HarrisVertexFinder::produce(), shwf::ShowerReco::produce(), evd::RecoBaseDrawer::Prong2D(), geoalgo::Line::Pt1(), geoalgo::Line::Pt2(), evgen::RadioGen::readfile(), cluster::fuzzyClusterAlg::run_fuzzy_cluster(), lar_content::LArPcaHelper::RunPca(), evgen::ActiveVolumeVertexSampler::sample_vertex_pos(), evd::HitSelector::SaveHits(), evd::RecoBaseDrawer::Seed2D(), evd::TWQProjectionView::SelectHit(), evd::TWQMultiTPCProjectionView::SelectPoint(), evd::TWQProjectionView::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(), cheat::PhotonBackTracker::SimSDPsToXYZ(), pma::SolveLeastSquares3D(), geoalgo::Sphere::Sphere(), geoalgo::HalfLine::Start(), geoalgo::LineSegment::Start(), vertex::PrimaryVertexFinder::StartPointSeperation(), tca::TjDirFOM(), tca::TrajClosestApproach(), cluster::HoughBaseAlg::Transform(), sim::UniquePosition::UniquePosition(), evd::Display3DPad::UpdateSeedCurve(), evd::TWireProjPad::UpdateSeedCurve(), geoalgo::Vector::Vector(), cluster::ClusterCrawlerAlg::VtxMatch(), while(), geo::GeometryCore::WireCoordinate(), geoalgo::AABox::~AABox(), geoalgo::Cone::~Cone(), geoalgo::HalfLine::~HalfLine(), geoalgo::Line::~Line(), geoalgo::LineSegment::~LineSegment(), and geoalgo::Sphere::~Sphere().