Functions | Variables
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"  )
leg Draw ( )
fclose ( fg1  )

Referenced by AnaResultsSpectra(), calib::BetheBlochTables::BetheBlochTables(), BlessedPlotsAna(), BlessedPlotsAnaByPeriod(), CalcRWithSysts(), CalcRWithSystsNus17(), calibrationconstants(), convert(), CPUSpeed(), lem::CreateOnDemandMapping(), CutTableAna(), d3sigma_calc(), d4sigma_calc(), DCMOffsetCalculator(), dump_lib(), dt::ViewMerger::endJob(), dt::DiscreteTracker::endJob(), calib::AttenFit::endJob(), calib::DCMTimingOffset::endJob(), ExtendedAxesAna(), FDDataMCSystBandAna(), FitParamEffectsAna(), FitSystEffectsAna(), caf::CAFMaker::InitializeOutfile(), calib::AttenCache::LoadFromDatabase(), dbutils::gui::DCSConfigEditorDisplay::loadHVAndTemps(), dbutils::gui::DAQConfigEditorDisplay::loadThresholdsAndMasks(), make_plots(), ana::MakeTextListFileHelper(), geo::GeometryBase::MakeTmpFile(), lem::MMapFileAtAddress(), NDDataMCSystBandAna(), Nus18SystsBeamTranspAna(), Nus18SystsCalibAbsAna(), Nus18SystsCalibRelAna(), Nus18SystsGENIEAna(), Nus18SystsKaonAna(), Nus18SystsLightLevelAna(), Nus18SystsLLMethodAna(), Nus18SystsNeutronAna(), Nus18SystsPPFXAna(), Nus18SystsTauAna(), Nus18SystsXSecOnOffAna(), PlotNus17Prediction(), nutools::dbi::Table::PrintPMUsed(), nova::dbi::Table::PrintPMUsed(), nutools::dbi::Table::PrintVMUsed(), nova::dbi::Table::PrintVMUsed(), dt::ViewMerger::reconfigure(), dt::DiscreteTracker::reconfigure(), ana::FileReducer::SetEventList(), sha1_forRMS_file(), SideBandAna(), SpectrumParamEffectsAna(), SystsAcceptanceAna17(), SystsBeamAna(), SystsBeamTranspAna(), SystsBirksAna(), SystsCalibAbsAna(), SystsCalibAbsAna17(), SystsCalibRelAna(), SystsCalibRelAna17(), SystsDecompAna(), SystsDecompAna17(), SystsFidContAna(), SystsGENIEAna(), SystsGENIEAna17(), SystsMCStatsAna(), SystsNDRockAna(), SystsNoiseAna(), SystsOscParamAna(), SystsPPFXAna17(), while(), calib::AttenuationFit::writeResults(), mcdatadaq::DataLoggerSimulator::~DataLoggerSimulator(), mcdatadaq::DCMSimulator::~DCMSimulator(), and mcdatadaq::GlobalTriggerSimulator::~GlobalTriggerSimulator().

fclose ( fg2  )
gr1 GetXaxis ( ) -> SetTitle("Distance from the centre (cm)")

Definition at line 84 of file plot_lowE_sig_spread_genie.C.

84 {#nu} (GeV)");
gr1 GetYaxis ( ) -> SetTitle("Normalised dose rate distribution")
leg SetFillColor ( )
gr2 SetLineColor ( )
gr2 SetLineWidth ( )
gPad SetLogy ( )
gr1 SetMarkerColor ( )
ntuple2 SetMarkerColor ( )
ntupleExperimental SetMarkerSize ( 0.  5)
gr1 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)
TGraph* gr2 = new TGraph (nlines2, x2, y2)
TLegend* leg = new TLegend(0.3, 0.5, 0.6, 0.8)

Definition at line 67 of file compare.C.

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 while().

Float_t x1[n_points_granero]

Definition at line 5 of file compare.C.

Referenced by util::HoughCalc::AddPoint(), bpfit::TrackBasis::AdjustBasisDir(), genie::GRV98LO::AllPDFs(), sn::SNSlicerAna::analyze(), hough::HoughValidate::analyze(), slid::LIDTraining::analyze(), ana::AutoPlaceLegend(), AverageBiasScan(), HepGeom::BasicVector3D< float >::BasicVector3D(), ana::best_spline_find_mode(), calib::BetheBlochAnalytic::BetheBlochAnalytic(), bin_composition_pie_chart(), caldp::TCTrack::CalculateFiberVelocity(), caldp::TCTrack::CalculateMuonVelocity(), daqdataformats::calculateShiftFromAGivenMask(), evd::RecoBaseDrawer::CellHit3D(), bpfit::dEdxCalculator::computeDEDX(), cosnumi_plot(), geo::GeometryBase::CountCellsOnLine(), CustomLegend(), ana::CustomLegend(), CylindricalSmoothing(), daqchannelmap::HardwareDisplay::DAQToXY(), daqdataformats::DecodeTrigMask32(), DataCompression::decodeVal(), DefaultNueLegend(), ana::DefaultNueLegend(), DefaultNumuLegend(), calib::BetheBlochAnalytic::Delta(), evgen::CosmicsGen::DetectorBigBoxCut(), evgen::CORSIKAGen::DetectorBigBoxCut(), geo::GeometryBase::DetectorEnclosureBox(), sn::SNMichelAnalyzer::DistanceHitToPoint(), evd::TQPad::Draw(), evd::HitTower::Draw(), DrawBins(), evd::GeometryDrawer::DrawCells2D(), DrawFrame(), evd::GeometryDrawer::DrawHighlightCell(), evd::RecoBaseDrawer::DrawHoughResults2D(), DrawPulls(), dsqrtoline(), novaddt::TrackFit::DsqrToLine(), genie::BLI2DUnifGrid::Evaluate(), genie::BLI2DNonUnifGrid::Evaluate(), ana::SurfaceKrige::FillSurface(), util::find_median(), ana::FindCurveCrossings(), bpfit::Path::FindLayers(), trk::RLFit::Fit(), FitValues(), novaddt::TrackFit::FitView(), bpfit::DimuonFitter::FitView(), stan::math::fma(), stan::math::fmax(), stan::math::fmin(), geo::GetAvgPath2D(), jmshower::RecoJMShower::GetCellDistToTrk(), GetCovMx(), calib::EnergyLossVsDistance::GetEnergyLoss(), GetLimits(), om::MicroErrors::GetMicroSliceSummary(), om::NanoErrors::GetNanoSliceSummary(), om::HitMaps::GetNanoSliceSummary(), geo::GeometryBase::getPlaneAndCellID(), evgen::CORSIKAGen::GetSample(), GetTunedMECWeight(), novaddt::UpMuTrigger::GetXYZ(), novaddt::UpMuAna::GetXYZ(), evd::HardwareView::HardwareView(), hough::HoughValidate::HoughLineToDetector(), genie::HAIntranuke::Inelastic(), genie::HAIntranuke2018::Inelastic(), daqdataformats::VERSION_NAMESPACE::RawTriggerMask::init(), daqdataformats::DCMSimulator::initFEBList(), osc::EarthModel::IntersectLineAndCircle(), nova::dbi::RunHistory::IsGoodDiBlock(), legend(), geo::LineIntersection(), osc::EarthModel::LineProfile(), nova::dbi::RunHistory::LoadPedestals(), calib::AttenFit::lowessFit(), calib::AttenuationFit::lowessFit(), main(), make_angle_plot(), make_UU_plot(), MakeAverageTrueEnergySurface(), evd::SimulationDrawer::MCTruthVectors2D(), evd::SimulationDrawer::MCTruthVectors3D(), ana::Spectrum::Mean(), MoveT2KtoNOvAUnits(), novaddt::NBitInt2Float(), evdb::TBoxClipped::Paint(), om::PlotOptions::ParseXscale(), g4n::FLSHitListAction::ParticleProjection(), plot(), PlotEffs(), mcchk::ShowerAnaCheck::PointLineDistance(), stan::math::pow(), PrintErrorSurface(), ifdb::MIN::produce(), evgen::CosmicsGen::ProjectCosmicsToSurface(), evgen::CosmicsGen::ProjectMuonsToDetectorBigBox(), nl::TimeSeriesData::RangeValue(), om::HistoTable::ReadFile(), ResolutionPlot(), RotateT2K(), evgb::CRYHelper::Sample(), HepGeom::BasicVector3D< float >::set(), geo::GeometryBase::setDetectorBigBox(), novaddt::DDTTrackMerge::simpleMerge(), TEST(), TEST_F(), ana::ToEigenSterile(), dt::ViewMerger::TotalChargePerView(), zcl::FMMTracker::Tracking2D(), tree_maker_simple(), trk::KalmanTrackMerge::ViewMergeTracks(), evgb::CRYHelper::WorldBox(), geo::GeometryBase::WorldBox(), ana::Hist::Write(), daqchannelmap::HardwareDisplay::XYFEB(), daqchannelmap::HardwareDisplay::XYPix(), and dt::ViewMerger::ZipVerticalTracks().

Float_t x2[n_points_geant4]

Definition at line 26 of file compare.C.

Float_t y

Definition at line 6 of file compare.C.

Referenced by while().

Float_t y1[n_points_granero]

Definition at line 5 of file compare.C.

Referenced by util::HoughCalc::AddPoint(), bpfit::TrackBasis::AdjustBasisDir(), slid::LIDTraining::analyze(), rsim::FPGA_MatchedFiltering::ASICToDigits(), ana::AutoPlaceLegend(), HepGeom::BasicVector3D< float >::BasicVector3D(), bin_composition_pie_chart(), caldp::TCTrack::CalculateFiberVelocity(), caldp::TCTrack::CalculateMuonVelocity(), evd::RecoBaseDrawer::CellHit3D(), bpfit::dEdxCalculator::computeDEDX(), cosnumi_plot(), geo::GeometryBase::CountCellsOnLine(), CustomLegend(), ana::CustomLegend(), CylindricalSmoothing(), daqchannelmap::HardwareDisplay::DAQToXY(), DCMOffsetCalculator(), calib::BetheBlochTables::dEdx(), DefaultNueLegend(), ana::DefaultNueLegend(), DefaultNumuLegend(), evgen::CosmicsGen::DetectorBigBoxCut(), evgen::CORSIKAGen::DetectorBigBoxCut(), geo::GeometryBase::DetectorEnclosureBox(), evd::TQPad::Draw(), evd::HitTower::Draw(), DrawBins(), evd::GeometryDrawer::DrawCells2D(), DrawFrame(), evd::GeometryDrawer::DrawHighlightCell(), DrawPulls(), dsqrtoline(), novaddt::TrackFit::DsqrToLine(), genie::BLI2DUnifGrid::Evaluate(), genie::BLI2DNonUnifGrid::Evaluate(), ana::SurfaceKrige::FillSurface(), util::find_median(), ana::FindCurveCrossings(), beamlinereco::CFDHitFinder< T >::FindHitWidth(), trk::RLFit::Fit(), ana::PredictionInterp::FitRatios(), FitValues(), FourBinLabels(), geo::GetAvgPath2D(), jmshower::RecoJMShower::GetCellDistToTrk(), calib::EnergyLossVsDistance::GetEnergyLoss(), GetLimits(), om::MicroErrors::GetMicroSliceSummary(), om::NanoErrors::GetNanoSliceSummary(), om::HitMaps::GetNanoSliceSummary(), geo::GeometryBase::getPlaneAndCellID(), evgen::CORSIKAGen::GetSample(), novaddt::UpMuTrigger::GetXYZ(), novaddt::UpMuAna::GetXYZ(), osc::EarthModel::IntersectLineAndCircle(), calib::RockMuonStopperSelection::IsContainedStopper(), legend(), novarwgt::LinearInterp(), geo::LineIntersection(), osc::EarthModel::LineProfile(), make_angle_plot(), make_UU_plot(), MakeAverageTrueEnergySurface(), evd::SimulationDrawer::MCTruthVectors2D(), evd::SimulationDrawer::MCTruthVectors3D(), calib::AttenCurve::MeanPEPerCmAt(), MoveT2KtoNOvAUnits(), ana::Nue2017FourBinLabels(), ana::Nue2018ThreeBinLabels(), Nue2018ThreeBinLabels_Reduced(), ana::Nue2018ThreeBinLabels_Reduced(), evdb::TBoxClipped::Paint(), om::PlotOptions::ParseYscale(), g4n::FLSHitListAction::ParticleProjection(), plot_contprof(), PlotEffs(), mcchk::ShowerAnaCheck::PointLineDistance(), PrintErrorSurface(), ifdb::MIN::produce(), evgen::CosmicsGen::ProjectCosmicsToSurface(), evgen::CosmicsGen::ProjectMuonsToDetectorBigBox(), om::HistoTable::ReadFile(), rootgINukeVal(), RotateT2K(), evgb::CRYHelper::Sample(), HepGeom::BasicVector3D< float >::set(), geo::GeometryBase::setDetectorBigBox(), novaddt::DDTTrackMerge::simpleMerge(), TEST(), TEST_F(), dt::ViewMerger::TotalChargePerView(), dt::Chain::ToTrack(), dt::Cand::ToTrack(), zcl::FMMTracker::Tracking2D(), tree_maker_simple(), trk::KalmanTrackMerge::ViewMergeTracks(), evgb::CRYHelper::WorldBox(), geo::GeometryBase::WorldBox(), daqchannelmap::HardwareDisplay::XYFEB(), daqchannelmap::HardwareDisplay::XYPix(), and dt::ViewMerger::ZipVerticalTracks().

Float_t y2[n_points_geant4]

Definition at line 26 of file compare.C.