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, int fId, double fMass, double fCharge)
32  : name(fName), x(fX), y(fY), z(fZ), t(fT), id(fId), mass(fMass), charge(fCharge)
33  {}
35  double x;
36  double y;
37  double z;
38  double t;
39  int id;
40  double mass;
41  double charge;
42  };
44  double mTraceEnergy;
46  std::vector <StopPoint> mStopPoints;
47  bool matched (const std::string& fName) const;
48 };
void update(const BeginOfRun *)
This routine will be called when the appropriate signal arrives.
Definition: RHStopTracer.cc:39
bool matched(const std::string &fName) const
Definition: RHStopTracer.cc:92
boost::regex mTraceParticleNameRegex
Definition: RHStopTracer.h:45
StopPoint(const std::string &fName, double fX, double fY, double fZ, double fT, int fId, double fMass, double fCharge)
Definition: RHStopTracer.h:31
virtual ~RHStopTracer()
Definition: RHStopTracer.cc:36
double mTraceEnergy
Definition: RHStopTracer.h:44
RHStopTracer(edm::ParameterSet const &p)
Definition: RHStopTracer.cc:18
void produce(edm::Event &, const edm::EventSetup &)
Definition: RHStopTracer.cc:96
bool mStopRegular
Definition: RHStopTracer.h:43
std::vector< StopPoint > mStopPoints
Definition: RHStopTracer.h:46