}
//_____________________________________________________________________________
-void AliTRD::SetGasMix(Int_t imix = 0)
+void AliTRD::SetGasMix(Int_t imix)
{
if ((imix < 0) || (imix > 1)) {
}
//_____________________________________________________________________________
-void AliTRD::SetSensPlane(Int_t iplane = 0)
+void AliTRD::SetSensPlane(Int_t iplane)
{
if ((iplane < 0) || (iplane > 6)) {
}
//_____________________________________________________________________________
-void AliTRD::SetSensChamber(Int_t ichamber = 0)
+void AliTRD::SetSensChamber(Int_t ichamber)
{
if ((ichamber < 0) || (ichamber > 5)) {
}
//_____________________________________________________________________________
-void AliTRD::SetSensSector(Int_t isector = 0)
+void AliTRD::SetSensSector(Int_t isector)
{
if ((isector < 0) || (isector > 18)) {
Float_t par_nc[nparnc];
Float_t par_oc[nparoc];
+ Int_t icham;
+
Int_t *idtmed = gAlice->Idtmed();
AliMC* pMC = AliMC::GetMC();
// Definition of the chambers
Char_t ctagc[5], ctagi[5];
- for (Int_t icham = 1; icham <= ncham; ++icham) {
+ for (icham = 1; icham <= ncham; ++icham) {
// Carbon frame of the inner chambers (C)
par_ch[0] = widmi + (icham-1) * widdifc - frame;
pMC->Gsvolu("UT3I", "BOX ", idtmed[1308-1], par_ic, nparic);
// Xe/Isobutane layer (gasvolume)
par_ic[2] = xethick / 2.;
- for (Int_t icham = 1; icham <= 6; ++icham) {
+ for (icham = 1; icham <= 6; ++icham) {
sprintf(ctagc,"UXI%1d",icham);
pMC->Gsvolu(ctagc, "BOX ", idtmed[1309-1], par_ic, nparic);
}
pMC->Gsvolu("UT3N", "BOX ", idtmed[1308-1], par_nc, nparnc);
// Xe/Isobutane layer (gasvolume)
par_nc[2] = xethick / 2.;
- for (Int_t icham = 1; icham <= 6; ++icham) {
+ for (icham = 1; icham <= 6; ++icham) {
sprintf(ctagc,"UXN%1d",icham);
pMC->Gsvolu(ctagc, "BOX ", idtmed[1309-1], par_nc, nparnc);
}
pMC->Gsvolu("UT3O", "BOX ", idtmed[1308-1], par_oc, nparoc);
// Xe/Isobutane layer (gasvolume)
par_oc[2] = xethick / 2.;
- for (Int_t icham = 1; icham <= 6; ++icham) {
+ for (icham = 1; icham <= 6; ++icham) {
sprintf(ctagc,"UXO%1d",icham);
pMC->Gsvolu(ctagc, "BOX ", idtmed[1309-1], par_oc, nparoc);
}
pMC->Gspos("UT2I", 1, "UT1I", 0., 0., pezpos, 0, "ONLY");
pMC->Gspos("UT2N", 1, "UT1N", 0., 0., pezpos, 0, "ONLY");
pMC->Gspos("UT2O", 1, "UT1O", 0., 0., pezpos, 0, "ONLY");
- for (Int_t icham = 1; icham <= ncham; ++icham) {
+ for (icham = 1; icham <= ncham; ++icham) {
// The inner chambers
sprintf(ctagi,"UII%1d",icham);
sprintf(ctagc,"UXI%1d",icham);
}
// Position of the inner part of the chambers in the carbon-frames
- for (Int_t icham = 1; icham <= ncham; ++icham) {
+ for (icham = 1; icham <= ncham; ++icham) {
xpos = 0.;
ypos = 0.;
zpos = 0.;
}
// Position of the chambers in the full TRD-setup
- for (Int_t icham = 1; icham <= ncham; ++icham) {
+ for (icham = 1; icham <= ncham; ++icham) {
// The inner chambers
xpos = 0.;
ypos = 0.;