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

Public Member Functions

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

Public Attributes

TH1F * fHx
 
TH1F * fHy
 
TH1F * fHz
 
TH1F * fHdist
 
TH1F * fHtheta
 
TH1F * fHphi
 
TH1F * fHtheta_xz
 
TH1F * fHtheta_yz
 

Detailed Description

Definition at line 241 of file SeedAna_module.cc.

Constructor & Destructor Documentation

trkf::SeedAna::RecoHists::RecoHists ( )

Definition at line 392 of file SeedAna_module.cc.

Referenced by RecoHists().

392  :
393  //
394  // Purpose: Default constructor.
395  //
396  fHx(0),
397  fHy(0),
398  fHz(0),
399  fHdist(0),
400  fHtheta(0),
401  fHphi(0),
402  fHtheta_xz(0),
403  fHtheta_yz(0)
404  {}
trkf::SeedAna::RecoHists::RecoHists ( const std::string &  subdir)

Definition at line 406 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, fHz, art::TFileDirectory::make(), art::TFileDirectory::mkdir(), and RecoHists().

410  {
411  // Make sure all histogram pointers are initially zero.
412 
413  *this = RecoHists();
414 
415  // Get services.
416 
419 
420  // Make histogram directory.
421 
422  art::TFileDirectory topdir = tfs->mkdir("seedana", "SeedAna histograms");
423  art::TFileDirectory dir = topdir.mkdir(subdir);
424 
425  // Book histograms.
426 
427  fHx = dir.make<TH1F>("x", "X Position", 100, -2.*geom->DetHalfWidth(), 4.*geom->DetHalfWidth());
428  fHy = dir.make<TH1F>("y", "Y Position", 100, -geom->DetHalfHeight(), geom->DetHalfHeight());
429  fHz = dir.make<TH1F>("z", "Z Position", 100, 0., geom->DetLength());
430  fHdist = dir.make<TH1F>("dist", "Position Distance to Boundary",
431  100, -10., geom->DetHalfWidth());
432  fHtheta = dir.make<TH1F>("theta", "Theta", 100, 0., 3.142);
433  fHphi = dir.make<TH1F>("phi", "Phi", 100, -3.142, 3.142);
434  fHtheta_xz = dir.make<TH1F>("theta_xz", "Theta_xz", 100, -3.142, 3.142);
435  fHtheta_yz = dir.make<TH1F>("theta_yz", "Theta_yz", 100, -3.142, 3.142);
436  }
geo::Length_t DetHalfWidth(geo::TPCID const &tpcid) const
Returns the half width of the active volume of the specified TPC.
TFileDirectory mkdir(std::string const &dir, std::string const &descr="")
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.
T * make(ARGS...args) const
TDirectory * dir
Definition: macro.C:5

Member Data Documentation

TH1F* trkf::SeedAna::RecoHists::fHdist

Definition at line 253 of file SeedAna_module.cc.

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

TH1F* trkf::SeedAna::RecoHists::fHphi

Definition at line 255 of file SeedAna_module.cc.

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

TH1F* trkf::SeedAna::RecoHists::fHtheta

Definition at line 254 of file SeedAna_module.cc.

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

TH1F* trkf::SeedAna::RecoHists::fHtheta_xz

Definition at line 256 of file SeedAna_module.cc.

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

TH1F* trkf::SeedAna::RecoHists::fHtheta_yz

Definition at line 257 of file SeedAna_module.cc.

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

TH1F* trkf::SeedAna::RecoHists::fHx

Definition at line 250 of file SeedAna_module.cc.

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

TH1F* trkf::SeedAna::RecoHists::fHy

Definition at line 251 of file SeedAna_module.cc.

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

TH1F* trkf::SeedAna::RecoHists::fHz

Definition at line 252 of file SeedAna_module.cc.

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


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