5#include "Recon/Event/HgcrocTrigDigi.h"
11 : Producer(name, process) {}
17 ps.
getParameter<std::string>(
"condObjName",
"EcalTrigPrimDigiConditions");
22 EcalTriggerGeometry::CONDITIONS_OBJECT_NAME);
29 getCondition<conditions::IntegerTableCondition>(
condObjName_);
35 for (
unsigned int ix = 0; ix < ecalDigis.
getNumDigis(); ix++) {
52 ldmx::HgcrocTrigDigiCollection tdigis;
54 for (
auto result : results) {
55 if (result.second > 0) {
Class that performs emulation of the EcalTriggerPrimitives.
Class that defines the relationship between precision cells and trigger cells and provides geometry i...
#define DECLARE_PRODUCER_NS(NS, CLASS)
Macro which allows the framework to construct a producer given its name during configuration.
Class that represents a digitized hit in a calorimeter cell readout by an HGCROC.
Class that contains the Hgcroc Trigger algorithms, used for both Ecal and Hcal.
std::string digiCollName_
Digi Collection Name to use as input.
virtual void produce(framework::Event &event)
Produce EcalHits and put them into the event bus using the EcalDigis as input.
EcalTrigPrimDigiProducer(const std::string &name, framework::Process &process)
Constructor.
std::string condObjName_
Conditions object for the calibration information.
std::string digiPassName_
Digi Pass Name to use as input.
virtual void configure(framework::config::Parameters &)
Grabs configure parameters from the python config file.
defines the relationship between precision cells and trigger cells and provides geometry information ...
ldmx::EcalTriggerID belongsTo(ldmx::EcalID precisionCell) const
Returns which trigger cell this precision cell is associated with, or a null id if there is no such a...
std::string getName() const
Get the processor name.
Implements an event buffer system for storing event data.
Class which represents the process under execution.
Class encapsulating parameters for configuring a processor.
T getParameter(const std::string &name) const
Retrieve the parameter of the given name.
Extension of DetectorID providing access to ECal layers and cell numbers in a hex grid.
Extension of DetectorID providing access to ECal trigger cell information.
One DIGI signal coming from the HGC ROC.
unsigned int id() const
Get the ID for this DIGI.
HgcrocDigiCollection::Sample soi() const
Get the sample of interest from this DIGI.
int adc_t() const
Get the ADC measurement from this sample.
int tot() const
Get the TOT measurement from this sample.
bool isTOTComplete() const
Get the second flag from the sample checking if TOT is complete at this sample.
Represents a collection of the digi hits readout by an HGCROC.
const HgcrocDigi getDigi(unsigned int digiIndex) const
Get samples for the input digi index.
unsigned int getNumDigis() const
Get total number of digis.
Contains the trigger output for a single trigger hgcroc channel.
Contains the core logic for the Hgcroc trigger calculations.
void addDigi(unsigned int id, unsigned int tid, int adc, int tot)
Determine the linear charge for the given channel, using the calibration information,...
const std::map< unsigned int, uint8_t > & compressedEnergies() const
Access the map of trigger ids to compressed energies.
void compressDigis(int cells_per_trig)
Convert the linear charges to compressed charges, with a division depending on the number of cells su...