|Message: Particle Hit Question (Novice Level)||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
I am working on a Cerenkov simulation that uses Cerenkov electrons to set a beam of photons towards a set of 4 mirrors and reflect into PMTs. I also have a metal plane positioned in front of the four mirrors that photons can either pass through or kill, presuming I make the threshold energy for the photons to be killed high enough. The plane I have in front of the 4 mirrors is drawn as follows:
G4double Plane_x = 4.0*m; G4double Plane_y = 4.0*m; G4double Plane_z = 0.25*m;
G4Box* MirPlane = new G4Box("MirPlane",Plane_x,Plane_y,Plane_z);
G4LogicalVolume *logicMirPlane; logicMirPlane = new G4LogicalVolume( solidCerMirPlane , Cu , "MirPlane", 0 , 0 , 0 );
G4double planeposX = 0; G4double planeposY = 0; G4double planeposZ = -MirrRadii * cos( MirrTiltAngle ) + MirrZpos + 1.0 *cm ;
G4VPhysicalVolume *physMirPlane; physMirPlane = new G4PVPlacement( 0 , G4ThreeVector( planeposX , planeposY, planeposZ ), logicMirPlane , "plane" , logicCerMirPlane , false , 0 );
Now, I was wondering if anyone knew how to create program code that causes all photons that pass through this plane to be "killed" and then records and prints out all of the photons that pass through this plane. I was under the impression that you can set up an arbitrarily determined plane, as I have here to be placed in front of 4 Cerenkov mirrors, and have all photons that pass through it be "killed" and for all photons killed in the plane to be recorded.
I also cannot recall offhand the code needed for geant4 to record all photons that enter the PMTs-this is after the plane is removed, the goal is to compare the number of photons collected by the PMTs to the # of photons passing through the plane in front of the mirror. So if anyone has the code for recording all photons that enter the PMTs and printing it, that would be appreciated.
Thanks for providing this forum.
|Inline Depth:||Outline Depth:||Add message:|