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 // $Id: TotemTestGem.h,v 1.1 2006/05/17 16:18:57 sunanda Exp $
20 //
21 
22 // system include files
23 #include <iostream>
24 #include <memory>
25 #include <vector>
26 #include <string>
27 
28 // user include files
35 
38 
39 class G4Step;
40 
41 class TotemTestGem : public SimProducer,
42  public Observer<const BeginOfEvent *>,
43  public Observer<const EndOfEvent *> {
44 
45 public:
46 
48  virtual ~TotemTestGem();
49 
50  virtual void produce(edm::Event&, const edm::EventSetup&);
51 
52 private:
53  // observer classes
54  void update(const BeginOfEvent * evt);
55  void update(const EndOfEvent * evt);
56 
57  void clear();
59 
60 private:
61 
62  //Keep parameters and internal memory
63  std::vector<std::string> names;
64  int evtnum;
65  std::vector<TotemG4Hit*> hits;
66 
67 };
68 
69 #endif
void fillEvent(TotemTestHistoClass &)
virtual void produce(edm::Event &, const edm::EventSetup &)
Definition: TotemTestGem.cc:55
void update(const BeginOfEvent *evt)
This routine will be called when the appropriate signal arrives.
Definition: TotemTestGem.cc:62
std::vector< std::string > names
Definition: TotemTestGem.h:63
std::vector< TotemG4Hit * > hits
Definition: TotemTestGem.h:65
TotemTestGem(const edm::ParameterSet &p)
Definition: TotemTestGem.cc:39
virtual ~TotemTestGem()
Definition: TotemTestGem.cc:48