#include "AliConst.h"
#include "AliRun.h"
+#include "AliMathBase.h"
#include "AliTPCDigitsArray.h"
#include "AliTPCParam.h"
#include "AliTPCParamSR.h"
// here I define a volume TPC
// retrive the medium name with "TPC_" as a leading string
//
- TGeoPcon *tpc = new TGeoPcon(0.,360.,20); //20 sections
+ TGeoPcon *tpc = new TGeoPcon(0.,360.,30); //30 sections
//
- tpc->DefineSection(0,-291.,77.,278.);
- tpc->DefineSection(1,-270,77.,278.);
+ tpc->DefineSection(0,-289.6,77.,278.);
+ tpc->DefineSection(1,-262.1,77.,278.);
//
- tpc->DefineSection(2,-270.,77.,278.);
- tpc->DefineSection(3,-259.6,70.,278.);
+ tpc->DefineSection(2,-262.1,83.1,278.);
+ tpc->DefineSection(3,-260.,83.1,278.);
//
- tpc->DefineSection(4,-259.6,68.1,278.);
- tpc->DefineSection(5,-253.6,68.1,278.);
+ tpc->DefineSection(4,-260.,70.,278.);
+ tpc->DefineSection(5,-259.6,70.,278.);
//
- tpc->DefineSection(6,-253.6,68.,278.);
- tpc->DefineSection(7,-74.0,60.8,278.);
+ tpc->DefineSection(6,-259.6,68.1,278.);
+ tpc->DefineSection(7,-253.6,68.1,278.);
//
- tpc->DefineSection(8,-74.0,60.1,278.);
- tpc->DefineSection(9,-73.3,60.1,278.);
+ tpc->DefineSection(8,-253.6,68.,278.);
+ tpc->DefineSection(9,-74.0,60.8,278.);
//
- tpc->DefineSection(10,-73.3,56.9,278.);
- tpc->DefineSection(11,73.3,56.9,278.);
+ tpc->DefineSection(10,-74.0,60.1,278.);
+ tpc->DefineSection(11,-73.3,60.1,278.);
//
- tpc->DefineSection(12,73.3,60.1,278.);
- tpc->DefineSection(13,74.0,60.1,278.);
+ tpc->DefineSection(12,-73.3,56.9,278.);
+ tpc->DefineSection(13,-68.5,56.9,278.);
//
- tpc->DefineSection(14,74.0,60.8,278.);
- tpc->DefineSection(15,253.6,65.5,278.);
+ tpc->DefineSection(14,-68.5,60.,278.);
+ tpc->DefineSection(15,-64.7,60.,278.);
//
- tpc->DefineSection(16,253.6,65.6,278.);
- tpc->DefineSection(17,259.6,65.6,278.);
+ tpc->DefineSection(16,-64.7,56.9,278.);
+ tpc->DefineSection(17,73.3,56.9,278.);
//
- tpc->DefineSection(18,259.6,70.0,278.);
- tpc->DefineSection(19,291.,77.,278.);
+ tpc->DefineSection(18,73.3,60.1,278.);
+ tpc->DefineSection(19,74.0,60.1,278.);
+ //
+ tpc->DefineSection(20,74.0,60.8,278.);
+ tpc->DefineSection(21,253.6,65.5,278.);
+ tpc->DefineSection(22,253.6,65.6,278.);
+ tpc->DefineSection(23,259.6,65.6,278.);
+ //
+ tpc->DefineSection(24,259.6,70.0,278.);
+ tpc->DefineSection(25,260.,70.0,278.);
+ //
+ tpc->DefineSection(26,260.,83.1,278.);
+ tpc->DefineSection(27,262.1,83.1,278.);
+ //
+ tpc->DefineSection(28,262.1,77.,278);
+ tpc->DefineSection(29,289.6,77.,278.);
+
//
TGeoMedium *m1 = gGeoManager->GetMedium("TPC_Air");
TGeoVolume *v1 = new TGeoVolume("TPC_M",tpc,m1);
dvol->DefineSection(4,253.6,74.5,264.4);
dvol->DefineSection(5,260.,74.5,264.4);
//
- TGeoMedium *m5 = gGeoManager->GetMedium("TPC_Ne-CO2-N-2");
+ TGeoMedium *m5 = gGeoManager->GetMedium("TPC_Ne-CO2-2");
TGeoVolume *v9 = new TGeoVolume("TPC_Drift",dvol,m5);
//
v1->AddNode(v9,1);
upar[2]=126.54; //upper
z=127.06;
if(i==15){
- v9->AddNode(hvrv,1,new TGeoTranslation(x,y,z));//A-side only
+ //v9->AddNode(hvrv,1,new TGeoTranslation(x,y,z));//A-side only
+ v9->AddNode(hvrv,1,new TGeoTranslation(x,y,127.14));//A-side only
gGeoManager->Node("TPC_Rod",i+55,"TPC_Drift",x,y,-z,0,kTRUE,upar,3);
}
else if(i==11){
} // end of function
-//_____________________________________________________________________________
-void AliTPCv3::DrawDetector()
-{
- //
- // Draw a shaded view of the Time Projection Chamber version 3
- //
-
-
- // Set everything unseen
- gMC->Gsatt("*", "seen", -1);
- //
- // Set ALIC mother transparent
- gMC->Gsatt("ALIC","SEEN",0);
- //
- // Set the volumes visible
- //
-
- gMC->Gsatt("TPC ","SEEN",0);
- gMC->Gsatt("TOIN","SEEN",1);
- gMC->Gsatt("TOIN","COLO",7);
- gMC->Gsatt("TOCV","SEEN",1);
- gMC->Gsatt("TOCV","COLO",4);
- gMC->Gsatt("TSA1","SEEN",0);
- gMC->Gsatt("TSA2","SEEN",0);
- gMC->Gsatt("TSA3","SEEN",0);
- gMC->Gsatt("TSA4","SEEN",0);
- gMC->Gsatt("TSA5","SEEN",0);
- gMC->Gsatt("TOFC","SEEN",1);
- gMC->Gsatt("TOFC","COLO",4);
- gMC->Gsatt("TSA6","SEEN",0);
- gMC->Gsatt("TSA7","SEEN",0);
- gMC->Gsatt("TSA8","SEEN",0);
- gMC->Gsatt("TIIN","SEEN",1);
- gMC->Gsatt("TIIN","COLO",7);
- gMC->Gsatt("TII1","SEEN",0);
- gMC->Gsatt("TIFC","SEEN",1);
- gMC->Gsatt("TIFC","COLO",4);
- gMC->Gsatt("TSA9","SEEN",0);
- gMC->Gsatt("TS10","SEEN",0);
- gMC->Gsatt("TS11","SEEN",0);
- gMC->Gsatt("TS12","SEEN",0);
- gMC->Gsatt("TS13","SEEN",0);
- gMC->Gsatt("TS14","SEEN",0);
- gMC->Gsatt("TICC","SEEN",0);
- gMC->Gsatt("TICM","SEEN",0);
- gMC->Gsatt("TS15","SEEN",0);
- gMC->Gsatt("TS16","SEEN",0);
- gMC->Gsatt("TS17","SEEN",0);
- gMC->Gsatt("TS18","SEEN",0);
- gMC->Gsatt("TS19","SEEN",0);
- gMC->Gsatt("TPJ1","SEEN",0);
- gMC->Gsatt("TPJ2","SEEN",0);
- gMC->Gsatt("TICS","SEEN",0);
- gMC->Gsatt("TDGS","SEEN",0);
- gMC->Gsatt("TIRC","SEEN",0);
- gMC->Gsatt("TIC1","SEEN",1);
- gMC->Gsatt("TIPP","SEEN",0);
- gMC->Gsatt("TIC3","SEEN",0);
- gMC->Gsatt("TRCE","SEEN",0);
- gMC->Gsatt("TPSC","SEEN",0);
- gMC->Gsatt("TPCC","SEEN",0);
- gMC->Gsatt("TORC","SEEN",0);
- gMC->Gsatt("TOPP","SEEN",0);
- gMC->Gsatt("TOC3","SEEN",0);
- gMC->Gsatt("TOC1","SEEN",1);
- gMC->Gsatt("TSSW","SEEN",1);
- gMC->Gsatt("TSWC","SEEN",1);
- gMC->Gsatt("TSSW","COLO",3);
- gMC->Gsatt("TSWC","COLO",3);
- gMC->Gsatt("TSCE","COLO",6);
- gMC->Gsatt("TSCE","SEEN",1);
- gMC->Gsatt("TWES","SEEN",0);
- gMC->Gsatt("TSWB","SEEN",0);
- gMC->Gsatt("TPEL","SEEN",0);
- gMC->Gsatt("TPMW","SEEN",1);
- gMC->Gsatt("TESR","SEEN",1);
- gMC->Gsatt("TPMW","COLO",12);
- gMC->Gsatt("TIC1","COLO",5);
- gMC->Gsatt("TOC1","COLO",5);
- gMC->Gsatt("TESB","SEEN",0);
- gMC->Gsatt("THVM","SEEN",1);
- gMC->Gsatt("THVM","COLO",11);
- gMC->Gsatt("THVH","SEEN",0);
- gMC->Gsatt("TPSR","SEEN",0);
- gMC->Gsatt("THVL","SEEN",0);
- gMC->Gsatt("THVC","SEEN",0);
- gMC->Gsatt("THVE","SEEN",0);
- gMC->Gsatt("THVR","SEEN",0);
-
- //
- gMC->Gdopt("hide", "on");
- gMC->Gdopt("shad", "on");
- gMC->Gsatt("*", "fill", 7);
- gMC->SetClipBox(".");
- gMC->SetClipBox("TPMW",-300,300,-300,300,254.,270.);
- gMC->SetClipBox("TESR",-300,300,-300,300,254.,270.);
- gMC->SetClipBox("TSSW",-300,300,-300,300,283.,284.);
- gMC->SetClipBox("TSWC",-300,300,-300,300,283.,284.);
- gMC->SetClipBox("*", 0, 300, -300, 300, -290, 290);
- gMC->DefaultRange();
- gMC->Gdraw("alic", 40, 30, 0, 12, 9.5, .025, .025);
- gMC->Gdhead(1111, "Time Projection Chamber");
- gMC->Gdman(18, 4, "MAN");
- gMC->Gdopt("hide","off");
-}
//_____________________________________________________________________________
void AliTPCv3::CreateMaterials()
//
// Initialises version 3 of the TPC after that it has been built
//
- Int_t *idtmed = fIdtmed->GetArray();
+ //Int_t *idtmed = fIdtmed->GetArray();
AliTPC::Init();
gMC->SetMaxNStep(-30000); // max. number of steps increased
- gMC->Gstpar(idtmed[2],"LOSS",5);
+ // specific energy loss is now set in galice.cuts
printf("%s: *** TPC version 3 initialized***\n",ClassName());
else
{
betaGamma = TMath::Max(betaGamma,(Float_t)7.e-3);
- pp=kprim*BetheBloch(betaGamma);
+ pp=kprim*AliMathBase::BetheBlochAleph(betaGamma);
if(TMath::Abs(charge) > 1.) pp *= (charge*charge);
}
gMC->SetMaxStep(-TMath::Log(rnd)/pp);
}
-
-//_____________________________________________________________________________
-Float_t AliTPCv3::BetheBloch(Float_t bg)
-{
- //
- // Bethe-Bloch energy loss formula
- //
- const Double_t kp1=0.76176e-1;
- const Double_t kp2=10.632;
- const Double_t kp3=0.13279e-4;
- const Double_t kp4=1.8631;
- const Double_t kp5=1.9479;
-
- Double_t dbg = (Double_t) bg;
-
- Double_t beta = dbg/TMath::Sqrt(1.+dbg*dbg);
-
- Double_t aa = TMath::Power(beta,kp4);
- Double_t bb = TMath::Power(1./dbg,kp5);
-
- bb=TMath::Log(kp3+bb);
-
- return ((Float_t)((kp2-aa-bb)*kp1/aa));
-}