Public Member Functions | Public Attributes | List of all members
trkf::TrackAnaCT::MCHists Struct Reference

Public Member Functions

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

Public Attributes

TH2F * fHduvcosth
 
TH1F * fHcosth
 
TH1F * fHmcu
 
TH1F * fHmcv
 
TH1F * fHmcw
 
TH1F * fHupull
 
TH1F * fHvpull
 
TH1F * fHmcdudw
 
TH1F * fHmcdvdw
 
TH1F * fHdudwpull
 
TH1F * fHdvdwpull
 
TH1F * fHstartdx
 
TH1F * fHstartdy
 
TH1F * fHstartdz
 
TH1F * fHenddx
 
TH1F * fHenddy
 
TH1F * fHenddz
 
TH2F * fHlvsl
 
TH1F * fHdl
 
TH2F * fHpvsp
 
TH2F * fHpvspc
 
TH1F * fHdp
 
TH1F * fHdpc
 
TH1F * fHppull
 
TH1F * fHppullc
 
TH1F * fHmcstartx
 
TH1F * fHmcstarty
 
TH1F * fHmcstartz
 
TH1F * fHmcendx
 
TH1F * fHmcendy
 
TH1F * fHmcendz
 
TH1F * fHmctheta
 
TH1F * fHmcphi
 
TH1F * fHmctheta_xz
 
TH1F * fHmctheta_yz
 
TH1F * fHmcmom
 
TH1F * fHmclen
 
TH1F * fHgstartx
 
TH1F * fHgstarty
 
TH1F * fHgstartz
 
TH1F * fHgendx
 
TH1F * fHgendy
 
TH1F * fHgendz
 
TH1F * fHgtheta
 
TH1F * fHgphi
 
TH1F * fHgtheta_xz
 
TH1F * fHgtheta_yz
 
TH1F * fHgmom
 
TH1F * fHglen
 
TH1F * fHestartx
 
TH1F * fHestarty
 
TH1F * fHestartz
 
TH1F * fHeendx
 
TH1F * fHeendy
 
TH1F * fHeendz
 
TH1F * fHetheta
 
TH1F * fHephi
 
TH1F * fHetheta_xz
 
TH1F * fHetheta_yz
 
TH1F * fHemom
 
TH1F * fHelen
 

Detailed Description

Definition at line 293 of file TrackAnaCT_module.cc.

Constructor & Destructor Documentation

trkf::TrackAnaCT::MCHists::MCHists ( )

Definition at line 513 of file TrackAnaCT_module.cc.

513  :
514  //
515  // Purpose: Default constructor.
516  //
517  fHduvcosth(0),
518  fHcosth(0),
519  fHmcu(0),
520  fHmcv(0),
521  fHmcw(0),
522  fHupull(0),
523  fHvpull(0),
524  fHmcdudw(0),
525  fHmcdvdw(0),
526  fHdudwpull(0),
527  fHdvdwpull(0),
528  fHstartdx(0),
529  fHstartdy(0),
530  fHstartdz(0),
531  fHenddx(0),
532  fHenddy(0),
533  fHenddz(0),
534  fHlvsl(0),
535  fHdl(0),
536  fHpvsp(0),
537  fHpvspc(0),
538  fHdp(0),
539  fHdpc(0),
540  fHppull(0),
541  fHppullc(0),
542  fHmcstartx(0),
543  fHmcstarty(0),
544  fHmcstartz(0),
545  fHmcendx(0),
546  fHmcendy(0),
547  fHmcendz(0),
548  fHmctheta(0),
549  fHmcphi(0),
550  fHmctheta_xz(0),
551  fHmctheta_yz(0),
552  fHmcmom(0),
553  fHmclen(0),
554  fHgstartx(0),
555  fHgstarty(0),
556  fHgstartz(0),
557  fHgendx(0),
558  fHgendy(0),
559  fHgendz(0),
560  fHgtheta(0),
561  fHgphi(0),
562  fHgtheta_xz(0),
563  fHgtheta_yz(0),
564  fHgmom(0),
565  fHglen(0),
566  fHestartx(0),
567  fHestarty(0),
568  fHestartz(0),
569  fHeendx(0),
570  fHeendy(0),
571  fHeendz(0),
572  fHetheta(0),
573  fHephi(0),
574  fHetheta_xz(0),
575  fHetheta_yz(0),
576  fHemom(0),
577  fHelen(0)
578  {}
trkf::TrackAnaCT::MCHists::MCHists ( const std::string subdir)

Definition at line 580 of file TrackAnaCT_module.cc.

584  {
585  // Make sure all histogram pointers are initially zero.
586 
587  *this = MCHists();
588 
589  // Get services.
590 
593 
594  // Make histogram directory.
595 
596  art::TFileDirectory topdir = tfs->mkdir("trkana", "TrackAnaCT histograms");
597  art::TFileDirectory dir = topdir.mkdir(subdir);
598 
599  // Book histograms.
600 
601  fHduvcosth = dir.make<TH2F>("duvcosth", "Delta(uv) vs. Colinearity",
602  100, 0.95, 1., 100, 0., 1.);
603  fHcosth = dir.make<TH1F>("colin", "Colinearity", 100, 0.95, 1.);
604  fHmcu = dir.make<TH1F>("mcu", "MC Truth U", 100, -5., 5.);
605  fHmcv = dir.make<TH1F>("mcv", "MC Truth V", 100, -5., 5.);
606  fHmcw = dir.make<TH1F>("mcw", "MC Truth W", 100, -20., 20.);
607  fHupull = dir.make<TH1F>("dupull", "U Pull", 100, -20., 20.);
608  fHvpull = dir.make<TH1F>("dvpull", "V Pull", 100, -20., 20.);
609  fHmcdudw = dir.make<TH1F>("mcdudw", "MC Truth U Slope", 100, -0.2, 0.2);
610  fHmcdvdw = dir.make<TH1F>("mcdvdw", "MV Truth V Slope", 100, -0.2, 0.2);
611  fHdudwpull = dir.make<TH1F>("dudwpull", "U Slope Pull", 100, -10., 10.);
612  fHdvdwpull = dir.make<TH1F>("dvdwpull", "V Slope Pull", 100, -10., 10.);
613  fHstartdx = dir.make<TH1F>("startdx", "Start Delta x", 100, -10., 10.);
614  fHstartdy = dir.make<TH1F>("startdy", "Start Delta y", 100, -10., 10.);
615  fHstartdz = dir.make<TH1F>("startdz", "Start Delta z", 100, -10., 10.);
616  fHenddx = dir.make<TH1F>("enddx", "End Delta x", 100, -10., 10.);
617  fHenddy = dir.make<TH1F>("enddy", "End Delta y", 100, -10., 10.);
618  fHenddz = dir.make<TH1F>("enddz", "End Delta z", 100, -10., 10.);
619  fHlvsl = dir.make<TH2F>("lvsl", "Reco Length vs. MC Truth Length",
620  100, 0., 1.1 * geom->Cryostat(0).Length(), 100, 0., 1.1 * geom->Cryostat(0).Length());
621  fHdl = dir.make<TH1F>("dl", "Track Length Minus MC Particle Length", 100, -50., 50.);
622  fHpvsp = dir.make<TH2F>("pvsp", "Reco Momentum vs. MC Truth Momentum",
623  100, 0., 5., 100, 0., 5.);
624  fHpvspc = dir.make<TH2F>("pvspc", "Reco Momentum vs. MC Truth Momentum (Contained Tracks)",
625  100, 0., 5., 100, 0., 5.);
626  fHdp = dir.make<TH1F>("dp", "Reco-MC Momentum Difference", 100, -5., 5.);
627  fHdpc = dir.make<TH1F>("dpc", "Reco-MC Momentum Difference (Contained Tracks)",
628  100, -5., 5.);
629  fHppull = dir.make<TH1F>("ppull", "Momentum Pull", 100, -10., 10.);
630  fHppullc = dir.make<TH1F>("ppullc", "Momentum Pull (Contained Tracks)", 100, -10., 10.);
631 
632  fHmcstartx = dir.make<TH1F>("mcxstart", "MC X Start Position",
633  10, -2.*geom->Cryostat(0).HalfWidth(), 4.*geom->Cryostat(0).HalfWidth());
634  fHmcstarty = dir.make<TH1F>("mcystart", "MC Y Start Position",
635  10, -geom->Cryostat(0).HalfHeight(), geom->Cryostat(0).HalfHeight());
636  fHmcstartz = dir.make<TH1F>("mczstart", "MC Z Start Position",
637  10, 0., geom->Cryostat(0).Length());
638  fHmcendx = dir.make<TH1F>("mcxend", "MC X End Position",
639  10, -2.*geom->Cryostat(0).HalfWidth(), 4.*geom->Cryostat(0).HalfWidth());
640  fHmcendy = dir.make<TH1F>("mcyend", "MC Y End Position",
641  10, -geom->Cryostat(0).HalfHeight(), geom->Cryostat(0).HalfHeight());
642  fHmcendz = dir.make<TH1F>("mczend", "MC Z End Position",
643  10, 0., geom->Cryostat(0).Length());
644  fHmctheta = dir.make<TH1F>("mctheta", "MC Theta", 20, 0., 3.142);
645  fHmcphi = dir.make<TH1F>("mcphi", "MC Phi", 10, -3.142, 3.142);
646  fHmctheta_xz = dir.make<TH1F>("mctheta_xz", "MC Theta_xz", 40, -3.142, 3.142);
647  fHmctheta_yz = dir.make<TH1F>("mctheta_yz", "MC Theta_yz", 40, -3.142, 3.142);
648  fHmcmom = dir.make<TH1F>("mcmom", "MC Momentum", 10, 0., 10.);
649  fHmclen = dir.make<TH1F>("mclen", "MC Particle Length", 10, 0., 1.1 * geom->Cryostat(0).Length());
650 
651  fHgstartx = dir.make<TH1F>("gxstart", "Good X Start Position",
652  10, -2.*geom->Cryostat(0).HalfWidth(), 4.*geom->Cryostat(0).HalfWidth());
653  fHgstarty = dir.make<TH1F>("gystart", "Good Y Start Position",
654  10, -geom->Cryostat(0).HalfHeight(), geom->Cryostat(0).HalfHeight());
655  fHgstartz = dir.make<TH1F>("gzstart", "Good Z Start Position",
656  10, 0., geom->Cryostat(0).Length());
657  fHgendx = dir.make<TH1F>("gxend", "Good X End Position",
658  10, -2.*geom->Cryostat(0).HalfWidth(), 4.*geom->Cryostat(0).HalfWidth());
659  fHgendy = dir.make<TH1F>("gyend", "Good Y End Position",
660  10, -geom->Cryostat(0).HalfHeight(), geom->Cryostat(0).HalfHeight());
661  fHgendz = dir.make<TH1F>("gzend", "Good Z End Position",
662  10, 0., geom->Cryostat(0).Length());
663  fHgtheta = dir.make<TH1F>("gtheta", "Good Theta", 20, 0., 3.142);
664  fHgphi = dir.make<TH1F>("gphi", "Good Phi", 10, -3.142, 3.142);
665  fHgtheta_xz = dir.make<TH1F>("gtheta_xz", "Good Theta_xz", 40, -3.142, 3.142);
666  fHgtheta_yz = dir.make<TH1F>("gtheta_yz", "Good Theta_yz", 40, -3.142, 3.142);
667  fHgmom = dir.make<TH1F>("gmom", "Good Momentum", 10, 0., 10.);
668  fHglen = dir.make<TH1F>("glen", "Good Particle Length", 10, 0., 1.1 * geom->Cryostat(0).Length());
669 
670  fHestartx = dir.make<TH1F>("exstart", "Efficiency vs. X Start Position",
671  10, -2.*geom->Cryostat(0).HalfWidth(), 4.*geom->Cryostat(0).HalfWidth());
672  fHestarty = dir.make<TH1F>("eystart", "Efficiency vs. Y Start Position",
673  10, -geom->Cryostat(0).HalfHeight(), geom->Cryostat(0).HalfHeight());
674  fHestartz = dir.make<TH1F>("ezstart", "Efficiency vs. Z Start Position",
675  10, 0., geom->Cryostat(0).Length());
676  fHeendx = dir.make<TH1F>("exend", "Efficiency vs. X End Position",
677  10, -2.*geom->Cryostat(0).HalfWidth(), 4.*geom->Cryostat(0).HalfWidth());
678  fHeendy = dir.make<TH1F>("eyend", "Efficiency vs. Y End Position",
679  10, -geom->Cryostat(0).HalfHeight(), geom->Cryostat(0).HalfHeight());
680  fHeendz = dir.make<TH1F>("ezend", "Efficiency vs. Z End Position",
681  10, 0., geom->Cryostat(0).Length());
682  fHetheta = dir.make<TH1F>("etheta", "Efficiency vs. Theta", 20, 0., 3.142);
683  fHephi = dir.make<TH1F>("ephi", "Efficiency vs. Phi", 10, -3.142, 3.142);
684  fHetheta_xz = dir.make<TH1F>("etheta_xz", "Efficiency vs. Theta_xz", 40, -3.142, 3.142);
685  fHetheta_yz = dir.make<TH1F>("etheta_yz", "Efficiency vs. Theta_yz", 40, -3.142, 3.142);
686  fHemom = dir.make<TH1F>("emom", "Efficiency vs. Momentum", 10, 0., 10.);
687  fHelen = dir.make<TH1F>("elen", "Efficiency vs. Particle Length",
688  10, 0., 1.1 * geom->Cryostat(0).Length());
689  }
string dir

Member Data Documentation

TH1F* trkf::TrackAnaCT::MCHists::fHcosth

Definition at line 303 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHdl

Definition at line 323 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHdp

Definition at line 326 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHdpc

Definition at line 327 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHdudwpull

Definition at line 311 of file TrackAnaCT_module.cc.

TH2F* trkf::TrackAnaCT::MCHists::fHduvcosth

Definition at line 302 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHdvdwpull

Definition at line 312 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHeendx

Definition at line 366 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHeendy

Definition at line 367 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHeendz

Definition at line 368 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHelen

Definition at line 374 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHemom

Definition at line 373 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHenddx

Definition at line 319 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHenddy

Definition at line 320 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHenddz

Definition at line 321 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHephi

Definition at line 370 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHestartx

Definition at line 363 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHestarty

Definition at line 364 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHestartz

Definition at line 365 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHetheta

Definition at line 369 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHetheta_xz

Definition at line 371 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHetheta_yz

Definition at line 372 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHgendx

Definition at line 351 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHgendy

Definition at line 352 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHgendz

Definition at line 353 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHglen

Definition at line 359 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHgmom

Definition at line 358 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHgphi

Definition at line 355 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHgstartx

Definition at line 348 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHgstarty

Definition at line 349 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHgstartz

Definition at line 350 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHgtheta

Definition at line 354 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHgtheta_xz

Definition at line 356 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHgtheta_yz

Definition at line 357 of file TrackAnaCT_module.cc.

TH2F* trkf::TrackAnaCT::MCHists::fHlvsl

Definition at line 322 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHmcdudw

Definition at line 309 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHmcdvdw

Definition at line 310 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHmcendx

Definition at line 336 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHmcendy

Definition at line 337 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHmcendz

Definition at line 338 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHmclen

Definition at line 344 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHmcmom

Definition at line 343 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHmcphi

Definition at line 340 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHmcstartx

Definition at line 333 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHmcstarty

Definition at line 334 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHmcstartz

Definition at line 335 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHmctheta

Definition at line 339 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHmctheta_xz

Definition at line 341 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHmctheta_yz

Definition at line 342 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHmcu

Definition at line 304 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHmcv

Definition at line 305 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHmcw

Definition at line 306 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHppull

Definition at line 328 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHppullc

Definition at line 329 of file TrackAnaCT_module.cc.

TH2F* trkf::TrackAnaCT::MCHists::fHpvsp

Definition at line 324 of file TrackAnaCT_module.cc.

TH2F* trkf::TrackAnaCT::MCHists::fHpvspc

Definition at line 325 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHstartdx

Definition at line 316 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHstartdy

Definition at line 317 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHstartdz

Definition at line 318 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHupull

Definition at line 307 of file TrackAnaCT_module.cc.

TH1F* trkf::TrackAnaCT::MCHists::fHvpull

Definition at line 308 of file TrackAnaCT_module.cc.


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