CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TotemTestGem.h
Go to the documentation of this file.
1 #ifndef Forward_TotemTestGem_h
2 #define Forward_TotemTestGem_h 1
3 // -*- C++ -*-
4 //
5 // Package: Forward
6 // Class : TotemTestGem
7 //
16 //
17 // Original Author:
18 // Created: Tue May 16 10:14:34 CEST 2006
19 //
20 
21 // system include files
22 #include <iostream>
23 #include <memory>
24 #include <vector>
25 #include <string>
26 
27 // user include files
34 
37 
38 class G4Step;
39 
40 class TotemTestGem : public SimProducer,
41  public Observer<const BeginOfEvent *>,
42  public Observer<const EndOfEvent *> {
43 
44 public:
45 
47  virtual ~TotemTestGem();
48 
49  virtual void produce(edm::Event&, const edm::EventSetup&);
50 
51 private:
52  // observer classes
53  void update(const BeginOfEvent * evt);
54  void update(const EndOfEvent * evt);
55 
56  void clear();
58 
59 private:
60 
61  //Keep parameters and internal memory
62  std::vector<std::string> names;
63  int evtnum;
64  std::vector<TotemG4Hit*> hits;
65 
66 };
67 
68 #endif
void fillEvent(TotemTestHistoClass &)
virtual void produce(edm::Event &, const edm::EventSetup &)
Definition: TotemTestGem.cc:54
void update(const BeginOfEvent *evt)
This routine will be called when the appropriate signal arrives.
Definition: TotemTestGem.cc:61
std::vector< std::string > names
Definition: TotemTestGem.h:62
std::vector< TotemG4Hit * > hits
Definition: TotemTestGem.h:64
TotemTestGem(const edm::ParameterSet &p)
Definition: TotemTestGem.cc:38
virtual ~TotemTestGem()
Definition: TotemTestGem.cc:47