Message: RE: Parameterised Volume as sensitive detector : doesn't work :-( Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None RE: Parameterised Volume as sensitive detector : doesn't work :-( 

Forum: Hits, Digitization and Pileup
Re: Sad Parameterised Volume as sensitive detector : doesn't work :-( (roccaz)
Re: None RE: Parameterised Volume as sensitive detector : doesn't work :-( (Makoto Asai)
Date: 07 Nov, 2007
From: <Jerome.ROCCAZ@CEA.FR>

I did it and ... nothing is written as output when I "declare" the cristal as sensitive detector. What can be wrong in my code? :-(

-----Message d'origine-----
De : asai@slac.stanford.edu [mailto:asai@slac.stanford.edu] 
Envoyé : mardi 6 novembre 2007 17:07
À : PublicHyperNews@slac.stanford.edu
Objet : RE: Parameterised Volume as sensitive detector : doesn't work :-(

*** Discussion title: Hits, Digitization and Pileup
Email replies to PublicHyperNews@slac.stanford.edu must include:
  In-Reply-To: <274E6BE39062274CAF5C7153C839FD04024D35C6@exch-mail1.win.slac.stanford.edu>
  Subject: ...change this to be about your reply.

Hi,

 Could you add a simple G4cout in the first line of ProcessHit()
method of your "SimpleSD" to confirm your sensitive detector
is actually invoked?

Makoto 

> -----Original Message-----
> From: roccaz [mailto:jerome.roccaz@cea.fr] 
> Sent: Tuesday, November 06, 2007 7:02 AM
> To: publichypernews
> Subject: Parameterised Volume as sensitive detector : doesn't work :-(
> 
> *** Discussion title: Hits, Digitization and Pileup
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <"/hitsdigits/182"@geant4-hn.slac.stanford.edu>
>   Subject: ...change this to be about your reply.
> 
> Well, another problem with my parameterised germanium 
> cristal. I set it
> as sensitive detector : nothing wrong while compiling, geometry looks
> good while visualising it ... but no hits in the ouput file.
> 
> When I set another part of my detector (the endcap for ex.) I 
> have hits.
> I've checked that the logical volume associated to the parameterised
> volume has the right dimensions (parameterised volume contained within
> the logical volume) so I don't understand where I did it 
> wrong. Here is
> a part of the script, if it helps :
> 
>   // Cristal germanium
> 
>   G4double Rmin=0.*mm;
>   G4double Rmax=30.5*mm;
>   G4double Dz=26.5*mm;
>   phiStart=0.*deg;
>   phiTotal=360.*deg;
> 
>   G4VSolid* cristalGe=new 
> G4Tubs("cristalGe",Rmin,Rmax,Dz,phiStart,phiTotal);
>   logicCristal=new G4LogicalVolume(cristalGe, Ge, 
> "logicCristal", 0, 0, 0);
>   G4VPVParameterisation* Param_Cristal=new 
> BottomParameterisation(802,13.5*mm,0.01*mm);
>   physiCristal=new 
> G4PVParameterised("Cristal",logicCristal,logicSupAlu,kZAxis,80
> 2,Param_Cristal); 
> 
>   G4VisAttributes* CristalVisAtt=new 
> G4VisAttributes(G4Colour::Yellow());
>   logicCristal->SetVisAttributes(CristalVisAtt);
> 
>   //Sensitive Detector
> 
>   G4SDManager* SDman=G4SDManager::GetSDMpointer();
> 
>   G4String simpleSDname="GeSD";
>   aGeSD=new SimpleSD(simpleSDname);
>   SDman->AddNewDetector(aGeSD);
>   logicCristal->SetSensitiveDetector(aGeSD);
> 
>   return physiWorld;
> 
> thanks,
> 


Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "RE: Parameterised Volume as sensitive detector : doesn't work :-("

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]