-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWCEfficiencies_module.cc
82 lines (63 loc) · 2.31 KB
/
WCEfficiencies_module.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
////////////////////////////////////////////////////////////////////////
// Class: WCEfficiencies
// Module Type: analyzer
// File: WCEfficiencies_module.cc
//
// Generated at Tue Aug 9 14:35:14 2016 by Lucas Mendes Santos using artmod
// from cetpkgsupport v1_10_02.
////////////////////////////////////////////////////////////////////////
#include "art/Framework/Core/EDAnalyzer.h"
#include "art/Framework/Core/ModuleMacros.h"
#include "art/Framework/Principal/Event.h"
#include "art/Framework/Principal/Handle.h"
#include "art/Framework/Principal/Run.h"
#include "art/Framework/Principal/SubRun.h"
#include "canvas/Utilities/InputTag.h"
#include "fhiclcpp/ParameterSet.h"
#include "messagefacility/MessageLogger/MessageLogger.h"
#include "art/Framework/Services/Registry/ServiceHandle.h"
#include "art/Framework/Services/Optional/TFileService.h"
#include "art/Framework/Services/Optional/TFileDirectory.h"
// LArSoft Libraries
#include "lardataobj/RawData/AuxDetDigit.h"
//ROOT Libraries
#include "TTree.h"
class WCEfficiencies;
class WCEfficiencies : public art::EDAnalyzer {
public:
explicit WCEfficiencies(fhicl::ParameterSet const & p);
// The destructor generated by the compiler is fine for classes
// without bare pointers or other resource use.
// Plugins should not be copied or assigned.
WCEfficiencies(WCEfficiencies const &) = delete;
WCEfficiencies(WCEfficiencies &&) = delete;
WCEfficiencies & operator = (WCEfficiencies const &) = delete;
WCEfficiencies & operator = (WCEfficiencies &&) = delete;
void beginJob() override;
void reconfigure(fhicl::ParameterSet const & p) override;
// Required functions.
void analyze(art::Event const & e) override;
private:
// Declare member data here.
std::string fAuxDetDigit;
TTree *fTree;
};
WCEfficiencies::WCEfficiencies(fhicl::ParameterSet const & p)
:
EDAnalyzer(p) // ,
// More initializers here.
{ this->reconfigure(p);}
void WCEfficiencies::reconfigure(fhicl::ParameterSet const & p)
{
fAuxDetDigit = p.get<std::string>("DAQ", "daq");
}
void WCEfficiencies::beginJob()
{
art::ServiceHandle<art::TFileService> tfs;
fTree = tfs->make<TTree>("wceff","WC Efficiencies");
}
void WCEfficiencies::analyze(art::Event const & e)
{
// Implementation of required member function here.
}
DEFINE_ART_MODULE(WCEfficiencies)