Public Member Functions | Public Attributes | List of all members
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 266 of file TrackAna_module.cc.

Constructor & Destructor Documentation

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

Definition at line 449 of file TrackAna_module.cc.

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

Member Data Documentation

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

Definition at line 278 of file TrackAna_module.cc.

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

Definition at line 275 of file TrackAna_module.cc.

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

Definition at line 276 of file TrackAna_module.cc.

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

Definition at line 277 of file TrackAna_module.cc.

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

Definition at line 290 of file TrackAna_module.cc.

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

Definition at line 292 of file TrackAna_module.cc.

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

Definition at line 293 of file TrackAna_module.cc.

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

Definition at line 291 of file TrackAna_module.cc.

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

Definition at line 285 of file TrackAna_module.cc.

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

Definition at line 286 of file TrackAna_module.cc.

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

Definition at line 283 of file TrackAna_module.cc.

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

Definition at line 284 of file TrackAna_module.cc.

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

Definition at line 280 of file TrackAna_module.cc.

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

Definition at line 274 of file TrackAna_module.cc.

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

Definition at line 271 of file TrackAna_module.cc.

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

Definition at line 272 of file TrackAna_module.cc.

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

Definition at line 273 of file TrackAna_module.cc.

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

Definition at line 279 of file TrackAna_module.cc.

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

Definition at line 281 of file TrackAna_module.cc.

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

Definition at line 282 of file TrackAna_module.cc.

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

Definition at line 294 of file TrackAna_module.cc.

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

Definition at line 295 of file TrackAna_module.cc.

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

Definition at line 296 of file TrackAna_module.cc.

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

Definition at line 297 of file TrackAna_module.cc.


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