LDMX Software
HcalWABVetoProcessor.h
Go to the documentation of this file.
1
7#ifndef __HCAL_HCAL_VETO_PROCESSOR_H__
8#define __HCAL_HCAL_VETO_PROCESSOR_H__
9
10//----------------//
11// C++ StdLib //
12//----------------//
13#include <string>
14
15//----------//
16// LDMX //
17//----------//
18#include "Framework/Configure/Parameters.h"
20
21namespace hcal {
22
24 public:
26 HcalWABVetoProcessor(const std::string& name, framework::Process& process);
27
29 virtual ~HcalWABVetoProcessor() = default;
30
36 void configure(framework::config::Parameters& parameters) override;
37
44 void produce(framework::Event& event) override;
45
46 private:
47 // Maximum sum of total ECAL and HCAL energy
48 double maxtotal_energy_compare_{1000.};
49 // Minimum sum of total ECAL and HCAL energy
50 double mintotal_energy_compare_{0.};
51 // Maximum number of clusters in an event
52 double maxn_clusters_{0.};
53 // Maximum allowed mean average number of hits in the event's clusters
54 double max_mean_hits_per_cluster_{0.};
55 // Maimum allowed mean average energy in event's clusters
56 double max_mean_energy_per_cluster_{0.};
57 std::string output_coll_name_;
58 std::string input_hcal_cluster_coll_name_;
59 std::string input_hcal_hit_coll_name_;
60 std::string input_ecal_hit_coll_name_;
61 std::string hcal_hit_passname_;
62 std::string ecal_hit_passname_;
63 std::string hcal_cluster_passname_;
64
65}; // HcalWABVetoProcessor
66} // namespace hcal
67
68#endif // HCAL_HcalWABVetoProcessor_H_
Base classes for all user event processing components to extend.
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
void configure(framework::config::Parameters &parameters) override
Configure the processor using the given user specified parameters.
void produce(framework::Event &event) override
Run the processor and create a collection of results which indicate if the event passes/fails the Hca...
virtual ~HcalWABVetoProcessor()=default
Destructor.
HcalWABVetoProcessor(const std::string &name, framework::Process &process)
Constructor.