CMS 3D CMS Logo

ProcCount.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <vector>
3 #include <string>
4 
5 #include <xercesc/dom/DOM.hpp>
6 
8 
10 
13 
15 
16 using namespace PhysicsTools;
17 
18 namespace { // anonymous
19 
20 class ProcCount : public TrainProcessor {
21  public:
23 
24  ProcCount(const char *name, const AtomicId *id,
25  MVATrainer *trainer);
26  ~ProcCount() override;
27 
28  void configure(DOMElement *elem) override;
29  Calibration::VarProcessor *getCalibration() const override;
30 
31  private:
32  std::vector<double> neutrals;
33 };
34 
35 ProcCount::Registry registry("ProcCount");
36 
37 ProcCount::ProcCount(const char *name, const AtomicId *id,
38  MVATrainer *trainer) :
39  TrainProcessor(name, id, trainer)
40 {
41 }
42 
43 ProcCount::~ProcCount()
44 {
45 }
46 
47 void ProcCount::configure(DOMElement *elem)
48 {
49  trained = true;
50 }
51 
52 Calibration::VarProcessor *ProcCount::getCalibration() const
53 {
54  return new Calibration::ProcCount;
55 }
56 
57 } // anonymous namespace
template to generate a registry singleton for a type.
Cheap generic unique keyword identifier class.
Definition: AtomicId.h:31
def elem(elemtype, innerHTML='', html_class='', kwargs)
Definition: HTMLExport.py:18
static Interceptor::Registry registry("Interceptor")