Package org.jlab.clas.fastmc
Class Clas12FastMC
java.lang.Object
org.jlab.clas.fastmc.Clas12FastMC
- Author:
- gavalian
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classInternal class to keep requirements for given detectors.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionClas12FastMC(double torusScale, double solenoidScale) constructor initialized part Monte-Carlo module module. arguments given are field strengths for torus and solenoid magnets.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddDetector(String name, Detector detector) adds a detector to fast MC check list. with given cuts for each detector.voidadd a detector filter for accepting particles, the filter will be applied only to particles with specified charge, and the arrays indicate the detector names and minimum number of hits for given detector. for example: addFilter(-1,new String[]{"DC","EC"},new int[]{36,9}); will require for negative particle to have minimum of 36 hits in DC and minimum of 9 hits in EC to be accepted.voidaddResolutionFunc(int pid, IParticleResolution res) booleancheckParticle(Particle part) Swims particle through magnetic field and checks if all detector requirements are passed. returns false if any detector cut required is not satisfied.getDetectorResponses(Particle part) getEvent(PhysicsEvent event) voidsetDebugMode(int mode) set debug mode to control printout of the fast MC.voidsetSmearing(boolean isSmeared) voidshow()void
- 
Field Details- 
isSmearedpublic boolean isSmeared
 
- 
- 
Constructor Details- 
Clas12FastMCpublic Clas12FastMC(double torusScale, double solenoidScale) constructor initialized part Monte-Carlo module module. arguments given are field strengths for torus and solenoid magnets. The scale value -1.0 is for in-bending configuration and +1.0 for out-bending.- Parameters:
- torusScale- scale of the torus field relative to nominal
- solenoidScale- scale of the solenoid field relative to nominal
 
 
- 
- 
Method Details- 
setSmearingpublic void setSmearing(boolean isSmeared) 
- 
addResolutionFunc
- 
addDetectoradds a detector to fast MC check list. with given cuts for each detector.- Parameters:
- name-
- detector- CLAS12 detector defined in geometry package
 
- 
addFilteradd a detector filter for accepting particles, the filter will be applied only to particles with specified charge, and the arrays indicate the detector names and minimum number of hits for given detector. for example: addFilter(-1,new String[]{"DC","EC"},new int[]{36,9}); will require for negative particle to have minimum of 36 hits in DC and minimum of 9 hits in EC to be accepted. Many filters can be added to the fast MC module, and they work as OR. Particles can be detected in different detectors with different hit numbers, and as long as one filter works for particle with given charge, the particle will be accepted.- Parameters:
- charge-
- d-
- res-
 
- 
setDebugModepublic void setDebugMode(int mode) set debug mode to control printout of the fast MC.- Parameters:
- mode-
 
- 
checkParticleSwims particle through magnetic field and checks if all detector requirements are passed. returns false if any detector cut required is not satisfied.- Parameters:
- part-
- Returns:
 
- 
getEvent
- 
getDetectorResponses
- 
showDetectorResponses
- 
showpublic void show()
 
-