HitSdpPlotter.h
Go to the documentation of this file.
1 /*
2  * \file: HitSdpPlotter.h
3  * \author: Jason Stock (jason.stock@mines.sdsmt.edu
4  * \brief: This is a small Tree made for use in calibration analysis.
5  *
6  */
7 
8 #ifndef TOY_H
9 #define TOY_H
10 
11 //Includes
13 
14 //LArSoft Includes
23 
24 //FrameworkIncludes
28 #include "art_root_io/TFileService.h"
29 #include "art_root_io/TFileDirectory.h"
31 #include "canvas/Persistency/Common/FindManyP.h"
36 
37 //ROOT includes
38 #include "TTree.h"
39 #include "TFile.h"
40 #include "TH2D.h"
41 
42 //CPP includes
43 #include <vector>
44 #include <map>
45 
46 
47 namespace{}//
48 
49 namespace HitSdpPlotter {
50 
52  {
53  public:
54 
55  //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
57 
58  virtual void beginJob();
59  virtual void analyze(const art::Event& evt) override;
60  virtual void endJob();
61 
62 
63  private:
64 
70  std::unique_ptr<art::TFileDirectory> mDir;
71  std::map<UInt_t, TH1D*> sdp_time_hists;
72  std::map<UInt_t, TH1D*> detTimeHist;
73  TH1D* widths;
74 
75 
76  //Also need buffers
77 
78  };// end class HitSdpPlotter
79 
80 }
81 
82 #endif//endif HitSdpPlotter
def analyze(root, level, gtrees, gbranches, doprint)
Definition: rootstat.py:69
std::map< UInt_t, TH1D * > detTimeHist
Definition: HitSdpPlotter.h:72
std::unique_ptr< art::TFileDirectory > mDir
Definition: HitSdpPlotter.h:70
art::ServiceHandle< geo::Geometry > private_service_geom
Definition: HitSdpPlotter.h:68
std::map< UInt_t, TH1D * > sdp_time_hists
Definition: HitSdpPlotter.h:71
art::InputTag private_OpHitLabel
Definition: HitSdpPlotter.h:65
void beginJob()
Definition: Breakpoints.cc:14
art::ServiceHandle< cheat::PhotonBackTrackerService > private_service_pbt
Definition: HitSdpPlotter.h:69
Declaration of signal hit object.
Provides recob::Track data product.
TCEvent evt
Definition: DataStructs.cxx:7
art::ServiceHandle< art::TFileService > private_service_tfs
Definition: HitSdpPlotter.h:67