6.5.2011 Kamil Sedlak
1) Adding/improving the simulation of light signals and APD 2) Many small changes and improvements 3) Adding manual to musrSimAna to the svn repository 4) Adding some example files for musrSim
This commit is contained in:
@@ -35,13 +35,22 @@ class signalInfo {
|
||||
public:
|
||||
signalInfo(G4int id, G4int nP, G4double tFirst,
|
||||
G4double tA, G4double tB, G4double tC, G4double tD, G4double tE, G4double tLast,
|
||||
G4double tCFD, G4double aCFD) {
|
||||
detID=id; nPhot=nP; timeFirst=tFirst;
|
||||
timeA=tA; timeB=tB; timeC=tC; timeD=tD; timeE=tE; timeLast=tLast;
|
||||
timeCFD=tCFD; amplCFD=aCFD;}
|
||||
G4double tCFD, G4double aCFD, G4double tCFDarray[1000])
|
||||
{
|
||||
detID=id; nPhot=nP; timeFirst=tFirst;
|
||||
timeA=tA; timeB=tB; timeC=tC; timeD=tD; timeE=tE; timeLast=tLast;
|
||||
timeCFD=tCFD; amplCFD=aCFD;
|
||||
if (musrRootOutput::store_odet_timeCFDarray) {for(int i=0;i<1000;i++) {timeCFDarray[i]=tCFDarray[i];}}
|
||||
}
|
||||
~signalInfo() {}
|
||||
void transferDataToRoot(musrRootOutput* myRootOut, G4int nn) {
|
||||
myRootOut->SetOPSAinfo(nn,detID,nPhot,timeFirst,timeA,timeB,timeC,timeD,timeE,timeLast,timeCFD,amplCFD);
|
||||
for (Int_t kk=0; kk<13; kk++) {
|
||||
for (Int_t ll=0; ll<5; ll++) {
|
||||
int index = (ll+1)*100+kk;
|
||||
myRootOut -> SetCFDSpecialInfo(index,timeCFDarray[index]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -59,6 +68,7 @@ class signalInfo {
|
||||
G4double timeLast;
|
||||
G4double timeCFD;
|
||||
G4double amplCFD;
|
||||
G4double timeCFDarray[1000];
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -95,6 +105,7 @@ class musrScintSD : public G4VSensitiveDetector
|
||||
void ProcessOpticalPhoton(G4Step*);
|
||||
void EndOfEvent_OptiacalPhotons();
|
||||
void ReadInPulseShapeArray(const char* filename);
|
||||
void FindCFDtime(G4double& OPSA_CFD_time, G4double& OPSA_CFD_ampl, G4double timeOfFirstPhoton);
|
||||
G4int FindAPDcellID(G4Step* aStep);
|
||||
void SetAPDcellSizes(G4int nx, G4int ny, G4int nz, G4double half_ax, G4double half_ay, G4double half_az) {
|
||||
APDcellsEffectRequested = true;
|
||||
|
||||
Reference in New Issue
Block a user