Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:13

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 //
0028 // Trajectory filter model factories creating filters
0029 // and associated messengers.
0030 //
0031 // Jane Tinslay March 2006
0032 //
0033 #ifndef G4TRAJECTORYFILTERFACTORIES_HH
0034 #define G4TRAJECTORYFILTERFACTORIES_HH
0035 
0036 #include "G4VFilter.hh"
0037 #include "G4VModelFactory.hh"
0038 #include "G4VTrajectory.hh"
0039 
0040 // Attribute filter
0041 class G4TrajectoryAttributeFilterFactory : public G4VModelFactory< G4VFilter<G4VTrajectory>  > {
0042 
0043 public: // With description
0044 
0045   typedef std::vector<G4UImessenger*> Messengers;
0046   typedef std::pair< G4VFilter<G4VTrajectory> *, Messengers > ModelAndMessengers;
0047 
0048   G4TrajectoryAttributeFilterFactory();
0049 
0050   virtual ~G4TrajectoryAttributeFilterFactory();
0051   
0052   ModelAndMessengers Create(const G4String& placement, const G4String& name);
0053     
0054 };
0055 
0056 // Charge filter
0057 class G4TrajectoryChargeFilterFactory : public G4VModelFactory< G4VFilter<G4VTrajectory>  > {
0058 
0059 public: // With description
0060 
0061   typedef std::vector<G4UImessenger*> Messengers;
0062   typedef std::pair< G4VFilter<G4VTrajectory> *, Messengers > ModelAndMessengers;
0063 
0064   G4TrajectoryChargeFilterFactory();
0065 
0066   virtual ~G4TrajectoryChargeFilterFactory();
0067   
0068   ModelAndMessengers Create(const G4String& placement, const G4String& name);
0069     
0070 };
0071 
0072 // Particle filter
0073 class G4TrajectoryParticleFilterFactory : public G4VModelFactory< G4VFilter<G4VTrajectory>  > {
0074 
0075 public: // With description
0076 
0077   typedef std::vector<G4UImessenger*> Messengers;
0078   typedef std::pair< G4VFilter<G4VTrajectory> *, Messengers > ModelAndMessengers;
0079 
0080   G4TrajectoryParticleFilterFactory();
0081 
0082   virtual ~G4TrajectoryParticleFilterFactory();
0083   
0084   ModelAndMessengers Create(const G4String& placement, const G4String& name);
0085     
0086 };
0087 
0088 // Origin volume filter
0089 class G4TrajectoryOriginVolumeFilterFactory : public G4VModelFactory< G4VFilter<G4VTrajectory>  > {
0090 
0091 public: // With description
0092 
0093   typedef std::vector<G4UImessenger*> Messengers;
0094   typedef std::pair< G4VFilter<G4VTrajectory> *, Messengers > ModelAndMessengers;
0095 
0096   G4TrajectoryOriginVolumeFilterFactory();
0097 
0098   virtual ~G4TrajectoryOriginVolumeFilterFactory();
0099 
0100   ModelAndMessengers Create(const G4String& placement, const G4String& name);
0101 
0102 };
0103 
0104 // Encountered volume filter
0105 class G4TrajectoryEncounteredVolumeFilterFactory : public G4VModelFactory< G4VFilter<G4VTrajectory>  > {
0106 
0107 public: // With description
0108 
0109   typedef std::vector<G4UImessenger*> Messengers;
0110   typedef std::pair< G4VFilter<G4VTrajectory> *, Messengers > ModelAndMessengers;
0111 
0112   G4TrajectoryEncounteredVolumeFilterFactory();
0113 
0114   virtual ~G4TrajectoryEncounteredVolumeFilterFactory();
0115 
0116   ModelAndMessengers Create(const G4String& placement, const G4String& name);
0117 
0118 };
0119 
0120 
0121 #endif
0122