CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RHStopTracer.h
Go to the documentation of this file.
2 
5 
6 
7 #include <boost/regex.hpp>
8 
9 class BeginOfRun;
10 class BeginOfEvent;
11 class BeginOfTrack;
12 class EndOfTrack;
13 class G4Step;
14 
15 class RHStopTracer : public SimProducer,
16  public Observer<const BeginOfRun *>,
17  public Observer<const BeginOfEvent *>,
18  public Observer<const BeginOfTrack *>,
19  public Observer<const EndOfTrack *>
20 {
21  public:
23  virtual ~RHStopTracer();
24  void update(const BeginOfRun *);
25  void update(const BeginOfEvent *);
26  void update(const BeginOfTrack *);
27  void update(const EndOfTrack *);
28  void produce(edm::Event&, const edm::EventSetup&);
29  private:
30  struct StopPoint {
31  StopPoint (const std::string& fName, double fX, double fY, double fZ, double fT)
32  : name(fName), x(fX), y(fY), z(fZ), t(fT)
33  {}
35  double x;
36  double y;
37  double z;
38  double t;
39  };
40  bool mDebug;
42  double mTraceEnergy;
44  std::vector <StopPoint> mStopPoints;
45  bool matched (const std::string& fName) const;
46 };
StopPoint(const std::string &fName, double fX, double fY, double fZ, double fT)
Definition: RHStopTracer.h:31
void update(const BeginOfRun *)
This routine will be called when the appropriate signal arrives.
Definition: RHStopTracer.cc:38
bool matched(const std::string &fName) const
Definition: RHStopTracer.cc:94
boost::regex mTraceParticleNameRegex
Definition: RHStopTracer.h:43
virtual ~RHStopTracer()
Definition: RHStopTracer.cc:35
double mTraceEnergy
Definition: RHStopTracer.h:42
RHStopTracer(edm::ParameterSet const &p)
Definition: RHStopTracer.cc:17
void produce(edm::Event &, const edm::EventSetup &)
Definition: RHStopTracer.cc:98
bool mStopRegular
Definition: RHStopTracer.h:41
std::vector< StopPoint > mStopPoints
Definition: RHStopTracer.h:44