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 "Ecal/Event/EcalHit.h"
19#include "Event/HcalCluster.h"
20#include "Event/HcalHit.h"
22#include "Framework/Configure/Parameters.h"
24
25namespace hcal {
26
28 public:
30 HcalWABVetoProcessor(const std::string &name, framework::Process &process);
31
33 virtual ~HcalWABVetoProcessor() = default;
34
40 void configure(framework::config::Parameters &parameters) override;
41
48 void produce(framework::Event &event) override;
49
50 private:
51 // Maximum sum of total ECAL and HCAL energy
52 double maxtotalEnergyCompare_{1000.};
53 // Minimum sum of total ECAL and HCAL energy
54 double mintotalEnergyCompare_{0.};
55 // Maximum number of clusters in an event
56 double maxnClusters_{0.};
57 // Maximum allowed mean average number of hits in the event's clusters
58 double maxMeanHitsPerCluster_{0.};
59 // Maimum allowed mean average energy in event's clusters
60 double maxMeanEnergyPerCluster_{0.};
61 std::string outputCollName_;
62 std::string inputHCALClusterCollName_;
63 std::string inputHCALHitCollName_;
64 std::string inputECALHitCollName_;
65
66}; // HcalWABVetoProcessor
67} // namespace hcal
68
69#endif // HCAL_HcalWABVetoProcessor_H_
Base classes for all user event processing components to extend.
Class that stores cluster information from the ECal.
Class that stores Stores reconstructed hit information from the HCAL.
Class used to encapsulate the results obtained from HcalVetoProcessor.
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
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.