#include <TVirtualMC.h>
#include <TGeoManager.h>
#include <TGeoMatrix.h>
+#include <TGeoTube.h>
#include <TGeoCone.h>
#include <TGeoShape.h>
+#include <TGeoScaledShape.h>
#include <TGeoCompositeShape.h>
#include <TParticle.h>
fMedSensGR(0),
fMedSensPI(0),
fMedSensTDI(0),
+ fMedSensVColl(0),
+ fMedSensLumi(0),
fNalfan(0),
fNalfap(0),
fNben(0),
fZEMLength(0),
fpLostITC(0),
fpLostD1C(0),
+ fpcVCollC(0),
fpDetectedC(0),
fnDetectedC(0),
fpLostITA(0),
fpLostD1A(0),
fpLostTDI(0),
+ fpcVCollA(0),
fpDetectedA(0),
- fnDetectedA(0)
+ fnDetectedA(0),
+ fVCollSideCAperture(7./2.),
+ fVCollSideCCentreY(0.),
+ fVCollSideAAperture(7./2.),
+ fVCollSideACentreY(0.),
+ fLumiLength(15.)
{
//
// Default constructor for Zero Degree Calorimeter
fMedSensGR(0),
fMedSensPI(0),
fMedSensTDI(0),
+ fMedSensVColl(0),
+ fMedSensLumi(0),
fNalfan(90),
fNalfap(90),
fNben(18),
fZEMLength(0),
fpLostITC(0),
fpLostD1C(0),
+ fpcVCollC(0),
fpDetectedC(0),
fnDetectedC(0),
fpLostITA(0),
fpLostD1A(0),
fpLostTDI(0),
+ fpcVCollA(0),
fpDetectedA(0),
- fnDetectedA(0)
+ fnDetectedA(0),
+ fVCollSideCAperture(7./2.),
+ fVCollSideCCentreY(0.),
+ fVCollSideAAperture(7./2.),
+ fVCollSideACentreY(0.),
+ fLumiLength(15.)
{
//
// Standard constructor for Zero Degree Calorimeter
fDimZP[1] = 6.;
fDimZP[2] = 75.;
fPosZNC[0] = 0.;
- fPosZNC[1] = 1.2;
+ fPosZNC[1] = 0.;
fPosZNC[2] = -11397.3;
fPosZPC[0] = 24.35;
fPosZPC[1] = 0.;
fPosZPC[2] = -11389.3;
fPosZNA[0] = 0.;
- fPosZNA[1] = 1.2;
+ fPosZNA[1] = 0.;
fPosZNA[2] = 11395.8;
fPosZPA[0] = 24.35;
fPosZPA[1] = 0.;
tubpar[0] = 18.6/2.;
tubpar[1] = 7.6/2.;
tubpar[2] = totLength1/2.;
- gMC->Gsvolu("QE01", "ELTU", idtmed[7], tubpar, 3);
+// gMC->Gsvolu("QE01", "ELTU", idtmed[7], tubpar, 3);
+ // temporary replace with a scaled tube (AG)
+ TGeoTube *tubeQE01 = new TGeoTube(0.,tubpar[0],tubpar[2]);
+ TGeoScale *scaleQE01 = new TGeoScale(1., tubpar[1]/tubpar[0], 1.);
+ TGeoScaledShape *sshapeQE01 = new TGeoScaledShape(tubeQE01, scaleQE01);
+ new TGeoVolume("QE01", sshapeQE01, gGeoManager->GetMedium(idtmed[7]));
tubpar[0] = 18.0/2.;
tubpar[1] = 7.0/2.;
tubpar[2] = totLength1/2.;
- gMC->Gsvolu("QE02", "ELTU", idtmed[10], tubpar, 3);
- gMC->Gspos("QE02", 1, "ZDCC", 0., 0., -tubpar[2]-zd1, 0, "ONLY");
+// gMC->Gsvolu("QE02", "ELTU", idtmed[10], tubpar, 3);
+ // temporary replace with a scaled tube (AG)
+ TGeoTube *tubeQE02 = new TGeoTube(0.,tubpar[0],tubpar[2]);
+ TGeoScale *scaleQE02 = new TGeoScale(1., tubpar[1]/tubpar[0], 1.);
+ TGeoScaledShape *sshapeQE02 = new TGeoScaledShape(tubeQE02, scaleQE02);
+ new TGeoVolume("QE02", sshapeQE02, gGeoManager->GetMedium(idtmed[10]));
+
+ gMC->Gspos("QE01", 1, "ZDCC", 0., 0., -tubpar[2]-zd1, 0, "ONLY");
gMC->Gspos("QE02", 1, "QE01", 0., 0., 0., 0, "ONLY");
// Ch.debug
- //printf(" QE02 ELTU from z = %1.2f to z= %1.2f\n",-zd1,-2*tubpar[2]-zd1);
+ //printf(" QE01 ELTU from z = %1.2f to z= %1.2f\n",-zd1,-2*tubpar[2]-zd1);
+
+ // Vertical collimator jaws (defined ONLY if fVCollAperture<3.5!)
+ if(fVCollSideCAperture<3.5){
+ boxpar[0] = 5.4/2.;
+ boxpar[1] = (3.5-fVCollSideCAperture-fVCollSideCCentreY-0.7)/2.;
+ if(boxpar[1]<0.) boxpar[1]=0.;
+ boxpar[2] = 124.4/2.;
+ printf("\n AliZDCv3 -> Setting SideC VCollimator jaw: aperture %1.2f center %1.2f mod.thickness %1.3f\n\n",
+ 2*fVCollSideCAperture,fVCollSideCCentreY,2*boxpar[1]);
+ gMC->Gsvolu("QCVC" , "BOX ", idtmed[13], boxpar, 3);
+ gMC->Gspos("QCVC", 1, "QE02", -boxpar[0], fVCollSideCAperture+fVCollSideCCentreY+boxpar[1], -totLength1/2.+160.8+78.+148./2., 0, "ONLY");
+ gMC->Gspos("QCVC", 2, "QE02", -boxpar[0], -fVCollSideCAperture+fVCollSideCCentreY-boxpar[1], -totLength1/2.+160.8+78.+148./2., 0, "ONLY");
+ }
zd1 += tubpar[2] * 2.;
TGeoCompositeShape *pOutTrousersC = new TGeoCompositeShape("outTrousersC", "QCLext:ZDCC_c1+QCLext:ZDCC_c2");
// Volume: QCLext
- TGeoMedium *medZDCFe = gGeoManager->GetMedium("ZDC_ZIRON");
+ TGeoMedium *medZDCFe = gGeoManager->GetMedium("ZDC_ZIRONT");
TGeoVolume *pQCLext = new TGeoVolume("QCLext",pOutTrousersC, medZDCFe);
pQCLext->SetLineColor(kGreen);
pQCLext->SetVisLeaves(kTRUE);
// -- Luminometer (Cu box) in front of ZN - side C
boxpar[0] = 8.0/2.;
boxpar[1] = 8.0/2.;
- boxpar[2] = 15./2.;
+ boxpar[2] = fLumiLength/2.;
gMC->Gsvolu("QLUC", "BOX ", idtmed[9], boxpar, 3);
gMC->Gspos("QLUC", 1, "ZDCC", 0., 0., fPosZNC[2]+66.+boxpar[2], 0, "ONLY");
//printf(" QLUC LUMINOMETER from z = %1.2f to z= %1.2f\n", fPosZNC[2]+66., fPosZNC[2]+66.+2*boxpar[2]);
tubpar[0] = 18.4/2.;
tubpar[1] = 7.4/2.;
tubpar[2] = 313.3/2.;
- gMC->Gsvolu("QA06", "ELTU", idtmed[7], tubpar, 3);
+// gMC->Gsvolu("QA06", "ELTU", idtmed[7], tubpar, 3);
+ // temporary replace with a scaled tube (AG)
+ TGeoTube *tubeQA06 = new TGeoTube(0.,tubpar[0],tubpar[2]);
+ TGeoScale *scaleQA06 = new TGeoScale(1., tubpar[1]/tubpar[0], 1.);
+ TGeoScaledShape *sshapeQA06 = new TGeoScaledShape(tubeQA06, scaleQA06);
+ new TGeoVolume("QA06", sshapeQA06, gGeoManager->GetMedium(idtmed[7]));
//printf(" QA06 TUBE from z = %1.2f to z= %1.2f\n",zd2,2*tubpar[2]+zd2);
tubpar[0] = 18.0/2.;
tubpar[1] = 7.0/2.;
tubpar[2] = 313.3/2.;
- gMC->Gsvolu("QA07", "ELTU", idtmed[10], tubpar, 3);
+// gMC->Gsvolu("QA07", "ELTU", idtmed[10], tubpar, 3);
+ // temporary replace with a scaled tube (AG)
+ TGeoTube *tubeQA07 = new TGeoTube(0.,tubpar[0],tubpar[2]);
+ TGeoScale *scaleQA07 = new TGeoScale(1., tubpar[1]/tubpar[0], 1.);
+ TGeoScaledShape *sshapeQA07 = new TGeoScaledShape(tubeQA07, scaleQA07);
+ new TGeoVolume("QA07", sshapeQA07, gGeoManager->GetMedium(idtmed[10]));
//printf(" QA07 TUBE from z = %1.2f to z= %1.2f\n",zd2,2*tubpar[2]+zd2);
gMC->Gspos("QA06", 1, "ZDCA", 0., 0., tubpar[2]+zd2, 0, "ONLY");
gMC->Gspos("QA07", 1, "QA06", 0., 0., 0., 0, "ONLY");
-
+
+ // Vertical collimator jaws (defined ONLY if fVCollAperture<3.5!)
+ if(fVCollSideAAperture<3.5){
+ boxpar[0] = 5.4/2.;
+ boxpar[1] = (3.5-fVCollSideAAperture-fVCollSideACentreY-0.7)/2.;
+ if(boxpar[1]<0.) boxpar[1]=0.;
+ boxpar[2] = 124.4/2.;
+ gMC->Gsvolu("QCVA" , "BOX ", idtmed[13], boxpar, 3);
+ gMC->Gspos("QCVA", 1, "QA07", -boxpar[0], fVCollSideAAperture+fVCollSideACentreY+boxpar[1], -313.3/2.+78.+148./2., 0, "ONLY");
+ gMC->Gspos("QCVA", 2, "QA07", -boxpar[0], -fVCollSideAAperture+fVCollSideACentreY-boxpar[1], -313.3/2.+78.+148./2., 0, "ONLY");
+ }
+
zd2 += 2.*tubpar[2];
// VCTCP second part: transition cone from ID=180 to ID=212.7
// -- Luminometer (Cu box) in front of ZN - side A
boxpar[0] = 8.0/2.;
boxpar[1] = 8.0/2.;
- boxpar[2] = 15./2.;
+ boxpar[2] = fLumiLength/2.;
gMC->Gsvolu("QLUA", "BOX ", idtmed[9], boxpar, 3);
gMC->Gspos("QLUA", 1, "ZDCA", 0., 0., fPosZNA[2]-66.-boxpar[2], 0, "ONLY");
//printf(" QLUA LUMINOMETER from z = %1.2f to z= %1.2f\n\n", fPosZNA[2]-66., fPosZNA[2]-66.-2*boxpar[2]);
// --- Lead
ubuf[0] = 1.12;
- AliMaterial(5, "LEAD", 207.19, 82., 11.35, .56, 18.5, ubuf, 1);
+ AliMaterial(5, "LEAD", 207.19, 82., 11.35, .56, 0., ubuf, 1);
// --- Copper (energy loss taken into account)
ubuf[0] = 1.10;
// --- Iron (no energy loss)
ubuf[0] = 1.1;
AliMaterial(8, "IRON1", 55.85, 26., 7.87, 1.76, 0., ubuf, 1);
+
+ // --- Tatalum
+ ubuf[0] = 1.1;
+ AliMaterial(13, "TANT", 183.84, 74., 19.3, 0.35, 0., ubuf, 1);
// ---------------------------------------------------------
Float_t aResGas[3]={1.008,12.0107,15.9994};
Float_t stmin = 0.01; // Min. value 4 max. step (cm)
Float_t stemax = 1.; // Max. step permitted (cm)
Float_t tmaxfd = 0.; // Maximum angle due to field (degrees)
+ Float_t tmaxfdv = 0.1; // Maximum angle due to field (degrees)
Float_t deemax = -1.; // Maximum fractional energy loss
Float_t nofieldm = 0.; // Max. field value (no field)
Float_t fieldm = 45.; // Max. field value (with field)
Int_t ifield =2; // IFIELD=2 -> magnetic field defined in AliMagFC.h
// *****************************************************
- AliMedium(1, "ZTANT", 1, isvolActive, inofld, nofieldm, tmaxfd, stemax, deemax, epsil, stmin);
+ AliMedium(1, "ZWALL", 1, isvolActive, inofld, nofieldm, tmaxfd, stemax, deemax, epsil, stmin);
AliMedium(2, "ZBRASS",2, isvolActive, inofld, nofieldm, tmaxfd, stemax, deemax, epsil, stmin);
AliMedium(3, "ZSIO2", 3, isvolActive, inofld, nofieldm, tmaxfd, stemax, deemax, epsil, stmin);
AliMedium(4, "ZQUAR", 3, isvolActive, inofld, nofieldm, tmaxfd, stemax, deemax, epsil, stmin);
AliMedium(8, "ZIRONN",8, isvol, inofld, nofieldm, tmaxfd, stemax, deemax, epsil, stmin);
AliMedium(9, "ZCOPL", 6, isvol, inofld, nofieldm, tmaxfd, stemax, deemax, epsil, stmin);
AliMedium(10,"ZVOID",10, isvol, inofld, nofieldm, tmaxfd, stemax, deemax, epsil, stmin);
- AliMedium(11,"ZVOIM",11, isvol, ifield, fieldm, tmaxfd, stemax, deemax, epsil, stmin);
+ AliMedium(11,"ZVOIM",11, isvol, ifield, fieldm, tmaxfdv, stemax, deemax, epsil, stmin);
AliMedium(12,"ZAIR", 12, isvolActive, inofld, nofieldm, tmaxfd, stemax, deemax, epsil, stmin);
-
+ AliMedium(13,"ZTANT",13, isvolActive, inofld, nofieldm, tmaxfd, stemax, deemax, epsil, stmin);
+ AliMedium(14, "ZIRONT", 7, isvol, inofld, nofieldm, tmaxfd, stemax, deemax, epsil, stmin);
}
{
InitTables();
Int_t *idtmed = fIdtmed->GetArray();
- Int_t i;
- // Thresholds for showering in the ZDCs
- i = 1; //Wa lloy
- gMC->Gstpar(idtmed[i], "CUTGAM", .001);
- gMC->Gstpar(idtmed[i], "CUTELE", .001);
- gMC->Gstpar(idtmed[i], "CUTNEU", .01);
- gMC->Gstpar(idtmed[i], "CUTHAD", .01);
- i = 2; //brass
- gMC->Gstpar(idtmed[i], "CUTGAM", .001);
- gMC->Gstpar(idtmed[i], "CUTELE", .001);
- gMC->Gstpar(idtmed[i], "CUTNEU", .01);
- gMC->Gstpar(idtmed[i], "CUTHAD", .01);
- i = 5; //lead
- gMC->Gstpar(idtmed[i], "CUTGAM", .001);
- gMC->Gstpar(idtmed[i], "CUTELE", .001);
- gMC->Gstpar(idtmed[i], "CUTNEU", .01);
- gMC->Gstpar(idtmed[i], "CUTHAD", .01);
-
- // Avoid too detailed showering in TDI
- i = 6; //copper
- gMC->Gstpar(idtmed[i], "CUTGAM", .1);
- gMC->Gstpar(idtmed[i], "CUTELE", .1);
- gMC->Gstpar(idtmed[i], "CUTNEU", 1.);
- gMC->Gstpar(idtmed[i], "CUTHAD", 1.);
-
- // Thresholds for showering in the luminometer
- i = 9; //copper
- gMC->Gstpar(idtmed[i], "CUTGAM", .001);
- gMC->Gstpar(idtmed[i], "CUTELE", .001);
- gMC->Gstpar(idtmed[i], "CUTNEU", .01);
- gMC->Gstpar(idtmed[i], "CUTHAD", .01);
-
- // Avoid too detailed showering along the beam line
- i = 7; //iron with energy loss (ZIRON)
- gMC->Gstpar(idtmed[i], "CUTGAM", .1);
- gMC->Gstpar(idtmed[i], "CUTELE", .1);
- gMC->Gstpar(idtmed[i], "CUTNEU", 1.);
- gMC->Gstpar(idtmed[i], "CUTHAD", 1.);
-
- // Avoid too detailed showering along the beam line
- i = 8; //iron without energy loss (ZIRONN)
- gMC->Gstpar(idtmed[i], "CUTGAM", .1);
- gMC->Gstpar(idtmed[i], "CUTELE", .1);
- gMC->Gstpar(idtmed[i], "CUTNEU", 1.);
- gMC->Gstpar(idtmed[i], "CUTHAD", 1.);
-
- // Avoid interaction in fibers (only energy loss allowed)
- i = 3; //fibers (ZSI02)
- gMC->Gstpar(idtmed[i], "DCAY", 0.);
- gMC->Gstpar(idtmed[i], "MULS", 0.);
- gMC->Gstpar(idtmed[i], "PFIS", 0.);
- gMC->Gstpar(idtmed[i], "MUNU", 0.);
- gMC->Gstpar(idtmed[i], "LOSS", 1.);
- gMC->Gstpar(idtmed[i], "PHOT", 0.);
- gMC->Gstpar(idtmed[i], "COMP", 0.);
- gMC->Gstpar(idtmed[i], "PAIR", 0.);
- gMC->Gstpar(idtmed[i], "BREM", 0.);
- gMC->Gstpar(idtmed[i], "DRAY", 0.);
- gMC->Gstpar(idtmed[i], "ANNI", 0.);
- gMC->Gstpar(idtmed[i], "HADR", 0.);
- i = 4; //fibers (ZQUAR)
- gMC->Gstpar(idtmed[i], "DCAY", 0.);
- gMC->Gstpar(idtmed[i], "MULS", 0.);
- gMC->Gstpar(idtmed[i], "PFIS", 0.);
- gMC->Gstpar(idtmed[i], "MUNU", 0.);
- gMC->Gstpar(idtmed[i], "LOSS", 1.);
- gMC->Gstpar(idtmed[i], "PHOT", 0.);
- gMC->Gstpar(idtmed[i], "COMP", 0.);
- gMC->Gstpar(idtmed[i], "PAIR", 0.);
- gMC->Gstpar(idtmed[i], "BREM", 0.);
- gMC->Gstpar(idtmed[i], "DRAY", 0.);
- gMC->Gstpar(idtmed[i], "ANNI", 0.);
- gMC->Gstpar(idtmed[i], "HADR", 0.);
-
- // Avoid interaction in void
- i = 11; //void with field
- gMC->Gstpar(idtmed[i], "DCAY", 0.);
- gMC->Gstpar(idtmed[i], "MULS", 0.);
- gMC->Gstpar(idtmed[i], "PFIS", 0.);
- gMC->Gstpar(idtmed[i], "MUNU", 0.);
- gMC->Gstpar(idtmed[i], "LOSS", 0.);
- gMC->Gstpar(idtmed[i], "PHOT", 0.);
- gMC->Gstpar(idtmed[i], "COMP", 0.);
- gMC->Gstpar(idtmed[i], "PAIR", 0.);
- gMC->Gstpar(idtmed[i], "BREM", 0.);
- gMC->Gstpar(idtmed[i], "DRAY", 0.);
- gMC->Gstpar(idtmed[i], "ANNI", 0.);
- gMC->Gstpar(idtmed[i], "HADR", 0.);
-
//
- fMedSensZN = idtmed[1]; // Sensitive volume: ZN passive material
- fMedSensZP = idtmed[2]; // Sensitive volume: ZP passive material
- fMedSensF1 = idtmed[3]; // Sensitive volume: fibres type 1
- fMedSensF2 = idtmed[4]; // Sensitive volume: fibres type 2
- fMedSensZEM = idtmed[5]; // Sensitive volume: ZEM passive material
- fMedSensTDI = idtmed[6]; // Sensitive volume: TDI Cu shield
- fMedSensPI = idtmed[7]; // Sensitive volume: beam pipes
- fMedSensGR = idtmed[12]; // Sensitive volume: air into the grooves
+ fMedSensZN = idtmed[1]; // Sensitive volume: ZN passive material
+ fMedSensZP = idtmed[2]; // Sensitive volume: ZP passive material
+ fMedSensF1 = idtmed[3]; // Sensitive volume: fibres type 1
+ fMedSensF2 = idtmed[4]; // Sensitive volume: fibres type 2
+ fMedSensZEM = idtmed[5]; // Sensitive volume: ZEM passive material
+ fMedSensTDI = idtmed[6]; // Sensitive volume: TDI Cu shield
+ fMedSensPI = idtmed[7]; // Sensitive volume: beam pipes
+ fMedSensLumi = idtmed[9]; // Sensitive volume: luminometer
+ fMedSensGR = idtmed[12]; // Sensitive volume: air into the grooves
+ fMedSensVColl = idtmed[13]; // Sensitive volume: collimator jaws
}
//_____________________________________________________________________________
Int_t j, vol[2]={0,0}, ibeta=0, ialfa=0, ibe=0, nphe=0;
Float_t hits[13], x[3], xdet[3], um[3], ud[3];
Float_t destep=0., be=0., out=0.;
- Double_t s[3], p[3];
+ Double_t s[3], p[4];
const char *knamed;
//
for(j=0;j<13;j++) hits[j]=-999.;
//
- // --- This part is for no shower developement in beam pipe and TDI
- // If particle interacts with beam pipe or TDI -> return
- if((gMC->CurrentMedium() == fMedSensPI) || (gMC->CurrentMedium() == fMedSensTDI)){
+ // --- This part is for no shower developement in beam pipe, TDI, VColl
+ // If particle interacts with beam pipe, TDI, VColl -> return
+ if(fNoShower==1 && ((gMC->CurrentMedium() == fMedSensPI) || (gMC->CurrentMedium() == fMedSensTDI) ||
+ (gMC->CurrentMedium() == fMedSensVColl || (gMC->CurrentMedium() == fMedSensLumi)))){
+
// If option NoShower is set -> StopTrack
+
Int_t ipr = 0;
- if(fNoShower==1){
gMC->TrackPosition(s[0],s[1],s[2]);
if(gMC->CurrentMedium() == fMedSensPI){
knamed = gMC->CurrentVolName();
}
else if(!strncmp(knamed,"QTD",3)) fpLostTDI += 1;
}
+ else if(gMC->CurrentMedium() == fMedSensVColl){
+ knamed = gMC->CurrentVolName();
+ if(!strncmp(knamed,"QCVC",4)) fpcVCollC++;
+ else if(!strncmp(knamed,"QCVA",4)) fpcVCollA++;
+ ipr=1;
+ }
//
//gMC->TrackMomentum(p[0], p[1], p[2], p[3]);
//printf("\t Particle: mass = %1.3f, E = %1.3f GeV, pz = %1.2f GeV -> stopped in volume %s\n",
// gMC->TrackMass(), p[3], p[2], gMC->CurrentVolName());
//
- /*if(ipr!=0){
+ if(ipr!=0){
printf("\n\t **********************************\n");
printf("\t ********** Side C **********\n");
- printf("\t # of spectators in IT = %d\n",fpLostITC);
- printf("\t # of spectators in D1 = %d\n",fpLostD1C);
+ printf("\t # of particles in IT = %d\n",fpLostITC);
+ printf("\t # of particles in D1 = %d\n",fpLostD1C);
+ printf("\t # of particles in VColl = %d\n",fpcVCollC);
printf("\t ********** Side A **********\n");
- printf("\t # of spectators in IT = %d\n",fpLostITA);
- printf("\t # of spectators in D1 = %d\n",fpLostD1A);
- printf("\t # of spectators in TDI = %d\n",fpLostTDI);
+ printf("\t # of particles in IT = %d\n",fpLostITA);
+ printf("\t # of particles in D1 = %d\n",fpLostD1A);
+ printf("\t # of particles in TDI = %d\n",fpLostTDI);
+ printf("\t # of particles in VColl = %d\n",fpcVCollA);
printf("\t **********************************\n");
- }*/
+ }
gMC->StopTrack();
- }
- return;
+ return;
}
-
if((gMC->CurrentMedium() == fMedSensZN) || (gMC->CurrentMedium() == fMedSensZP) ||
(gMC->CurrentMedium() == fMedSensGR) || (gMC->CurrentMedium() == fMedSensF1) ||
(gMC->CurrentMedium() == fMedSensF2) || (gMC->CurrentMedium() == fMedSensZEM)){
//Particle energy
gMC->TrackMomentum(p[0],p[1],p[2],p[3]);
hits[3] = p[3];
+
// Impact point on ZDC
// X takes into account the LHC x-axis sign
- // which is opposite to positive x on detcetor front face
+ // which is opposite to positive x on detector front face
// for side A detectors (ZNA and ZPA)
if(vol[0]==4 || vol[0]==5){
hits[4] = -xdet[0];
AddHit(curTrackN, vol, hits);
if(fNoShower==1){
- //printf("\t VolName %s -> det %d quad %d - x = %f, y = %f, z = %f\n",
- //knamed, vol[0], vol[1], x[0], x[1], x[2]);
if(vol[0]==1){
fnDetectedC += 1;
- printf(" # of particles in ZNC = %d\n\n",fnDetectedC);
+ if(fnDetectedC==1) printf(" ### Particle in ZNC\n\n");
}
else if(vol[0]==2){
fpDetectedC += 1;
- printf(" # of particles in ZPC = %d\n\n",fpDetectedC);
+ if(fpDetectedC==1) printf(" ### Particle in ZPC\n\n");
}
else if(vol[0]==4){
fnDetectedA += 1;
- printf(" # of particles in ZNA = %d\n\n",fnDetectedA);
+ if(fnDetectedA==1) printf(" ### Particle in ZNA\n\n");
}
else if(vol[0]==5){
fpDetectedA += 1;
- printf(" # of particles in ZPA = %d\n\n",fpDetectedA);
+ if(fpDetectedA==1) printf(" ### Particle in ZPA\n\n");
}
//
- //printf("\t Particle: mass = %1.3f, E = %1.3f GeV, pz = %1.2f GeV -> stopped in volume %s\n",
- // gMC->TrackMass(), p[3], p[2], gMC->CurrentVolName());
+ //printf("\t Pc: x %1.2f y %1.2f z %1.2f E %1.2f GeV pz = %1.2f GeV in volume %s\n",
+ // x[0],x[1],x[3],p[3],p[2],gMC->CurrentVolName());
//
gMC->StopTrack();
return;
}
ibe = Int_t(be*1000.+1);
- //if((vol[0]==1)) radius = fFibZN[1];
- //else if((vol[0]==2)) radius = fFibZP[1];
-
+
//Looking into the light tables
Float_t charge = gMC->TrackCharge();