Belle II Software  release-06-01-15
DQMHistAnalysisECLShapers.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 #ifdef _BELLE2_EPICS
12 // EPICS
13 #include "cadef.h"
14 #endif
15 
16 //DQM
17 #include <dqm/analysis/modules/DQMHistAnalysis.h>
18 
19 //std
20 #include <set>
21 
22 //ECL
23 #include <ecl/dbobjects/ECLChannelMap.h>
24 
25 namespace Belle2 {
37  public:
38 
41 
44 
46  virtual void initialize() override;
48  virtual void beginRun() override;
50  virtual void event() override;
52  virtual void endRun() override;
54  virtual void terminate() override;
55 
56  private:
57 
59  bool m_useEpics;
60 
62  const static int c_collector_count = ECL::ECL_CRATES;
63 
65  double robust_max(std::multiset<double> values);
66 
67 #ifdef _BELLE2_EPICS
69  chid chid_logic[c_collector_count];
71  chid chid_pedwidth[4];
72 #endif
73  };
75 } // end namespace Belle2
76 
This module is for analysis of ECL DQM histograms.
DQMHistAnalysisECLShapersModule()
< derived from DQMHistAnalysisModule class.
virtual void initialize() override
Initialize the module.
virtual void event() override
Event processor.
virtual void endRun() override
Call when a run ends.
virtual void terminate() override
Terminate.
double robust_max(std::multiset< double > values)
Remove upper 10% of the values, return the maximum in the remaining 90%.
virtual void beginRun() override
Call when a run begins.
static const int c_collector_count
Number of ECLCollector modules (normally 52)
The base class for the histogram analysis module.
Abstract base class for different kinds of events.