test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
14 XERCES_CPP_NAMESPACE_USE
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  virtual ~ProcCount();
27 
28  virtual void configure(DOMElement *elem) override;
29  virtual Calibration::VarProcessor *getCalibration() const override;
30 
31  private:
32  std::vector<double> neutrals;
33 };
34 
35 static 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
static Interceptor::Registry registry("Interceptor")