TrueEdep_module.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // Class: TrueEdep
3 // Plugin Type: producer (art v3_05_01)
4 // File: TrueEdep_module.cc
5 //
6 // Generated at Wed Jul 1 23:49:17 2020 by Tingjun Yang using cetskelgen
7 // from cetlib version v3_10_00.
8 ////////////////////////////////////////////////////////////////////////
9 
17 #include "fhiclcpp/ParameterSet.h"
20 
21 #include <memory>
22 
23 namespace pdsp {
24  class TrueEdep;
25 }
26 
27 
29 public:
30  explicit TrueEdep(fhicl::ParameterSet const& p);
31  // The compiler-generated destructor is fine for non-base
32  // classes without bare pointers or other resource use.
33 
34  // Plugins should not be copied or assigned.
35  TrueEdep(TrueEdep const&) = delete;
36  TrueEdep(TrueEdep&&) = delete;
37  TrueEdep& operator=(TrueEdep const&) = delete;
38  TrueEdep& operator=(TrueEdep&&) = delete;
39 
40  // Required functions.
41  void produce(art::Event& e) override;
42 
43 private:
44 
45  double nelectrons;
46 
47 };
48 
49 
51  : EDProducer{p},
52  nelectrons(p.get< double >("Nelectrons"))
53 {
54  produces< std::vector<sim::SimEnergyDeposit> >();
55 }
56 
58 {
59  std::unique_ptr<std::vector<sim::SimEnergyDeposit> > edepos(new std::vector<sim::SimEnergyDeposit>);
60 
61  geo::Point_t start={-355,300,120};
62  geo::Point_t end={-355,300,120};
63  edepos->emplace_back(sim::SimEnergyDeposit(0,nelectrons,0,10,start,end));
64  e.put(std::move(edepos));
65 }
66 
void produce(art::Event &e) override
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
TrueEdep(fhicl::ParameterSet const &p)
EDProducer(fhicl::ParameterSet const &pset)
Definition: EDProducer.h:20
const double e
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:67
def move(depos, offset)
Definition: depos.py:107
p
Definition: test.py:223
ProductID put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
Definition: DataViewImpl.h:686
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
Definition: geo_vectors.h:184
contains information for a single step in the detector simulation
Energy deposition in the active material.
TrueEdep & operator=(TrueEdep const &)=delete