LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
trkf::TrackAna::RecoHists Struct Reference

Public Member Functions

 RecoHists (const std::string &subdir)
 

Public Attributes

TH1F * fHstartx {nullptr}
 
TH1F * fHstarty {nullptr}
 
TH1F * fHstartz {nullptr}
 
TH1F * fHstartd {nullptr}
 
TH1F * fHendx {nullptr}
 
TH1F * fHendy {nullptr}
 
TH1F * fHendz {nullptr}
 
TH1F * fHendd {nullptr}
 
TH1F * fHtheta {nullptr}
 
TH1F * fHphi {nullptr}
 
TH1F * fHtheta_xz {nullptr}
 
TH1F * fHtheta_yz {nullptr}
 
TH1F * fHmom {nullptr}
 
TH1F * fHmoml {nullptr}
 
TH1F * fHlen {nullptr}
 
TH1F * fHlens {nullptr}
 
TH1F * fHHitChg {nullptr}
 
TH1F * fHHitWidth {nullptr}
 
TH1F * fHHitPdg {nullptr}
 
TH1F * fHHitTrkId {nullptr}
 
TH1F * fModeFrac {nullptr}
 
TH1F * fNTrkIdTrks {nullptr}
 
TH2F * fNTrkIdTrks2 {nullptr}
 
TH2F * fNTrkIdTrks3 {nullptr}
 

Detailed Description

Definition at line 256 of file TrackAna_module.cc.

Constructor & Destructor Documentation

trkf::TrackAna::RecoHists::RecoHists ( const std::string &  subdir)
explicit

Definition at line 439 of file TrackAna_module.cc.

References geo::GeometryCore::DetHalfHeight(), geo::GeometryCore::DetHalfWidth(), geo::GeometryCore::DetLength(), and dir.

440  {
441  // Get services.
442 
445 
446  // Make histogram directory.
447 
448  art::TFileDirectory topdir = tfs->mkdir("trkana", "TrackAna histograms");
449  art::TFileDirectory dir = topdir.mkdir(subdir);
450 
451  // Book histograms.
452 
453  fHstartx = dir.make<TH1F>(
454  "xstart", "X Start Position", 100, -2. * geom->DetHalfWidth(), 4. * geom->DetHalfWidth());
455  fHstarty = dir.make<TH1F>(
456  "ystart", "Y Start Position", 100, -geom->DetHalfHeight(), geom->DetHalfHeight());
457  fHstartz = dir.make<TH1F>("zstart", "Z Start Position", 100, 0., geom->DetLength());
458  fHstartd = dir.make<TH1F>(
459  "dstart", "Start Position Distance to Boundary", 100, -10., geom->DetHalfWidth());
460  fHendx = dir.make<TH1F>(
461  "xend", "X End Position", 100, -2. * geom->DetHalfWidth(), 4. * geom->DetHalfWidth());
462  fHendy =
463  dir.make<TH1F>("yend", "Y End Position", 100, -geom->DetHalfHeight(), geom->DetHalfHeight());
464  fHendz = dir.make<TH1F>("zend", "Z End Position", 100, 0., geom->DetLength());
465  fHendd =
466  dir.make<TH1F>("dend", "End Position Distance to Boundary", 100, -10., geom->DetHalfWidth());
467  fHtheta = dir.make<TH1F>("theta", "Theta", 100, 0., 3.142);
468  fHphi = dir.make<TH1F>("phi", "Phi", 100, -3.142, 3.142);
469  fHtheta_xz = dir.make<TH1F>("theta_xz", "Theta_xz", 100, -3.142, 3.142);
470  fHtheta_yz = dir.make<TH1F>("theta_yz", "Theta_yz", 100, -3.142, 3.142);
471  fHmom = dir.make<TH1F>("mom", "Momentum", 100, 0., 10.);
472  fHmoml = dir.make<TH1F>("moml", "Momentum", 100, 0., 1.);
473  fHlen = dir.make<TH1F>("len", "Track Length", 100, 0., 1.1 * geom->DetLength());
474  fHlens = dir.make<TH1F>("lens", "Track Length", 100, 0., 0.1 * geom->DetLength());
475  fHHitChg = dir.make<TH1F>("hchg", "Hit Charge (ADC counts)", 100, 0., 4000.);
476  fHHitWidth = dir.make<TH1F>("hwid", "Hit Width (ticks)", 40, 0., 20.);
477  fHHitPdg = dir.make<TH1F>("hpdg", "Hit Pdg code", 5001, -2500.5, +2500.5);
478  fHHitTrkId = dir.make<TH1F>("htrkid", "Hit Track ID", 401, -200.5, +200.5);
479  fModeFrac =
480  dir.make<TH1F>("hmodefrac",
481  "quasi-Purity: Fraction of component tracks with the Track mode value",
482  20,
483  0.01,
484  1.01);
485  fNTrkIdTrks =
486  dir.make<TH1F>("hntrkids",
487  "quasi-Efficiency: Number of stitched tracks in which TrkId appears",
488  20,
489  0.,
490  +10.0);
491  fNTrkIdTrks2 = dir.make<TH2F>("hntrkids2",
492  "Number of stitched tracks in which TrkId appears vs KE [GeV]",
493  20,
494  0.,
495  +10.0,
496  20,
497  0.0,
498  1.5);
499  fNTrkIdTrks3 = dir.make<TH2F>("hntrkids3",
500  "MC Track vs Reco Track, wtd by nhits on Collection Plane",
501  10,
502  -0.5,
503  9.5,
504  10,
505  -0.5,
506  9.5);
507  fNTrkIdTrks3->GetXaxis()->SetTitle("Sorted-by-Descending-CPlane-Hits outer Track Number");
508  fNTrkIdTrks3->GetYaxis()->SetTitle("Sorted-by-Descending-True-Length G4Track");
509  }
Length_t DetHalfWidth(TPCID const &tpcid=tpc_zero) const
Returns the half width of the active volume of the specified TPC.
Length_t DetLength(TPCID const &tpcid=tpc_zero) const
Returns the length of the active volume of the specified TPC.
TDirectory * dir
Definition: macro.C:5
Length_t DetHalfHeight(TPCID const &tpcid=tpc_zero) const
Returns the half height of the active volume of the specified TPC.

Member Data Documentation

TH1F* trkf::TrackAna::RecoHists::fHendd {nullptr}

Definition at line 268 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::analyze().

TH1F* trkf::TrackAna::RecoHists::fHendx {nullptr}

Definition at line 265 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::analyze().

TH1F* trkf::TrackAna::RecoHists::fHendy {nullptr}

Definition at line 266 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::analyze().

TH1F* trkf::TrackAna::RecoHists::fHendz {nullptr}

Definition at line 267 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::analyze().

TH1F* trkf::TrackAna::RecoHists::fHHitChg {nullptr}

Definition at line 280 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::anaStitch().

TH1F* trkf::TrackAna::RecoHists::fHHitPdg {nullptr}

Definition at line 282 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::anaStitch().

TH1F* trkf::TrackAna::RecoHists::fHHitTrkId {nullptr}

Definition at line 283 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::anaStitch().

TH1F* trkf::TrackAna::RecoHists::fHHitWidth {nullptr}

Definition at line 281 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::anaStitch().

TH1F* trkf::TrackAna::RecoHists::fHlen {nullptr}

Definition at line 275 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::analyze().

TH1F* trkf::TrackAna::RecoHists::fHlens {nullptr}

Definition at line 276 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::analyze().

TH1F* trkf::TrackAna::RecoHists::fHmom {nullptr}

Definition at line 273 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::analyze().

TH1F* trkf::TrackAna::RecoHists::fHmoml {nullptr}

Definition at line 274 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::analyze().

TH1F* trkf::TrackAna::RecoHists::fHphi {nullptr}

Definition at line 270 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::analyze().

TH1F* trkf::TrackAna::RecoHists::fHstartd {nullptr}

Definition at line 264 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::analyze().

TH1F* trkf::TrackAna::RecoHists::fHstartx {nullptr}

Definition at line 261 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::analyze().

TH1F* trkf::TrackAna::RecoHists::fHstarty {nullptr}

Definition at line 262 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::analyze().

TH1F* trkf::TrackAna::RecoHists::fHstartz {nullptr}

Definition at line 263 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::analyze().

TH1F* trkf::TrackAna::RecoHists::fHtheta {nullptr}

Definition at line 269 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::analyze().

TH1F* trkf::TrackAna::RecoHists::fHtheta_xz {nullptr}

Definition at line 271 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::analyze().

TH1F* trkf::TrackAna::RecoHists::fHtheta_yz {nullptr}

Definition at line 272 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::analyze().

TH1F* trkf::TrackAna::RecoHists::fModeFrac {nullptr}

Definition at line 284 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::anaStitch().

TH1F* trkf::TrackAna::RecoHists::fNTrkIdTrks {nullptr}

Definition at line 285 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::anaStitch().

TH2F* trkf::TrackAna::RecoHists::fNTrkIdTrks2 {nullptr}

Definition at line 286 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::anaStitch().

TH2F* trkf::TrackAna::RecoHists::fNTrkIdTrks3 {nullptr}

Definition at line 287 of file TrackAna_module.cc.

Referenced by trkf::TrackAna::anaStitch().


The documentation for this struct was generated from the following file: