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

Go to the source code of this file.

Functions

gStyle SetPalette (1)
 
gROOT SetStyle ("Plain")
 
gStyle SetOptStat (000000)
 
c1 Divide (1, 1)
 
 while (1)
 
 fclose (fp)
 
c1 cd (1)
 
gPad SetLogx ()
 
gPad SetLogy ()
 
h2 Draw ()
 
ntuple SetMarkerStyle (20)
 
ntuple SetMarkerSize (1.)
 
ntuple Draw ("mfp:E","","LPSAME")
 
h2 GetXaxis () -> SetLabelSize(0.025)
 
h2 GetYaxis () -> SetLabelSize(0.025)
 

Variables

 c1 = new TCanvas ("c1","",60,60,800,800)
 
FILE * fp = fopen("mfp.txt","r")
 
Float_t E
 
Float_t mfp
 
Float_t smfp
 
Int_t ncols = 0
 
Int_t nlines = 0
 
TNtuple * ntuple = new TNtuple("ntuple","mfp","E:mfp:smfp")
 
TH2F * h2 = new TH2F ("h2","",2,9.99,1e4,2,0.099,1e2)
 

Function Documentation

c1 cd ( )
c1 Divide ( ,
 
)
h2 Draw ( )
ntuple Draw ( "mfp:E"  ,
""  ,
"LPSAME"   
)
fclose ( fp  )
h2 GetXaxis ( ) -> SetLabelSize(0.025)
h2 GetYaxis ( ) -> SetLabelSize(0.025)
gPad SetLogx ( )
gPad SetLogy ( )
ntuple SetMarkerSize ( 1.  )
ntuple SetMarkerStyle ( 20  )
gStyle SetOptStat ( 000000  )
gStyle SetPalette ( )
gROOT SetStyle ( "Plain"  )
while ( )

Definition at line 25 of file plot.C.

References c1, and fclose().

26 {
27  ncols = fscanf(fp,"%f %f %f",&E,&mfp,&smfp);
28  if (ncols < 0) break;
29  ntuple->Fill(E,mfp,smfp);
30  nlines++;
31 }
Float_t smfp
Definition: plot.C:20
Float_t mfp
Definition: plot.C:20
TNtuple * ntuple
Definition: plot.C:20
Float_t E
Definition: plot.C:20
FILE * fp
Definition: plot.C:34
Int_t nlines
Definition: plot.C:51
Int_t ncols
Definition: plot.C:52

Variable Documentation

c1 = new TCanvas ("c1","",60,60,800,800)

Definition at line 15 of file plot.C.

Float_t E

Definition at line 20 of file plot.C.

Referenced by mvapid::MVAAlg::_Var_Shape(), evgen::MARLEYHelper::add_marley_particles(), larg4::LArG4Ana::analyze(), genf::GFMaterialEffects::calcBeta(), lar_content::ConeChargeFeatureTool::CalculateChargeDistribution(), cluster::ClusterCrawlerAlg::ClusterVertexChi(), lar_pandora::LArPandoraInput::CreatePandoraMCParticles(), tca::dEdx(), genf::GFMaterialEffects::effects(), NestAlg::EnergyDeposition(), genf::GFEnergyLossBrems::energyLoss(), genf::GFEnergyLossBetheBloch::energyLoss(), genf::GFEnergyLossCoulomb::energyLoss(), genf::GFMaterialEffects::energyLossBetheBloch(), trkf::TrajectoryMCSFitter::energyLossBetheBloch(), genf::GFMaterialEffects::energyLossBrems(), genf::RKTrackRep::Extrap(), genf::RKTrackRep::extrapolate(), trkf::VertexFitAlg::fcnVtxPos(), tca::FindAlongTrans(), pma::Segment3D::GetDist2(), pma::Segment3D::GetProjection(), trkf::TrackMomentumCalculator::GetTrackMomentum(), pma::Segment3D::GetUnconstrainedProj3D(), art::ProcessHistory::id(), pma::Node3D::MakeGradient(), ClusteringValidation::ClusterAnalyser::MakeHistograms(), genf::GFMaterialEffects::noiseCoulomb(), art::EventIDMatcher::parse_pattern(), genf::GFKalman::processHit(), genf::GFDaf::processTrack(), evgen::NDKGen::produce(), t0::MCTruthT0Matching::produce(), sim::MCTrackRecoAlg::Reconstruct(), sim::MCShowerRecoAlg::Reconstruct(), genf::GFDetPlane::sane(), genf::GFDaf::setProbCut(), pma::Segment3D::SetProjection(), genf::GFMaterialEffects::stepper(), and genf::GFDetPlane::straightLineToPlane().

FILE* fp = fopen("mfp.txt","r")

Definition at line 18 of file plot.C.

TH2F* h2 = new TH2F ("h2","",2,9.99,1e4,2,0.099,1e2)

Definition at line 38 of file plot.C.

Float_t mfp

Definition at line 20 of file plot.C.

Referenced by pfpf::PFPAna::analyze(), and cluster::ClusterAna::analyze().

Int_t ncols = 0

Definition at line 21 of file plot.C.

Int_t nlines = 0

Definition at line 22 of file plot.C.

TNtuple* ntuple = new TNtuple("ntuple","mfp","E:mfp:smfp")

Definition at line 24 of file plot.C.

Float_t smfp

Definition at line 20 of file plot.C.