Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
skim::NumuSkim Class Reference
Inheritance diagram for skim::NumuSkim:
art::EDProducer art::ProducerBase art::Consumer art::EngineCreator art::ProductRegistryHelper

Public Types

using ModuleType = EDProducer
 
using WorkerType = WorkerT< EDProducer >
 
template<typename UserConfig , typename KeysToIgnore = void>
using Table = ProducerBase::Table< UserConfig, KeysToIgnore >
 

Public Member Functions

 NumuSkim (fhicl::ParameterSet const &p)
 
 NumuSkim (NumuSkim const &)=delete
 
 NumuSkim (NumuSkim &&)=delete
 
NumuSkimoperator= (NumuSkim const &)=delete
 
NumuSkimoperator= (NumuSkim &&)=delete
 
void produce (art::Event &e) override
 
void reconfigure (fhicl::ParameterSet const &p)
 
template<typename PROD , BranchType B = InEvent>
ProductID getProductID (std::string const &instanceName={}) const
 
template<typename PROD , BranchType B>
ProductID getProductID (ModuleDescription const &moduleDescription, std::string const &instanceName) const
 
bool modifiesEvent () const
 
template<typename T , BranchType = InEvent>
ProductToken< Tconsumes (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ProductToken< Tconsumes (InputTag const &it)
 
template<typename T , BranchType = InEvent>
void consumesMany ()
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > consumesView (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ViewToken< TconsumesView (InputTag const &it)
 
template<typename T , BranchType = InEvent>
ProductToken< TmayConsume (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ProductToken< TmayConsume (InputTag const &it)
 
template<typename T , BranchType = InEvent>
void mayConsumeMany ()
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > mayConsumeView (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ViewToken< TmayConsumeView (InputTag const &it)
 
base_engine_tcreateEngine (seed_t seed)
 
base_engine_tcreateEngine (seed_t seed, std::string const &kind_of_engine_to_make)
 
base_engine_tcreateEngine (seed_t seed, std::string const &kind_of_engine_to_make, label_t const &engine_label)
 
seed_t get_seed_value (fhicl::ParameterSet const &pset, char const key[]="seed", seed_t const implicit_seed=-1)
 

Static Public Member Functions

static cet::exempt_ptr< Consumernon_module_context ()
 

Protected Member Functions

CurrentProcessingContext const * currentContext () const
 
void validateConsumedProduct (BranchType const bt, ProductInfo const &pi)
 
void prepareForJob (fhicl::ParameterSet const &pset)
 
void showMissingConsumes () const
 

Private Attributes

std::string fInstanceLabel
 label of module creating slices More...
 
skim::NumuSkimmer fSkimmer
 object that does the skimming work More...
 

Detailed Description

Definition at line 54 of file NumuSkim_module.cc.

Member Typedef Documentation

using art::EDProducer::ModuleType = EDProducer
inherited

Definition at line 34 of file EDProducer.h.

template<typename UserConfig , typename KeysToIgnore = void>
using art::EDProducer::Table = ProducerBase::Table<UserConfig, KeysToIgnore>
inherited

Definition at line 43 of file EDProducer.h.

using art::EDProducer::WorkerType = WorkerT<EDProducer>
inherited

Definition at line 35 of file EDProducer.h.

Constructor & Destructor Documentation

skim::NumuSkim::NumuSkim ( fhicl::ParameterSet const &  p)
explicit

2017

2017

2017

Definition at line 91 of file NumuSkim_module.cc.

References fInstanceLabel, and reconfigure().

92 : fSkimmer(p.get<fhicl::ParameterSet>("SkimmerConfig"))
93 {
94  this->reconfigure(p);
95 
96  produces< std::vector<rb::Cluster> >(fInstanceLabel); // 2017
97  produces< std::vector<rb::Energy> >(fInstanceLabel);
98  produces< std::vector<rb::Shower > >(fInstanceLabel); // 2017
99  produces< std::vector<rb::Track > >(fInstanceLabel); // 2017
100  produces< std::vector<rb::Vertex > >(fInstanceLabel);
101  produces< std::vector<cosrej::CosRejObj> >(fInstanceLabel);
102  produces< std::vector<cosrej::NueCosRej> >(fInstanceLabel); /// 2017
103  produces< std::vector<cvn::Result> >(fInstanceLabel); /// 2017
104  produces< std::vector<numusand::NumuSandObj> >(fInstanceLabel);
105  produces< std::vector<presel::Veto> >(fInstanceLabel);
106  produces< std::vector<qeef::QePId> >(fInstanceLabel);
107  produces< std::vector<remid::ReMId> >(fInstanceLabel);
108  produces< std::vector<numue::NumuE> >(fInstanceLabel);
109  //produces< std::vector<me::MichelECluster> >();
110  produces< art::Assns<rb::Cluster, rb::Track> >(fInstanceLabel);
111  produces< art::Assns<rb::Cluster, rb::Shower> >(fInstanceLabel); // 2017
112  produces< art::Assns<rb::Cluster, rb::Vertex> >(fInstanceLabel); // 2017
113  produces< art::Assns<rb::Cluster, slid::ShowerLID> >(fInstanceLabel); // 2017
114  produces< art::Assns<rb::Shower, slid::ShowerLID> >(fInstanceLabel); // 2017
115 
116  produces< art::Assns<rb::Cluster, cosrej::CosRejObj> >(fInstanceLabel);
117  produces< art::Assns<rb::Cluster, cosrej::NueCosRej> >(fInstanceLabel); // 2017
118  produces< art::Assns<rb::Cluster, cvn::Result> >(fInstanceLabel); /// 2017
119  produces< art::Assns<rb::Cluster, numusand::NumuSandObj> >(fInstanceLabel);
120  produces< art::Assns<rb::Cluster, presel::Veto> >(fInstanceLabel);
121  produces< art::Assns<rb::Cluster, qeef::QePId> >(fInstanceLabel);
122  produces< art::Assns<rb::Cluster, numue::NumuE> >(fInstanceLabel);
123  //produces< art::Assns<rb::Cluster, me::MichelECluster> >();
124  //produces< art::Assns<rb::Track, me::MichelECluster> >();
125  produces< art::Assns<rb::Track, remid::ReMId> >(fInstanceLabel);
126  produces< art::Assns<rb::Track, rb::Energy> >(fInstanceLabel);
127  produces< art::Assns<rb::Cluster, simb::MCTruth> >(fInstanceLabel);
128  produces< art::Assns<rb::Cluster, simb::MCFlux> >(fInstanceLabel);
129 
130  return;
131 }
void reconfigure(fhicl::ParameterSet const &p)
const char * p
Definition: xmltok.h:285
std::string fInstanceLabel
label of module creating slices
skim::NumuSkimmer fSkimmer
object that does the skimming work
skim::NumuSkim::NumuSkim ( NumuSkim const &  )
delete
skim::NumuSkim::NumuSkim ( NumuSkim &&  )
delete

Member Function Documentation

template<typename T , BranchType = InEvent>
ProductToken<T> art::Consumer::consumes ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ProductToken<T> art::Consumer::consumes ( InputTag const &  it)
inherited

Definition at line 146 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

147 {
148  if (!moduleContext_)
149  return ProductToken<T>::invalid();
150 
151  consumables_[BT].emplace_back(ConsumableType::Product,
152  TypeID{typeid(T)},
153  it.label(),
154  it.instance(),
155  it.process());
156  return ProductToken<T>{it};
157 }
set< int >::iterator it
static ProductToken< T > invalid()
Definition: ProductToken.h:47
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
template<typename T , art::BranchType BT>
void art::Consumer::consumesMany ( )
inherited

Definition at line 161 of file Consumer.h.

References T.

162 {
163  if (!moduleContext_)
164  return;
165 
166  consumables_[BT].emplace_back(ConsumableType::Many, TypeID{typeid(T)});
167 }
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::Consumer::consumesView ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ViewToken<T> art::Consumer::consumesView ( InputTag const &  it)
inherited

Definition at line 171 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

172 {
173  if (!moduleContext_)
174  return ViewToken<T>::invalid();
175 
176  consumables_[BT].emplace_back(ConsumableType::ViewElement,
177  TypeID{typeid(T)},
178  it.label(),
179  it.instance(),
180  it.process());
181  return ViewToken<T>{it};
182 }
set< int >::iterator it
static ViewToken< Element > invalid()
Definition: ProductToken.h:75
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
base_engine_t& art::EngineCreator::createEngine ( seed_t  seed)
inherited
base_engine_t& art::EngineCreator::createEngine ( seed_t  seed,
std::string const &  kind_of_engine_to_make 
)
inherited
base_engine_t& art::EngineCreator::createEngine ( seed_t  seed,
std::string const &  kind_of_engine_to_make,
label_t const &  engine_label 
)
inherited
CurrentProcessingContext const* art::EDProducer::currentContext ( ) const
protectedinherited
seed_t art::EngineCreator::get_seed_value ( fhicl::ParameterSet const &  pset,
char const  key[] = "seed",
seed_t const  implicit_seed = -1 
)
inherited
template<typename PROD , BranchType B>
ProductID art::EDProducer::getProductID ( std::string const &  instanceName = {}) const
inlineinherited

Definition at line 123 of file EDProducer.h.

References art::EDProducer::moduleDescription_.

Referenced by skim::NueSkimmer::CopyMichelSlice(), and skim::NueSkimmer::CopyMichelTrack().

124  {
125  return ProducerBase::getProductID<PROD, B>(moduleDescription_,
126  instanceName);
127  }
ModuleDescription moduleDescription_
Definition: EDProducer.h:115
template<typename PROD , BranchType B>
ProductID art::ProducerBase::getProductID ( ModuleDescription const &  moduleDescription,
std::string const &  instanceName 
) const
inherited

Definition at line 56 of file ProducerBase.h.

References art::ModuleDescription::moduleLabel().

Referenced by art::ProducerBase::modifiesEvent().

58  {
59  auto const& pd =
60  get_ProductDescription<PROD>(B, md.moduleLabel(), instanceName);
61  return pd.productID();
62  }
template<typename T , BranchType = InEvent>
ProductToken<T> art::Consumer::mayConsume ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ProductToken<T> art::Consumer::mayConsume ( InputTag const &  it)
inherited

Definition at line 189 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

190 {
191  if (!moduleContext_)
192  return ProductToken<T>::invalid();
193 
194  consumables_[BT].emplace_back(ConsumableType::Product,
195  TypeID{typeid(T)},
196  it.label(),
197  it.instance(),
198  it.process());
199  return ProductToken<T>{it};
200 }
set< int >::iterator it
static ProductToken< T > invalid()
Definition: ProductToken.h:47
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
template<typename T , art::BranchType BT>
void art::Consumer::mayConsumeMany ( )
inherited

Definition at line 204 of file Consumer.h.

References T.

205 {
206  if (!moduleContext_)
207  return;
208 
209  consumables_[BT].emplace_back(ConsumableType::Many, TypeID{typeid(T)});
210 }
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::Consumer::mayConsumeView ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ViewToken<T> art::Consumer::mayConsumeView ( InputTag const &  it)
inherited

Definition at line 214 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

215 {
216  if (!moduleContext_)
217  return ViewToken<T>::invalid();
218 
219  consumables_[BT].emplace_back(ConsumableType::ViewElement,
220  TypeID{typeid(T)},
221  it.label(),
222  it.instance(),
223  it.process());
224  return ViewToken<T>{it};
225 }
set< int >::iterator it
static ViewToken< Element > invalid()
Definition: ProductToken.h:75
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
bool art::ProducerBase::modifiesEvent ( ) const
inlineinherited

Definition at line 40 of file ProducerBase.h.

References art::ProducerBase::getProductID(), and string.

41  {
42  return true;
43  }
static cet::exempt_ptr<Consumer> art::Consumer::non_module_context ( )
staticinherited
NumuSkim& skim::NumuSkim::operator= ( NumuSkim const &  )
delete
NumuSkim& skim::NumuSkim::operator= ( NumuSkim &&  )
delete
void art::Consumer::prepareForJob ( fhicl::ParameterSet const &  pset)
protectedinherited
void skim::NumuSkim::produce ( art::Event e)
overridevirtual

Implements art::EDProducer.

Definition at line 134 of file NumuSkim_module.cc.

References fSkimmer, and skim::NumuSkimmer::Skim().

135 {
136 
137  // all the work of figuring out which data products to keep is done in the
138  // NumuSkimmer
139  fSkimmer.Skim(e, *this);
140 
141  return;
142 }
void Skim(art::Event &e, art::EDProducer const &prod)
Definition: NumuSkimmer.cxx:57
skim::NumuSkimmer fSkimmer
object that does the skimming work
void skim::NumuSkim::reconfigure ( fhicl::ParameterSet const &  p)

Definition at line 145 of file NumuSkim_module.cc.

References DEFINE_ART_MODULE(), fInstanceLabel, fhicl::ParameterSet::get(), and string.

Referenced by NumuSkim().

146 {
147  fInstanceLabel = p.get<std::string>("InstanceLabel", "numu");
148 
149  return;
150 }
const char * p
Definition: xmltok.h:285
std::string fInstanceLabel
label of module creating slices
enum BeamMode string
void art::Consumer::showMissingConsumes ( ) const
protectedinherited

Referenced by art::RootOutput::endJob().

void art::Consumer::validateConsumedProduct ( BranchType const  bt,
ProductInfo const &  pi 
)
protectedinherited

Member Data Documentation

std::string skim::NumuSkim::fInstanceLabel
private

label of module creating slices

Definition at line 85 of file NumuSkim_module.cc.

Referenced by NumuSkim(), and reconfigure().

skim::NumuSkimmer skim::NumuSkim::fSkimmer
private

object that does the skimming work

Definition at line 86 of file NumuSkim_module.cc.

Referenced by produce().


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