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

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 289 of file TrackAna_module.cc.

Constructor & Destructor Documentation

trkf::TrackAna::RecoHists::RecoHists ( )

Definition at line 483 of file TrackAna_module.cc.

483  :
484  //
485  // Purpose: Default constructor.
486  //
487  fHstartx(0),
488  fHstarty(0),
489  fHstartz(0),
490  fHstartd(0),
491  fHendx(0),
492  fHendy(0),
493  fHendz(0),
494  fHendd(0),
495  fHtheta(0),
496  fHphi(0),
497  fHtheta_xz(0),
498  fHtheta_yz(0),
499  fHmom(0),
500  fHmoml(0),
501  fHlen(0),
502  fHlens(0)
503  ,fHHitChg(0)
504  ,fHHitWidth(0)
505  ,fHHitPdg(0)
506  ,fHHitTrkId(0)
507  ,fModeFrac(0)
508  ,fNTrkIdTrks(0)
509  ,fNTrkIdTrks2(0)
510  ,fNTrkIdTrks3(0)
511  {}
trkf::TrackAna::RecoHists::RecoHists ( const std::string &  subdir)

Definition at line 513 of file TrackAna_module.cc.

References geo::GeometryCore::DetHalfHeight(), geo::GeometryCore::DetHalfWidth(), geo::GeometryCore::DetLength(), dir, art::TFileDirectory::make(), and art::TFileDirectory::mkdir().

517  {
518  // Make sure all histogram pointers are initially zero.
519 
520  *this = RecoHists();
521 
522  // Get services.
523 
526 
527  // Make histogram directory.
528 
529  art::TFileDirectory topdir = tfs->mkdir("trkana", "TrackAna histograms");
530  art::TFileDirectory dir = topdir.mkdir(subdir);
531 
532  // Book histograms.
533 
534  fHstartx = dir.make<TH1F>("xstart", "X Start Position",
535  100, -2.*geom->DetHalfWidth(), 4.*geom->DetHalfWidth());
536  fHstarty = dir.make<TH1F>("ystart", "Y Start Position",
537  100, -geom->DetHalfHeight(), geom->DetHalfHeight());
538  fHstartz = dir.make<TH1F>("zstart", "Z Start Position",
539  100, 0., geom->DetLength());
540  fHstartd = dir.make<TH1F>("dstart", "Start Position Distance to Boundary",
541  100, -10., geom->DetHalfWidth());
542  fHendx = dir.make<TH1F>("xend", "X End Position",
543  100, -2.*geom->DetHalfWidth(), 4.*geom->DetHalfWidth());
544  fHendy = dir.make<TH1F>("yend", "Y End Position",
545  100, -geom->DetHalfHeight(), geom->DetHalfHeight());
546  fHendz = dir.make<TH1F>("zend", "Z End Position",
547  100, 0., geom->DetLength());
548  fHendd = dir.make<TH1F>("dend", "End Position Distance to Boundary",
549  100, -10., geom->DetHalfWidth());
550  fHtheta = dir.make<TH1F>("theta", "Theta", 100, 0., 3.142);
551  fHphi = dir.make<TH1F>("phi", "Phi", 100, -3.142, 3.142);
552  fHtheta_xz = dir.make<TH1F>("theta_xz", "Theta_xz", 100, -3.142, 3.142);
553  fHtheta_yz = dir.make<TH1F>("theta_yz", "Theta_yz", 100, -3.142, 3.142);
554  fHmom = dir.make<TH1F>("mom", "Momentum", 100, 0., 10.);
555  fHmoml = dir.make<TH1F>("moml", "Momentum", 100, 0., 1.);
556  fHlen = dir.make<TH1F>("len", "Track Length", 100, 0., 1.1 * geom->DetLength());
557  fHlens = dir.make<TH1F>("lens", "Track Length", 100, 0., 0.1 * geom->DetLength());
558  fHHitChg = dir.make<TH1F>("hchg", "Hit Charge (ADC counts)", 100, 0., 4000.);
559  fHHitWidth = dir.make<TH1F>("hwid", "Hit Width (ticks)", 40, 0., 20.);
560  fHHitPdg = dir.make<TH1F>("hpdg", "Hit Pdg code",5001, -2500.5, +2500.5);
561  fHHitTrkId = dir.make<TH1F>("htrkid", "Hit Track ID", 401, -200.5, +200.5);
562  fModeFrac = dir.make<TH1F>("hmodefrac", "quasi-Purity: Fraction of component tracks with the Track mode value", 20, 0.01, 1.01);
563  fNTrkIdTrks = dir.make<TH1F>("hntrkids", "quasi-Efficiency: Number of stitched tracks in which TrkId appears", 20, 0., +10.0);
564  fNTrkIdTrks2 = dir.make<TH2F>("hntrkids2", "Number of stitched tracks in which TrkId appears vs KE [GeV]", 20, 0., +10.0, 20, 0.0, 1.5);
565  fNTrkIdTrks3 = dir.make<TH2F>("hntrkids3", "MC Track vs Reco Track, wtd by nhits on Collection Plane", 10, -0.5, 9.5, 10, -0.5, 9.5);
566  fNTrkIdTrks3->GetXaxis()->SetTitle("Sorted-by-Descending-CPlane-Hits outer Track Number");
567  fNTrkIdTrks3->GetYaxis()->SetTitle("Sorted-by-Descending-True-Length G4Track");
568 
569  }
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::TrackAna::RecoHists::fHendd

Definition at line 305 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fHendx

Definition at line 302 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fHendy

Definition at line 303 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fHendz

Definition at line 304 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fHHitChg

Definition at line 317 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fHHitPdg

Definition at line 319 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fHHitTrkId

Definition at line 320 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fHHitWidth

Definition at line 318 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fHlen

Definition at line 312 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fHlens

Definition at line 313 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fHmom

Definition at line 310 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fHmoml

Definition at line 311 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fHphi

Definition at line 307 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fHstartd

Definition at line 301 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fHstartx

Definition at line 298 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fHstarty

Definition at line 299 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fHstartz

Definition at line 300 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fHtheta

Definition at line 306 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fHtheta_xz

Definition at line 308 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fHtheta_yz

Definition at line 309 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fModeFrac

Definition at line 321 of file TrackAna_module.cc.

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

TH1F* trkf::TrackAna::RecoHists::fNTrkIdTrks

Definition at line 322 of file TrackAna_module.cc.

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

TH2F* trkf::TrackAna::RecoHists::fNTrkIdTrks2

Definition at line 323 of file TrackAna_module.cc.

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

TH2F* trkf::TrackAna::RecoHists::fNTrkIdTrks3

Definition at line 324 of file TrackAna_module.cc.

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


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