LDMX Software
ElectronCounter.h
1
2#ifndef RECON_ELECTRONCOUNTER_H
3#define RECON_ELECTRONCOUNTER_H
4
5//---< Framework >---//
6#include "Framework/Configure/Parameters.h"
8
9//---< TrigScint >---//
10#include "TrigScint/Event/TrigScintCluster.h"
11#include "TrigScint/Event/TrigScintTrack.h"
12
13namespace recon {
14
23 public:
31 ElectronCounter(const std::string &name, framework::Process &process);
32
35
45 void configure(framework::config::Parameters &parameters) override;
46
52 void produce(framework::Event &event) override;
53
54 private:
58 std::string inputColl_;
59
63 std::string inputPassName_;
64
69 std::string outputColl_;
70
75
81
82}; // ElectronCounter
83} // namespace recon
84
85#endif // RECON_ELECTRONCOUNTER_H
Base classes for all user event processing components to extend.
Implements an event buffer system for storing event data.
Definition Event.h:41
Class which represents the process under execution.
Definition Process.h:36
Base class for a module which produces a data product.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:27
Electron counting processor.
void configure(framework::config::Parameters &parameters) override
Configure the processor using the given user specified parameters.
void produce(framework::Event &event) override
Process the event and put new data products into it.
std::string inputColl_
The name of the input collection used for counting electrons.
int nElectronsSim_
The number of electrons actually simulated in the event.
int useSimElectronCount_
Use the number of electrons actually simulated in the event as the electron count.
std::string outputColl_
The name of the output collection used to save some electron counting variables.
std::string inputPassName_
The pass name of the input collection used for counting electrons.