CMS 3D CMS Logo

PiZeroTask.h
Go to the documentation of this file.
1 #ifndef DQM_EcalMonitorTasks_PiZeroTask_H
2 #define DQM_EcalMonitorTasks_PiZeroTask_H
3 
6 
12 
13 #include "TVector3.h"
14 
15 namespace ecaldqm {
16 
17  class PiZeroTask : public DQWorkerTask {
18  public:
19  PiZeroTask();
20  ~PiZeroTask() override = default;
21 
22  bool filterRunType(short const*) override;
23  bool analyze(void const*, Collections) override;
25 
26  private:
27  void setParams(edm::ParameterSet const&) override;
28 
29  static const int MAXCLUS = 2000;
30  static const int MAXPI0S = 200;
31 
32  // Parameters needed for pi0 finding
34 
35  double clusSeedThr_;
38 
43  double selePtPi0_;
44  double selePi0Iso_;
49 
51  };
52 
53  inline bool PiZeroTask::analyze(void const* collection_data, Collections collection) {
54  switch (collection) {
55  case kEBRecHit:
56  if (collection_data)
57  runOnEBRecHits(*static_cast<EcalRecHitCollection const*>(collection_data));
58  return true;
59  case kEERecHit: // This module does not run on EERecHits
60  break;
61  default:
62  break;
63  }
64 
65  return false;
66  }
67 
68 } // namespace ecaldqm
69 
70 #endif
bool analyze(void const *, Collections) override
Definition: PiZeroTask.h:53
double selePtGammaOne_
Definition: PiZeroTask.h:39
double selePtGammaTwo_
Definition: PiZeroTask.h:40
bool filterRunType(short const *) override
Definition: PiZeroTask.cc:44
void setParams(edm::ParameterSet const &) override
Definition: PiZeroTask.cc:22
double selePi0BeltDeta_
Definition: PiZeroTask.h:46
edm::ParameterSet posCalcParameters_
Definition: PiZeroTask.h:50
void runOnEBRecHits(EcalRecHitCollection const &)
Definition: PiZeroTask.cc:55
~PiZeroTask() override=default
static const int MAXPI0S
Definition: PiZeroTask.h:30
double seleS4S9GammaOne_
Definition: PiZeroTask.h:41
double seleXtalMinEnergy_
Definition: PiZeroTask.h:33
static const int MAXCLUS
Definition: PiZeroTask.h:29
double seleMinvMinPi0_
Definition: PiZeroTask.h:48
double seleMinvMaxPi0_
Definition: PiZeroTask.h:47
double seleS4S9GammaTwo_
Definition: PiZeroTask.h:42