MilliBlockChecking_module.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // Class: MilliBlockChecking
3 // Module Type: analyzer
4 // File: MilliBlockChecking_module.cc
5 //
6 // Author: Zukai
7 ////////////////////////////////////////////////////////////////////////
8 
13 
17 
18 #include <algorithm>
19 #include <fstream>
20 
21 namespace novaddt {
22  class MilliBlockChecking;
23  struct Hit;
24  struct CompareHit;
25 }
26 
28 public:
29  explicit MilliBlockChecking(fhicl::ParameterSet const & p);
30  virtual ~MilliBlockChecking();
31 
32  void analyze(art::Event const & e) override;
33 
34 
35 private:
38 };
39 
40 
41 
43  EDAnalyzer(p),
44  _hitslabel(p.get< std::string >("hits_label")),
45  _hitsinstance(p.get< std::string >("hits_instance"))
46 {
47 }
48 
50 {
51 }
52 
54 {
55 
58 
59 
60  if (hits->size() > 0) {
61  uint64_t Tlow = hits->begin()->TDC().val;
62  uint64_t Thigh = (hits->end()-1)->TDC().val;
63 
64  std::cout<<Tlow<<" "<<Thigh<<std::endl;
65  }
66 
67 }
68 
value_type val
Definition: BaseProducts.h:34
const char * p
Definition: xmltok.h:285
DEFINE_ART_MODULE(TestTMapFile)
void analyze(art::Event const &e) override
void hits()
Definition: readHits.C:15
EDAnalyzer(Table< Config > const &config)
Definition: EDAnalyzer.h:100
OStream cout
Definition: OStream.cxx:6
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
Definition: DataViewImpl.h:344
Float_t e
Definition: plot.C:35
MilliBlockChecking(fhicl::ParameterSet const &p)
enum BeamMode string