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

Public Member Functions

 RecoHists (const std::string &subdir)
 

Public Attributes

TH1F * fHx {nullptr}
 
TH1F * fHy {nullptr}
 
TH1F * fHz {nullptr}
 
TH1F * fHdist {nullptr}
 
TH1F * fHtheta {nullptr}
 
TH1F * fHphi {nullptr}
 
TH1F * fHtheta_xz {nullptr}
 
TH1F * fHtheta_yz {nullptr}
 

Detailed Description

Definition at line 232 of file SeedAna_module.cc.

Constructor & Destructor Documentation

trkf::SeedAna::RecoHists::RecoHists ( const std::string &  subdir)

Definition at line 369 of file SeedAna_module.cc.

References geo::GeometryCore::DetHalfHeight(), geo::GeometryCore::DetHalfWidth(), geo::GeometryCore::DetLength(), dir, fHdist, fHphi, fHtheta, fHtheta_xz, fHtheta_yz, fHx, fHy, and fHz.

373  {
374  // Get services.
375 
378 
379  // Make histogram directory.
380 
381  art::TFileDirectory topdir = tfs->mkdir("seedana", "SeedAna histograms");
382  art::TFileDirectory dir = topdir.mkdir(subdir);
383 
384  // Book histograms.
385 
386  fHx =
387  dir.make<TH1F>("x", "X Position", 100, -2. * geom->DetHalfWidth(), 4. * geom->DetHalfWidth());
388  fHy = dir.make<TH1F>("y", "Y Position", 100, -geom->DetHalfHeight(), geom->DetHalfHeight());
389  fHz = dir.make<TH1F>("z", "Z Position", 100, 0., geom->DetLength());
390  fHdist =
391  dir.make<TH1F>("dist", "Position Distance to Boundary", 100, -10., geom->DetHalfWidth());
392  fHtheta = dir.make<TH1F>("theta", "Theta", 100, 0., 3.142);
393  fHphi = dir.make<TH1F>("phi", "Phi", 100, -3.142, 3.142);
394  fHtheta_xz = dir.make<TH1F>("theta_xz", "Theta_xz", 100, -3.142, 3.142);
395  fHtheta_yz = dir.make<TH1F>("theta_yz", "Theta_yz", 100, -3.142, 3.142);
396  }
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::SeedAna::RecoHists::fHdist {nullptr}

Definition at line 240 of file SeedAna_module.cc.

Referenced by trkf::SeedAna::analyze(), and RecoHists().

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

Definition at line 242 of file SeedAna_module.cc.

Referenced by trkf::SeedAna::analyze(), and RecoHists().

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

Definition at line 241 of file SeedAna_module.cc.

Referenced by trkf::SeedAna::analyze(), and RecoHists().

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

Definition at line 243 of file SeedAna_module.cc.

Referenced by trkf::SeedAna::analyze(), and RecoHists().

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

Definition at line 244 of file SeedAna_module.cc.

Referenced by trkf::SeedAna::analyze(), and RecoHists().

TH1F* trkf::SeedAna::RecoHists::fHx {nullptr}

Definition at line 237 of file SeedAna_module.cc.

Referenced by trkf::SeedAna::analyze(), and RecoHists().

TH1F* trkf::SeedAna::RecoHists::fHy {nullptr}

Definition at line 238 of file SeedAna_module.cc.

Referenced by trkf::SeedAna::analyze(), and RecoHists().

TH1F* trkf::SeedAna::RecoHists::fHz {nullptr}

Definition at line 239 of file SeedAna_module.cc.

Referenced by trkf::SeedAna::analyze(), and RecoHists().


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