All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
trkf::TrackAna::MCHists Struct Reference

Public Member Functions

 MCHists (const std::string &subdir)
 

Public Attributes

TH2F * fHduvcosth {nullptr}
 
TH1F * fHcosth {nullptr}
 
TH1F * fHmcu {nullptr}
 
TH1F * fHmcv {nullptr}
 
TH1F * fHmcw {nullptr}
 
TH1F * fHupull {nullptr}
 
TH1F * fHvpull {nullptr}
 
TH1F * fHmcdudw {nullptr}
 
TH1F * fHmcdvdw {nullptr}
 
TH1F * fHdudwpull {nullptr}
 
TH1F * fHdvdwpull {nullptr}
 
TH1F * fHHitEff {nullptr}
 
TH1F * fHHitPurity {nullptr}
 
TH1F * fHstartdx {nullptr}
 
TH1F * fHstartdy {nullptr}
 
TH1F * fHstartdz {nullptr}
 
TH1F * fHenddx {nullptr}
 
TH1F * fHenddy {nullptr}
 
TH1F * fHenddz {nullptr}
 
TH2F * fHlvsl {nullptr}
 
TH1F * fHdl {nullptr}
 
TH2F * fHpvsp {nullptr}
 
TH2F * fHpvspc {nullptr}
 
TH1F * fHdp {nullptr}
 
TH1F * fHdpc {nullptr}
 
TH1F * fHppull {nullptr}
 
TH1F * fHppullc {nullptr}
 
TH1F * fHmcstartx {nullptr}
 
TH1F * fHmcstarty {nullptr}
 
TH1F * fHmcstartz {nullptr}
 
TH1F * fHmcendx {nullptr}
 
TH1F * fHmcendy {nullptr}
 
TH1F * fHmcendz {nullptr}
 
TH1F * fHmctheta {nullptr}
 
TH1F * fHmcphi {nullptr}
 
TH1F * fHmctheta_xz {nullptr}
 
TH1F * fHmctheta_yz {nullptr}
 
TH1F * fHmcmom {nullptr}
 
TH1F * fHmcmoml {nullptr}
 
TH1F * fHmcke {nullptr}
 
TH1F * fHmckel {nullptr}
 
TH1F * fHmclen {nullptr}
 
TH1F * fHmclens {nullptr}
 
TH1F * fHgstartx {nullptr}
 
TH1F * fHgstarty {nullptr}
 
TH1F * fHgstartz {nullptr}
 
TH1F * fHgendx {nullptr}
 
TH1F * fHgendy {nullptr}
 
TH1F * fHgendz {nullptr}
 
TH1F * fHgtheta {nullptr}
 
TH1F * fHgphi {nullptr}
 
TH1F * fHgtheta_xz {nullptr}
 
TH1F * fHgtheta_yz {nullptr}
 
TH1F * fHgmom {nullptr}
 
TH1F * fHgmoml {nullptr}
 
TH1F * fHgke {nullptr}
 
TH1F * fHgkel {nullptr}
 
TH1F * fHglen {nullptr}
 
TH1F * fHglens {nullptr}
 
TH1F * fHestartx {nullptr}
 
TH1F * fHestarty {nullptr}
 
TH1F * fHestartz {nullptr}
 
TH1F * fHeendx {nullptr}
 
TH1F * fHeendy {nullptr}
 
TH1F * fHeendz {nullptr}
 
TH1F * fHetheta {nullptr}
 
TH1F * fHephi {nullptr}
 
TH1F * fHetheta_xz {nullptr}
 
TH1F * fHetheta_yz {nullptr}
 
TH1F * fHemom {nullptr}
 
TH1F * fHemoml {nullptr}
 
TH1F * fHeke {nullptr}
 
TH1F * fHekel {nullptr}
 
TH1F * fHelen {nullptr}
 
TH1F * fHelens {nullptr}
 

Detailed Description

Definition at line 302 of file TrackAna_module.cc.

Constructor & Destructor Documentation

trkf::TrackAna::MCHists::MCHists ( const std::string &  subdir)
explicit

Definition at line 523 of file TrackAna_module.cc.

524  {
525  // Get services.
526 
527  art::ServiceHandle<geo::Geometry const> geom;
528  art::ServiceHandle<art::TFileService> tfs;
529 
530  // Make histogram directory.
531 
532  art::TFileDirectory topdir = tfs->mkdir("trkana", "TrackAna histograms");
533  art::TFileDirectory dir = topdir.mkdir(subdir);
534 
535  // Book histograms.
536 
537  fHduvcosth =
538  dir.make<TH2F>("duvcosth", "Delta(uv) vs. Colinearity", 100, 0.95, 1., 100, 0., 1.);
539  fHcosth = dir.make<TH1F>("colin", "Colinearity", 100, 0.95, 1.);
540  fHmcu = dir.make<TH1F>("mcu", "MC Truth U", 100, -5., 5.);
541  fHmcv = dir.make<TH1F>("mcv", "MC Truth V", 100, -5., 5.);
542  fHmcw = dir.make<TH1F>("mcw", "MC Truth W", 100, -20., 20.);
543  fHupull = dir.make<TH1F>("dupull", "U Pull", 100, -20., 20.);
544  fHvpull = dir.make<TH1F>("dvpull", "V Pull", 100, -20., 20.);
545  fHmcdudw = dir.make<TH1F>("mcdudw", "MC Truth U Slope", 100, -0.2, 0.2);
546  fHmcdvdw = dir.make<TH1F>("mcdvdw", "MV Truth V Slope", 100, -0.2, 0.2);
547  fHdudwpull = dir.make<TH1F>("dudwpull", "U Slope Pull", 100, -10., 10.);
548  fHdvdwpull = dir.make<TH1F>("dvdwpull", "V Slope Pull", 100, -10., 10.);
549  fHHitEff = dir.make<TH1F>("hiteff", "MC Hit Efficiency", 100, 0., 1.0001);
550  fHHitPurity = dir.make<TH1F>("hitpurity", "MC Hit Purity", 100, 0., 1.0001);
551  fHstartdx = dir.make<TH1F>("startdx", "Start Delta x", 100, -10., 10.);
552  fHstartdy = dir.make<TH1F>("startdy", "Start Delta y", 100, -10., 10.);
553  fHstartdz = dir.make<TH1F>("startdz", "Start Delta z", 100, -10., 10.);
554  fHenddx = dir.make<TH1F>("enddx", "End Delta x", 100, -10., 10.);
555  fHenddy = dir.make<TH1F>("enddy", "End Delta y", 100, -10., 10.);
556  fHenddz = dir.make<TH1F>("enddz", "End Delta z", 100, -10., 10.);
557  fHlvsl = dir.make<TH2F>("lvsl",
558  "Reco Length vs. MC Truth Length",
559  100,
560  0.,
561  1.1 * geom->DetLength(),
562  100,
563  0.,
564  1.1 * geom->DetLength());
565  fHdl = dir.make<TH1F>("dl", "Track Length Minus MC Particle Length", 100, -50., 50.);
566  fHpvsp =
567  dir.make<TH2F>("pvsp", "Reco Momentum vs. MC Truth Momentum", 100, 0., 5., 100, 0., 5.);
568  fHpvspc = dir.make<TH2F>(
569  "pvspc", "Reco Momentum vs. MC Truth Momentum (Contained Tracks)", 100, 0., 5., 100, 0., 5.);
570  fHdp = dir.make<TH1F>("dp", "Reco-MC Momentum Difference", 100, -5., 5.);
571  fHdpc = dir.make<TH1F>("dpc", "Reco-MC Momentum Difference (Contained Tracks)", 100, -5., 5.);
572  fHppull = dir.make<TH1F>("ppull", "Momentum Pull", 100, -10., 10.);
573  fHppullc = dir.make<TH1F>("ppullc", "Momentum Pull (Contained Tracks)", 100, -10., 10.);
574 
575  fHmcstartx = dir.make<TH1F>(
576  "mcxstart", "MC X Start Position", 10, -2. * geom->DetHalfWidth(), 4. * geom->DetHalfWidth());
577  fHmcstarty = dir.make<TH1F>(
578  "mcystart", "MC Y Start Position", 10, -geom->DetHalfHeight(), geom->DetHalfHeight());
579  fHmcstartz = dir.make<TH1F>("mczstart", "MC Z Start Position", 10, 0., geom->DetLength());
580  fHmcendx = dir.make<TH1F>(
581  "mcxend", "MC X End Position", 10, -2. * geom->DetHalfWidth(), 4. * geom->DetHalfWidth());
582  fHmcendy = dir.make<TH1F>(
583  "mcyend", "MC Y End Position", 10, -geom->DetHalfHeight(), geom->DetHalfHeight());
584  fHmcendz = dir.make<TH1F>("mczend", "MC Z End Position", 10, 0., geom->DetLength());
585  fHmctheta = dir.make<TH1F>("mctheta", "MC Theta", 20, 0., 3.142);
586  fHmcphi = dir.make<TH1F>("mcphi", "MC Phi", 10, -3.142, 3.142);
587  fHmctheta_xz = dir.make<TH1F>("mctheta_xz", "MC Theta_xz", 40, -3.142, 3.142);
588  fHmctheta_yz = dir.make<TH1F>("mctheta_yz", "MC Theta_yz", 40, -3.142, 3.142);
589  fHmcmom = dir.make<TH1F>("mcmom", "MC Momentum", 10, 0., 10.);
590  fHmcmoml = dir.make<TH1F>("mcmoml", "MC Momentum", 10, 0., 1.);
591  fHmcke = dir.make<TH1F>("mcke", "MC Kinetic Energy", 10, 0., 10.);
592  fHmckel = dir.make<TH1F>("mckel", "MC Kinetic Energy", 10, 0., 1.);
593  fHmclen = dir.make<TH1F>("mclen", "MC Particle Length", 10, 0., 1.1 * geom->DetLength());
594  fHmclens = dir.make<TH1F>("mclens", "MC Particle Length", 10, 0., 0.1 * geom->DetLength());
595 
596  fHgstartx = dir.make<TH1F>("gxstart",
597  "Good X Start Position",
598  10,
599  -2. * geom->DetHalfWidth(),
600  4. * geom->DetHalfWidth());
601  fHgstarty = dir.make<TH1F>(
602  "gystart", "Good Y Start Position", 10, -geom->DetHalfHeight(), geom->DetHalfHeight());
603  fHgstartz = dir.make<TH1F>("gzstart", "Good Z Start Position", 10, 0., geom->DetLength());
604  fHgendx = dir.make<TH1F>(
605  "gxend", "Good X End Position", 10, -2. * geom->DetHalfWidth(), 4. * geom->DetHalfWidth());
606  fHgendy = dir.make<TH1F>(
607  "gyend", "Good Y End Position", 10, -geom->DetHalfHeight(), geom->DetHalfHeight());
608  fHgendz = dir.make<TH1F>("gzend", "Good Z End Position", 10, 0., geom->DetLength());
609  fHgtheta = dir.make<TH1F>("gtheta", "Good Theta", 20, 0., 3.142);
610  fHgphi = dir.make<TH1F>("gphi", "Good Phi", 10, -3.142, 3.142);
611  fHgtheta_xz = dir.make<TH1F>("gtheta_xz", "Good Theta_xz", 40, -3.142, 3.142);
612  fHgtheta_yz = dir.make<TH1F>("gtheta_yz", "Good Theta_yz", 40, -3.142, 3.142);
613  fHgmom = dir.make<TH1F>("gmom", "Good Momentum", 10, 0., 10.);
614  fHgmoml = dir.make<TH1F>("gmoml", "Good Momentum", 10, 0., 1.);
615  fHgke = dir.make<TH1F>("gke", "Good Kinetic Energy", 10, 0., 10.);
616  fHgkel = dir.make<TH1F>("gkel", "Good Kinetic Energy", 10, 0., 1.);
617  fHglen = dir.make<TH1F>("glen", "Good Particle Length", 10, 0., 1.1 * geom->DetLength());
618  fHglens = dir.make<TH1F>("glens", "Good Particle Length", 10, 0., 0.1 * geom->DetLength());
619 
620  fHestartx = dir.make<TH1F>("exstart",
621  "Efficiency vs. X Start Position",
622  10,
623  -2. * geom->DetHalfWidth(),
624  4. * geom->DetHalfWidth());
625  fHestarty = dir.make<TH1F>("eystart",
626  "Efficiency vs. Y Start Position",
627  10,
628  -geom->DetHalfHeight(),
629  geom->DetHalfHeight());
630  fHestartz =
631  dir.make<TH1F>("ezstart", "Efficiency vs. Z Start Position", 10, 0., geom->DetLength());
632  fHeendx = dir.make<TH1F>("exend",
633  "Efficiency vs. X End Position",
634  10,
635  -2. * geom->DetHalfWidth(),
636  4. * geom->DetHalfWidth());
637  fHeendy = dir.make<TH1F>(
638  "eyend", "Efficiency vs. Y End Position", 10, -geom->DetHalfHeight(), geom->DetHalfHeight());
639  fHeendz = dir.make<TH1F>("ezend", "Efficiency vs. Z End Position", 10, 0., geom->DetLength());
640  fHetheta = dir.make<TH1F>("etheta", "Efficiency vs. Theta", 20, 0., 3.142);
641  fHephi = dir.make<TH1F>("ephi", "Efficiency vs. Phi", 10, -3.142, 3.142);
642  fHetheta_xz = dir.make<TH1F>("etheta_xz", "Efficiency vs. Theta_xz", 40, -3.142, 3.142);
643  fHetheta_yz = dir.make<TH1F>("etheta_yz", "Efficiency vs. Theta_yz", 40, -3.142, 3.142);
644  fHemom = dir.make<TH1F>("emom", "Efficiency vs. Momentum", 10, 0., 10.);
645  fHemoml = dir.make<TH1F>("emoml", "Efficiency vs. Momentum", 10, 0., 1.);
646  fHeke = dir.make<TH1F>("eke", "Efficiency vs. Kinetic Energy", 10, 0., 10.);
647  fHekel = dir.make<TH1F>("ekel", "Efficiency vs. Kinetic Energy", 10, 0., 1.);
648  fHelen =
649  dir.make<TH1F>("elen", "Efficiency vs. Particle Length", 10, 0., 1.1 * geom->DetLength());
650  fHelens =
651  dir.make<TH1F>("elens", "Efficiency vs. Particle Length", 10, 0., 0.1 * geom->DetLength());
652  }
tuple dir
Definition: dropbox.py:28
art::ServiceHandle< art::TFileService > tfs

Member Data Documentation

TH1F* trkf::TrackAna::MCHists::fHcosth {nullptr}

Definition at line 308 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHdl {nullptr}

Definition at line 330 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHdp {nullptr}

Definition at line 333 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHdpc {nullptr}

Definition at line 334 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHdudwpull {nullptr}

Definition at line 316 of file TrackAna_module.cc.

TH2F* trkf::TrackAna::MCHists::fHduvcosth {nullptr}

Definition at line 307 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHdvdwpull {nullptr}

Definition at line 317 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHeendx {nullptr}

Definition at line 381 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHeendy {nullptr}

Definition at line 382 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHeendz {nullptr}

Definition at line 383 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHeke {nullptr}

Definition at line 390 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHekel {nullptr}

Definition at line 391 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHelen {nullptr}

Definition at line 392 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHelens {nullptr}

Definition at line 393 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHemom {nullptr}

Definition at line 388 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHemoml {nullptr}

Definition at line 389 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHenddx {nullptr}

Definition at line 326 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHenddy {nullptr}

Definition at line 327 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHenddz {nullptr}

Definition at line 328 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHephi {nullptr}

Definition at line 385 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHestartx {nullptr}

Definition at line 378 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHestarty {nullptr}

Definition at line 379 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHestartz {nullptr}

Definition at line 380 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHetheta {nullptr}

Definition at line 384 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHetheta_xz {nullptr}

Definition at line 386 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHetheta_yz {nullptr}

Definition at line 387 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHgendx {nullptr}

Definition at line 362 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHgendy {nullptr}

Definition at line 363 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHgendz {nullptr}

Definition at line 364 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHgke {nullptr}

Definition at line 371 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHgkel {nullptr}

Definition at line 372 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHglen {nullptr}

Definition at line 373 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHglens {nullptr}

Definition at line 374 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHgmom {nullptr}

Definition at line 369 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHgmoml {nullptr}

Definition at line 370 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHgphi {nullptr}

Definition at line 366 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHgstartx {nullptr}

Definition at line 359 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHgstarty {nullptr}

Definition at line 360 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHgstartz {nullptr}

Definition at line 361 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHgtheta {nullptr}

Definition at line 365 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHgtheta_xz {nullptr}

Definition at line 367 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHgtheta_yz {nullptr}

Definition at line 368 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHHitEff {nullptr}

Definition at line 318 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHHitPurity {nullptr}

Definition at line 319 of file TrackAna_module.cc.

TH2F* trkf::TrackAna::MCHists::fHlvsl {nullptr}

Definition at line 329 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmcdudw {nullptr}

Definition at line 314 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmcdvdw {nullptr}

Definition at line 315 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmcendx {nullptr}

Definition at line 343 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmcendy {nullptr}

Definition at line 344 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmcendz {nullptr}

Definition at line 345 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmcke {nullptr}

Definition at line 352 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmckel {nullptr}

Definition at line 353 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmclen {nullptr}

Definition at line 354 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmclens {nullptr}

Definition at line 355 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmcmom {nullptr}

Definition at line 350 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmcmoml {nullptr}

Definition at line 351 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmcphi {nullptr}

Definition at line 347 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmcstartx {nullptr}

Definition at line 340 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmcstarty {nullptr}

Definition at line 341 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmcstartz {nullptr}

Definition at line 342 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmctheta {nullptr}

Definition at line 346 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmctheta_xz {nullptr}

Definition at line 348 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmctheta_yz {nullptr}

Definition at line 349 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmcu {nullptr}

Definition at line 309 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmcv {nullptr}

Definition at line 310 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHmcw {nullptr}

Definition at line 311 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHppull {nullptr}

Definition at line 335 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHppullc {nullptr}

Definition at line 336 of file TrackAna_module.cc.

TH2F* trkf::TrackAna::MCHists::fHpvsp {nullptr}

Definition at line 331 of file TrackAna_module.cc.

TH2F* trkf::TrackAna::MCHists::fHpvspc {nullptr}

Definition at line 332 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHstartdx {nullptr}

Definition at line 323 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHstartdy {nullptr}

Definition at line 324 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHstartdz {nullptr}

Definition at line 325 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHupull {nullptr}

Definition at line 312 of file TrackAna_module.cc.

TH1F* trkf::TrackAna::MCHists::fHvpull {nullptr}

Definition at line 313 of file TrackAna_module.cc.


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