All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
sim::GenericCRT Class Reference
Inheritance diagram for sim::GenericCRT:

Public Member Functions

 GenericCRT (fhicl::ParameterSet const &p)
 
 GenericCRT (GenericCRT const &)=delete
 
 GenericCRT (GenericCRT &&)=delete
 
GenericCRToperator= (GenericCRT const &)=delete
 
GenericCRToperator= (GenericCRT &&)=delete
 
void produce (art::Event &e) override
 

Private Attributes

std::string fEnergyUnitsScale
 
sim::GenericCRTUtility fCRTConvertUtil
 

Detailed Description

Definition at line 35 of file GenericCRT_module.cc.

Constructor & Destructor Documentation

sim::GenericCRT::GenericCRT ( fhicl::ParameterSet const &  p)
explicit

Definition at line 61 of file GenericCRT_module.cc.

62  : EDProducer{p} //
63  ,fEnergyUnitsScale (p.get<std::string>("EnergyUnitsScale","MeV"))
65  // More initializers here.
66  {
67 
68  produces< std::vector<sim::AuxDetSimChannel> >();
69  }
pdgs p
Definition: selectors.fcl:22
sim::GenericCRTUtility fCRTConvertUtil
std::string fEnergyUnitsScale
sim::GenericCRT::GenericCRT ( GenericCRT const &  )
delete
sim::GenericCRT::GenericCRT ( GenericCRT &&  )
delete

Member Function Documentation

GenericCRT& sim::GenericCRT::operator= ( GenericCRT const &  )
delete
GenericCRT& sim::GenericCRT::operator= ( GenericCRT &&  )
delete
void sim::GenericCRT::produce ( art::Event &  e)
override

Definition at line 71 of file GenericCRT_module.cc.

72 {
73  // Implementation of required member function here.
74  //std::unique_ptr< std::vector< sim::AuxDetSimChannel > > adCol (new std::vector<sim::AuxDetSimChannel> );
75  auto adCol = std::make_unique<std::vector<sim::AuxDetSimChannel>>();
76 
77  auto const &auxdethitcollection = e.getMany< std::vector<sim::AuxDetHit>> ();
78 
79  for (size_t ii = 0; ii < auxdethitcollection.size(); ii++) {
80  for (auto ch : fCRTConvertUtil.GetAuxDetSimChannels(*(auxdethitcollection.at(ii))))
81  adCol->emplace_back(ch);
82  }
83 
84  e.put(std::move(adCol));
85 
86 }
sim::GenericCRTUtility fCRTConvertUtil
std::vector< sim::AuxDetSimChannel > GetAuxDetSimChannels(const std::vector< sim::AuxDetHit > &InputHitVector) const
Definition: GenericCRT.cxx:145
do i e

Member Data Documentation

sim::GenericCRTUtility sim::GenericCRT::fCRTConvertUtil
private

Definition at line 54 of file GenericCRT_module.cc.

std::string sim::GenericCRT::fEnergyUnitsScale
private

Definition at line 53 of file GenericCRT_module.cc.


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