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

Constructor & Destructor Documentation

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

Definition at line 373 of file SeedAna_module.cc.

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

Definition at line 244 of file SeedAna_module.cc.

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

Definition at line 246 of file SeedAna_module.cc.

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

Definition at line 245 of file SeedAna_module.cc.

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

Definition at line 247 of file SeedAna_module.cc.

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

Definition at line 248 of file SeedAna_module.cc.

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

Definition at line 241 of file SeedAna_module.cc.

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

Definition at line 242 of file SeedAna_module.cc.

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

Definition at line 243 of file SeedAna_module.cc.


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