CMS 3D CMS Logo

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, public Observer<const BeginOfEvent *>, public Observer<const EndOfEvent *> {
41 public:
43  ~TotemTestGem() override;
44 
45  void produce(edm::Event &, const edm::EventSetup &) override;
46 
47 protected:
48  // observer classes
49  void update(const BeginOfEvent *evt) override;
50  void update(const EndOfEvent *evt) override;
51 
52 private:
53  void clear();
55 
56 private:
57  //Keep parameters and internal memory
58  std::vector<std::string> names;
59  int evtnum;
60  std::vector<TotemG4Hit *> hits;
61 };
62 
63 #endif
TotemTestGem::hits
std::vector< TotemG4Hit * > hits
Definition: TotemTestGem.h:60
TotemTestGem::TotemTestGem
TotemTestGem(const edm::ParameterSet &p)
Definition: TotemTestGem.cc:38
Observer
Definition: Observer.h:23
TotemTestGem::clear
void clear()
Definition: TotemTestGem.cc:114
BeginOfJob.h
TotemTestGem::~TotemTestGem
~TotemTestGem() override
Definition: TotemTestGem.cc:46
SimProducer.h
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
EndOfEvent.h
TotemTestGem::fillEvent
void fillEvent(TotemTestHistoClass &)
Definition: TotemTestGem.cc:93
Observer.h
TotemTestGem::update
void update(const BeginOfEvent *evt) override
This routine will be called when the appropriate signal arrives.
Definition: TotemTestGem.cc:58
EndOfEvent
Definition: EndOfEvent.h:6
TotemTestGem
Definition: TotemTestGem.h:40
edm::ParameterSet
Definition: ParameterSet.h:36
SimProducer
Definition: SimProducer.h:64
BeginOfEvent.h
BeginOfEvent
Definition: BeginOfEvent.h:6
edm::EventSetup
Definition: EventSetup.h:57
TotemTestGem::evtnum
int evtnum
Definition: TotemTestGem.h:59
TotemG4Hit.h
TotemTestHistoClass.h
ParameterSet.h
TotemTestHistoClass
Definition: TotemTestHistoClass.h:26
edm::Event
Definition: Event.h:73
TotemTestGem::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: TotemTestGem.cc:52
TotemTestGem::names
std::vector< std::string > names
Definition: TotemTestGem.h:58