X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=T0%2FAliT0v1.cxx;h=f4ad05c8c6e743c0d0c246707130f5faeb482b1a;hb=6eac39a1c6d9fff019b170d3eb237807fe1341cc;hp=413a3fd7cffd47a0d2c82ca8c7a76de7c94e8dc9;hpb=1b070c3ce5c77e4bfb7523bb877ef62f37bff83d;p=u%2Fmrichter%2FAliRoot.git diff --git a/T0/AliT0v1.cxx b/T0/AliT0v1.cxx index 413a3fd7cff..f4ad05c8c6e 100644 --- a/T0/AliT0v1.cxx +++ b/T0/AliT0v1.cxx @@ -249,7 +249,7 @@ void AliT0v1::CreateGeometry() TGeoTube*hole = new TGeoTube("hole", 0, 1.61, 6.5); TGeoTranslation *tr [12]; Float_t angle = 2 * TMath::Pi() / 12; - Char_t nameTr[4]; + Char_t nameTr[40]; for (Int_t itr=0; itr<12; itr++) { sprintf (nameTr,"tr%i",itr+1); x = 6.5 * TMath::Sin(itr * angle); @@ -441,8 +441,6 @@ void AliT0v1::CreateMaterials() Float_t sxmgmx = gAlice->Field()->Max(); // Float_t a,z,d,radl,absl,buf[1]; // Int_t nbuf; - Int_t *idtmed = fIdtmed->GetArray(); - // AIR Float_t aAir[4]={12.0107,14.0067,15.9994,39.948}; @@ -536,8 +534,43 @@ void AliT0v1::CreateMaterials() AliMedium(17, "T0 OpAir$", 22, 0, isxfld, sxmgmx, 10., .1, 1., .003, .003); AliMedium(18, "T0 OpAirNext$", 23, 0, isxfld, sxmgmx, 10., .1, 1., .003, .003); AliMedium(19, "OpticalGlassCathode$", 24, 1, isxfld, sxmgmx, 10., .01, .1, .003, .003); + + AliDebugClass(1,": ++++++++++++++Medium set++++++++++"); + + +} +//--------------------------------------------------------------------- +void AliT0v1::DrawDetector() +{ +// +// Draw a shaded view of the Forward multiplicity detector version 0 +// + + //Set ALIC mother transparent + gMC->Gsatt("ALIC","SEEN",0); + // + //Set volumes visible + // gMC->Gsatt("0STR","SEEN",0); + // gMC->Gsatt("0INS","SEEN",0); + // gMC->Gsatt("0PMT","SEEN",1); + // gMC->Gsatt("0DIV","SEEN",1); + // + gMC->Gdopt("hide","off"); + gMC->Gdopt("shad","on"); + gMC->SetClipBox("."); + gMC->SetClipBox("*",0,1000,-1000,1000,-1000,1000); + gMC->DefaultRange(); + gMC->Gdraw("alic",90,0,0,-35,9.5,.6,0.6); + //gMC->Gdraw("alic",0,0,0,10,9.5,.8,0.8); //other side view + gMC->Gdhead(1111,"T-Zero detector"); + gMC->Gdopt("hide","off"); +} - +//------------------------------------------------------------------- +void AliT0v1::DefineOpticalProperties() +{ +// Optical properties definition. + Int_t *idtmed = fIdtmed->GetArray(); // Definition Cherenkov parameters int i; const Int_t kNbins=31; @@ -587,36 +620,6 @@ void AliT0v1::CreateMaterials() gMC->SetCerenkov (idtmed[kOpGlassCathode], kNbins, aPckov, aAbsSiO2,efficAll , rindexSiO2 ); gMC->SetCerenkov (idtmed[kOpAir], kNbins, aPckov,absorAir , efficAll,rindexAir ); gMC->SetCerenkov (idtmed[kOpAirNext], kNbins, aPckov,absorbCathodeNext , efficAll, rindexCathodeNext); - - AliDebugClass(1,": ++++++++++++++Medium set++++++++++"); - - -} -//--------------------------------------------------------------------- -void AliT0v1::DrawDetector() -{ -// -// Draw a shaded view of the Forward multiplicity detector version 0 -// - - //Set ALIC mother transparent - gMC->Gsatt("ALIC","SEEN",0); - // - //Set volumes visible - // gMC->Gsatt("0STR","SEEN",0); - // gMC->Gsatt("0INS","SEEN",0); - // gMC->Gsatt("0PMT","SEEN",1); - // gMC->Gsatt("0DIV","SEEN",1); - // - gMC->Gdopt("hide","off"); - gMC->Gdopt("shad","on"); - gMC->SetClipBox("."); - gMC->SetClipBox("*",0,1000,-1000,1000,-1000,1000); - gMC->DefaultRange(); - gMC->Gdraw("alic",90,0,0,-35,9.5,.6,0.6); - //gMC->Gdraw("alic",0,0,0,10,9.5,.8,0.8); //other side view - gMC->Gdhead(1111,"T-Zero detector"); - gMC->Gdopt("hide","off"); } //------------------------------------------------------------------- @@ -624,12 +627,10 @@ void AliT0v1::Init() { // Initialises version 0 of the Forward Multiplicity Detector // -//Int_t *idtmed = gAlice->Idtmed(); AliT0::Init(); fIdSens1=gMC->VolId("0REG"); AliDebug(1,Form("%s: *** T0 version 1 initialized ***\n",ClassName())); - } //-------------------------------------------------------------------