Program Listing for File RestrictToRegion.h
↰ Return to documentation for file (include/crpropa/module/RestrictToRegion.h
)
#ifndef CRPROPA_RESTRICTTOREGION_H
#define CRPROPA_RESTRICTTOREGION_H
#include "crpropa/Referenced.h"
#include "crpropa/Candidate.h"
#include "crpropa/Module.h"
#include "crpropa/Geometry.h"
namespace crpropa {
class RestrictToRegion: public Module {
private:
ref_ptr<Surface> surface;
ref_ptr<Module> module;
public:
RestrictToRegion(Module* _module, Surface* _surface);
void process(Candidate *candidate) const;
std::string getDescription() const;
};
} // namespace crpropa
#endif // CRPROPA_RESTRICTTOREGION_H