Public Member Functions | Public Attributes | List of all members
trkf::TrackAnaCT::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 * fHlen
 
TH1F * fHHitChg
 
TH1F * fHHitWidth
 
TH1F * fHHitPdg
 
TH1F * fHHitTrkId
 
TH1F * fModeFrac
 
TH1F * fNTrkIdTrks
 
TH2F * fNTrkIdTrks2
 
TH2F * fNTrkIdTrks3
 

Detailed Description

Definition at line 255 of file TrackAnaCT_module.cc.

Constructor & Destructor Documentation

trkf::TrackAnaCT::RecoHists::RecoHists ( )

Definition at line 427 of file TrackAnaCT_module.cc.

427  :
428  //
429  // Purpose: Default constructor.
430  //
431  fHstartx(0),
432  fHstarty(0),
433  fHstartz(0),
434  fHstartd(0),
435  fHendx(0),
436  fHendy(0),
437  fHendz(0),
438  fHendd(0),
439  fHtheta(0),
440  fHphi(0),
441  fHtheta_xz(0),
442  fHtheta_yz(0),
443  fHmom(0),
444  fHlen(0)
445  ,fHHitChg(0)
446  ,fHHitWidth(0)
447  ,fHHitPdg(0)
448  ,fHHitTrkId(0)
449  ,fModeFrac(0)
450  ,fNTrkIdTrks(0)
451  ,fNTrkIdTrks2(0)
452  ,fNTrkIdTrks3(0)
453  {}
trkf::TrackAnaCT::RecoHists::RecoHists ( const std::string subdir)

Definition at line 455 of file TrackAnaCT_module.cc.

459  {
460  // Make sure all histogram pointers are initially zero.
461 
462  *this = RecoHists();
463 
464  // Get services.
465 
468 
469  // Make histogram directory.
470 
471  art::TFileDirectory topdir = tfs->mkdir("trkana", "TrackAnaCT histograms");
472  art::TFileDirectory dir = topdir.mkdir(subdir);
473 
474  // Book histograms.
475 
476  fHstartx = dir.make<TH1F>("xstart", "X Start Position",
477  100, -2.*geom->Cryostat(0).HalfWidth(), 4.*geom->Cryostat(0).HalfWidth());
478  fHstarty = dir.make<TH1F>("ystart", "Y Start Position",
479  100, -geom->Cryostat(0).HalfHeight(), geom->Cryostat(0).HalfHeight());
480  fHstartz = dir.make<TH1F>("zstart", "Z Start Position",
481  100, 0., geom->Cryostat(0).Length());
482  fHstartd = dir.make<TH1F>("dstart", "Start Position Distance to Boundary",
483  100, -10., geom->Cryostat(0).HalfWidth());
484  fHendx = dir.make<TH1F>("xend", "X End Position",
485  100, -2.*geom->Cryostat(0).HalfWidth(), 4.*geom->Cryostat(0).HalfWidth());
486  fHendy = dir.make<TH1F>("yend", "Y End Position",
487  100, -geom->Cryostat(0).HalfHeight(), geom->Cryostat(0).HalfHeight());
488  fHendz = dir.make<TH1F>("zend", "Z End Position",
489  100, 0., geom->Cryostat(0).Length());
490  fHendd = dir.make<TH1F>("dend", "End Position Distance to Boundary",
491  100, -10., geom->Cryostat(0).HalfWidth());
492  fHtheta = dir.make<TH1F>("theta", "Theta", 100, 0., 3.142);
493  fHphi = dir.make<TH1F>("phi", "Phi", 100, -3.142, 3.142);
494  fHtheta_xz = dir.make<TH1F>("theta_xz", "Theta_xz", 100, -3.142, 3.142);
495  fHtheta_yz = dir.make<TH1F>("theta_yz", "Theta_yz", 100, -3.142, 3.142);
496  fHmom = dir.make<TH1F>("mom", "Momentum", 100, 0., 10.);
497  fHlen = dir.make<TH1F>("len", "Track Length", 100, 0., 3.0 * geom->Cryostat(0).Length());
498  fHHitChg = dir.make<TH1F>("hchg", "Hit Charge (ADC counts)", 100, 0., 4000.);
499  fHHitWidth = dir.make<TH1F>("hwid", "Hit Width (ticks)", 40, 0., 20.);
500  fHHitPdg = dir.make<TH1F>("hpdg", "Hit Pdg code",5001, -2500.5, +2500.5);
501  fHHitTrkId = dir.make<TH1F>("htrkid", "Hit Track ID", 401, -200.5, +200.5);
502  fModeFrac = dir.make<TH1F>("hmodefrac", "quasi-Purity: Fraction of component tracks with the Track mode value", 20, 0.01, 1.01);
503  fNTrkIdTrks = dir.make<TH1F>("hntrkids", "quasi-Efficiency: Number of stitched tracks in which TrkId appears", 20, 0., +10.0);
504  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);
505  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);
506  fNTrkIdTrks3->GetXaxis()->SetTitle("Sorted-by-Descending-CPlane-Hits outer Track Number");
507  fNTrkIdTrks3->GetYaxis()->SetTitle("Sorted-by-Descending-True-Length G4Track");
508 
509  }
string dir
double HalfWidth() const
Half width of the cryostat [cm].
CryostatGeo const & Cryostat(geo::CryostatID const &cryoid) const
Returns the specified cryostat.
double HalfHeight() const
Half height of the cryostat [cm].
double Length() const
Length of the cryostat [cm].
Definition: CryostatGeo.h:107

Member Data Documentation

TH1F* trkf::TrackAnaCT::RecoHists::fHendd

Definition at line 271 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::RecoHists::fHendx

Definition at line 268 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::RecoHists::fHendy

Definition at line 269 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::RecoHists::fHendz

Definition at line 270 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::RecoHists::fHHitChg

Definition at line 281 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::RecoHists::fHHitPdg

Definition at line 283 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::RecoHists::fHHitTrkId

Definition at line 284 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::RecoHists::fHHitWidth

Definition at line 282 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::RecoHists::fHlen

Definition at line 277 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::RecoHists::fHmom

Definition at line 276 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::RecoHists::fHphi

Definition at line 273 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::RecoHists::fHstartd

Definition at line 267 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::RecoHists::fHstartx

Definition at line 264 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::RecoHists::fHstarty

Definition at line 265 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::RecoHists::fHstartz

Definition at line 266 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::RecoHists::fHtheta

Definition at line 272 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::RecoHists::fHtheta_xz

Definition at line 274 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::RecoHists::fHtheta_yz

Definition at line 275 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::RecoHists::fModeFrac

Definition at line 285 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::RecoHists::fNTrkIdTrks

Definition at line 286 of file TrackAnaCT_module.cc.

TH2F* trkf::TrackAnaCT::RecoHists::fNTrkIdTrks2

Definition at line 287 of file TrackAnaCT_module.cc.

TH2F* trkf::TrackAnaCT::RecoHists::fNTrkIdTrks3

Definition at line 288 of file TrackAnaCT_module.cc.


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