LDMX Software
EcalTPSelector.h
Go to the documentation of this file.
1
7#ifndef ECALTPSELECTOR_H
8#define ECALTPSELECTOR_H
9
10// LDMX Framework
11#include "Framework/Configure/Parameters.h" // Needed to import parameters from configuration file
12#include "Framework/Event.h"
13#include "Framework/EventProcessor.h" //Needed to declare processor
14#include "Recon/Event/HgcrocTrigDigi.h"
15
16namespace trigger {
17
23 public:
24 EcalTPSelector(const std::string& name, framework::Process& process)
26
28
29 virtual void produce(framework::Event& event);
30
31 // helpers
32 void decodeTP(ldmx::HgcrocTrigDigi tp, double& x, double& y, double& z,
33 double& e);
34 /* double primitiveToEnergy(int tp, int layer); */
35
36 private:
37 // name of collection for EcalTPs to be passed as input
38 std::string tp_coll_name_;
39 // name of output collection
40 std::string pass_coll_name_;
41
42 std::string tp_coll_passname_;
43
44 std::string tp_coll_event_passname_;
45
46 unsigned int max_central_t_ps_{12};
47 unsigned int max_outer_t_ps_{8};
48
49 // From:
50 // Tools/python/HgcrocEmulator.py
51 // ECal/python/digi.py
52 // ECal/src/EcalRecProducer.cxx
53 /* float gain_ = 320. / 0.1 / 1024; //
54 * mV/ADC */
55 /* float mVtoMeV_ = 0.130 / (37000.0 * (0.1602 / 1000.) * (1. / 0.1)); //
56 * MeV/mV */
57 /* std::vector<float> layerWeights = { */
58 /* 2.312, 4.312, 6.522, 7.490, 8.595, 10.253, 10.915, 10.915, 10.915, 10.915,
59 * 10.915, */
60 /* 10.915, 10.915, 10.915, 10.915, 10.915, 10.915, 10.915, 10.915, 10.915, 10.915,
61 */
62 /* 10.915, 10.915, 14.783, 18.539, 18.539, 18.539, 18.539, 18.539, 18.539, 18.539,
63 */
64 /* 18.539, 18.539, 9.938}; */
65 /* float secondOrderEnergyCorrection_ = 4000. / 3940.5; */
66 /* float mipSiEnergy_ = 0.130; */
67 /* float adHoc_ = 1.0; // my adhoc correction factor, to match v14 :( */
68 /* int hgc_compression_factor_ = 8; */
69};
70} // namespace trigger
71
72#endif /* ECALTPSELECTOR_H */
Base classes for all user event processing components to extend.
Class implementing an event buffer system for storing event data.
Implements an event buffer system for storing event data.
Definition Event.h:40
Class which represents the process under execution.
Definition Process.h:34
Base class for a module which produces a data product.
virtual void process(Event &event) final
Processing an event for a Producer is calling produce.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:26
Contains the trigger output for a single trigger hgcroc channel.
virtual void produce(framework::Event &event)
Process the event and put new data products into it.
virtual void configure(framework::config::Parameters &ps)
Callback for the EventProcessor to configure itself from the given set of parameters.