fTPCParam->SetZeroSup(0);
// Loop over sectors
- const Int_t maxTime = fTPCParam->GetMaxTBin();
+ const Int_t kmaxTime = fTPCParam->GetMaxTBin();
const Int_t kNIS = fTPCParam->GetNInnerSector();
const Int_t kNOS = fTPCParam->GetNOuterSector();
const Int_t kNS = kNIS + kNOS;
allBins = new Short_t*[nRows];
for (Int_t iRow = 0; iRow < nRows; iRow++) {
Int_t maxPad = fTPCParam->GetNPads(iSector,iRow);
- Int_t maxBin = maxTime*maxPad;
+ Int_t maxBin = kmaxTime*maxPad;
allBins[iRow] = new Short_t[maxBin];
memset(allBins[iRow],0,sizeof(Short_t)*maxBin);
}
iPad, 0, maxPad -1));
Int_t iTimeBin = input.GetTime();
- if ( iTimeBin < 0 || iTimeBin >= maxTime)
+ if ( iTimeBin < 0 || iTimeBin >= kmaxTime)
AliFatal(Form("Timebin index (%d) outside the range (%d -> %d) !",
- iTimeBin, 0, maxTime -1));
+ iTimeBin, 0, kmaxTime -1));
- Int_t maxBin = maxTime*maxPad;
+ Int_t maxBin = kmaxTime*maxPad;
- if (((iPad*maxTime+iTimeBin) >= maxBin) ||
- ((iPad*maxTime+iTimeBin) < 0))
+ if (((iPad*kmaxTime+iTimeBin) >= maxBin) ||
+ ((iPad*kmaxTime+iTimeBin) < 0))
AliFatal(Form("Index outside the allowed range"
" Sector=%d Row=%d Pad=%d Timebin=%d"
" (Max.index=%d)",iSector,iRow,iPad,iTimeBin,maxBin));
- allBins[iRow][iPad*maxTime+iTimeBin] = input.GetSignal();
+ allBins[iRow][iPad*kmaxTime+iTimeBin] = input.GetSignal();
} // End loop over altro data
Int_t maxPad = fTPCParam->GetNPads(iSector,iRow);
for(Int_t iPad = 0; iPad < maxPad; iPad++) {
- for(Int_t iTimeBin = 0; iTimeBin < maxTime; iTimeBin++) {
- Short_t q = allBins[iRow][iPad*maxTime + iTimeBin];
+ for(Int_t iTimeBin = 0; iTimeBin < kmaxTime; iTimeBin++) {
+ Short_t q = allBins[iRow][iPad*kmaxTime + iTimeBin];
if (q <= 0) continue;
q *= 16;
dig->SetDigitFast((Short_t)q,iTimeBin,iPad);
// end caps - they are make as an assembly of single segments
// containing both readout chambers
//
- Double_t OpeningAngle = 10.*TMath::DegToRad();
+ Double_t openingAngle = 10.*TMath::DegToRad();
Double_t thick=1.5; // rib
- Double_t shift = thick/TMath::Sin(OpeningAngle);
+ Double_t shift = thick/TMath::Sin(openingAngle);
//
- Double_t LowEdge = 86.3; // hole in the wheel
- Double_t UpEdge = 240.4; // hole in the wheel
+ Double_t lowEdge = 86.3; // hole in the wheel
+ Double_t upEdge = 240.4; // hole in the wheel
//
new TGeoTubeSeg("sec",74.5,264.4,3.,0.,20.);
//
TGeoPgon *hole = new TGeoPgon("hole",0.,20.,1,4);
//
- hole->DefineSection(0,-3.5,LowEdge-shift,UpEdge-shift);
- hole->DefineSection(1,-1.5,LowEdge-shift,UpEdge-shift);
+ hole->DefineSection(0,-3.5,lowEdge-shift,upEdge-shift);
+ hole->DefineSection(1,-1.5,lowEdge-shift,upEdge-shift);
//
- hole->DefineSection(2,-1.5,LowEdge-shift,UpEdge+3.-shift);
- hole->DefineSection(3,3.5,LowEdge-shift,UpEdge+3.-shift);
+ hole->DefineSection(2,-1.5,lowEdge-shift,upEdge+3.-shift);
+ hole->DefineSection(3,3.5,lowEdge-shift,upEdge+3.-shift);
//
- Double_t ys = shift*TMath::Sin(OpeningAngle);
- Double_t xs = shift*TMath::Cos(OpeningAngle);
+ Double_t ys = shift*TMath::Sin(openingAngle);
+ Double_t xs = shift*TMath::Cos(openingAngle);
TGeoTranslation *tr = new TGeoTranslation("tr",xs,ys,0.);
tr->RegisterYourself();
TGeoCompositeShape *chamber = new TGeoCompositeShape("sec-hole:tr");
*rot=rot1*rot2;
//
Double_t x0,y0;
- x0=110.2*TMath::Cos(OpeningAngle);
- y0=110.2*TMath::Sin(OpeningAngle);
+ x0=110.2*TMath::Cos(openingAngle);
+ y0=110.2*TMath::Sin(openingAngle);
TGeoCombiTrans *combi1 = new TGeoCombiTrans("combi1",x0,y0,1.09,rot);
- x0=188.45*TMath::Cos(OpeningAngle);
- y0=188.45*TMath::Sin(OpeningAngle);
+ x0=188.45*TMath::Cos(openingAngle);
+ y0=188.45*TMath::Sin(openingAngle);
TGeoCombiTrans *combi2 = new TGeoCombiTrans("combi2",x0,y0,0.99,rot);
//
sect->AddNode(ch,1);
TGeoVolume *swv = new TGeoVolume("TPC_SWSEG",sw,m3); //Al
//
thick=1.;
- shift = thick/TMath::Sin(OpeningAngle);
+ shift = thick/TMath::Sin(openingAngle);
TGeoPgon *sh = new TGeoPgon(0.,20.,1,2);
sh->DefineSection(0,-4.,81.5-shift,250.75-shift);
sh->DefineSection(1,4.,81.5-shift,250.75-shift);
shv->AddNode(elv,1);
//
//
- ys = shift*TMath::Sin(OpeningAngle);
- xs = shift*TMath::Cos(OpeningAngle);
+ ys = shift*TMath::Sin(openingAngle);
+ xs = shift*TMath::Cos(openingAngle);
swv->AddNode(shv,1,new TGeoTranslation(xs,ys,0.));
// cover
TGeoPgon *co = new TGeoPgon(0.,20.,1,2);
TGeoVolume *cov = new TGeoVolume("TPC_SWC1",co,m3);//Al
// hole in a cover
TGeoPgon *coh = new TGeoPgon(0.,20.,1,2);
- shift=4./TMath::Sin(OpeningAngle);
+ shift=4./TMath::Sin(openingAngle);
coh->DefineSection(0,-0.5,85.-shift,247.25-shift);
coh->DefineSection(1,0.5,85.-shift,247.25-shift);
//
TGeoVolume *cohv = new TGeoVolume("TPC_SWC2",coh,m1);
//
- ys = shift*TMath::Sin(OpeningAngle);
- xs = shift*TMath::Cos(OpeningAngle);
+ ys = shift*TMath::Sin(openingAngle);
+ xs = shift*TMath::Cos(openingAngle);
cov->AddNode(cohv,1,new TGeoTranslation(xs,ys,0.));
//
// Sector as an Assembly
// end caps - they are make as an assembly of single segments
// containing both readout chambers
//
- Double_t OpeningAngle = 10.*TMath::DegToRad();
+ Double_t openingAngle = 10.*TMath::DegToRad();
Double_t thick=1.5; // rib
- Double_t shift = thick/TMath::Sin(OpeningAngle);
+ Double_t shift = thick/TMath::Sin(openingAngle);
//
- Double_t LowEdge = 86.3; // hole in the wheel
- Double_t UpEdge = 240.4; // hole in the wheel
+ Double_t lowEdge = 86.3; // hole in the wheel
+ Double_t upEdge = 240.4; // hole in the wheel
//
new TGeoTubeSeg("sec",74.5,264.4,3.,0.,20.);
//
TGeoPgon *hole = new TGeoPgon("hole",0.,20.,1,4);
//
- hole->DefineSection(0,-3.5,LowEdge-shift,UpEdge-shift);
- hole->DefineSection(1,-1.5,LowEdge-shift,UpEdge-shift);
+ hole->DefineSection(0,-3.5,lowEdge-shift,upEdge-shift);
+ hole->DefineSection(1,-1.5,lowEdge-shift,upEdge-shift);
//
- hole->DefineSection(2,-1.5,LowEdge-shift,UpEdge+3.-shift);
- hole->DefineSection(3,3.5,LowEdge-shift,UpEdge+3.-shift);
+ hole->DefineSection(2,-1.5,lowEdge-shift,upEdge+3.-shift);
+ hole->DefineSection(3,3.5,lowEdge-shift,upEdge+3.-shift);
//
- Double_t ys = shift*TMath::Sin(OpeningAngle);
- Double_t xs = shift*TMath::Cos(OpeningAngle);
+ Double_t ys = shift*TMath::Sin(openingAngle);
+ Double_t xs = shift*TMath::Cos(openingAngle);
TGeoTranslation *tr = new TGeoTranslation("tr",xs,ys,0.);
tr->RegisterYourself();
TGeoCompositeShape *chamber = new TGeoCompositeShape("sec-hole:tr");
*rot=rot1*rot2;
//
Double_t x0,y0;
- x0=110.2*TMath::Cos(OpeningAngle);
- y0=110.2*TMath::Sin(OpeningAngle);
+ x0=110.2*TMath::Cos(openingAngle);
+ y0=110.2*TMath::Sin(openingAngle);
TGeoCombiTrans *combi1 = new TGeoCombiTrans("combi1",x0,y0,1.09,rot);
- x0=188.45*TMath::Cos(OpeningAngle);
- y0=188.45*TMath::Sin(OpeningAngle);
+ x0=188.45*TMath::Cos(openingAngle);
+ y0=188.45*TMath::Sin(openingAngle);
TGeoCombiTrans *combi2 = new TGeoCombiTrans("combi2",x0,y0,0.99,rot);
//
sect->AddNode(ch,1);
TGeoVolume *swv = new TGeoVolume("TPC_SWSEG",sw,m3); //Al
//
thick=1.;
- shift = thick/TMath::Sin(OpeningAngle);
+ shift = thick/TMath::Sin(openingAngle);
TGeoPgon *sh = new TGeoPgon(0.,20.,1,2);
sh->DefineSection(0,-4.,81.5-shift,250.75-shift);
sh->DefineSection(1,4.,81.5-shift,250.75-shift);
shv->AddNode(elv,1);
//
//
- ys = shift*TMath::Sin(OpeningAngle);
- xs = shift*TMath::Cos(OpeningAngle);
+ ys = shift*TMath::Sin(openingAngle);
+ xs = shift*TMath::Cos(openingAngle);
swv->AddNode(shv,1,new TGeoTranslation(xs,ys,0.));
// cover
TGeoPgon *co = new TGeoPgon(0.,20.,1,2);
TGeoVolume *cov = new TGeoVolume("TPC_SWC1",co,m3);//Al
// hole in a cover
TGeoPgon *coh = new TGeoPgon(0.,20.,1,2);
- shift=4./TMath::Sin(OpeningAngle);
+ shift=4./TMath::Sin(openingAngle);
coh->DefineSection(0,-0.5,85.-shift,247.25-shift);
coh->DefineSection(1,0.5,85.-shift,247.25-shift);
//
TGeoVolume *cohv = new TGeoVolume("TPC_SWC2",coh,m1);
//
- ys = shift*TMath::Sin(OpeningAngle);
- xs = shift*TMath::Cos(OpeningAngle);
+ ys = shift*TMath::Sin(openingAngle);
+ xs = shift*TMath::Cos(openingAngle);
cov->AddNode(cohv,1,new TGeoTranslation(xs,ys,0.));
//
// Sector as an Assembly
// //
///////////////////////////////////////////////////////////////////////////////
-#include <stdlib.h>
+//#include <stdlib.h>
#include <TLorentzVector.h>
-#include <TMath.h>
#include <TPDGCode.h>
-#include <TVirtualMC.h>
#include <TString.h>
-#include <TSystem.h>
-
-#include "AliConst.h"
#include "AliLog.h"
-#include "AliMC.h"
-#include "AliRun.h"
-#include "AliTPCDigitsArray.h"
#include "AliTPCParam.h"
-#include "AliTPCParamSR.h"
#include "AliTPCTrackHitsV2.h"
#include "AliTPCv2.h"
-#include "TGeoManager.h"
#include "TGeoVolume.h"
#include "TGeoPcon.h"
#include "TGeoTube.h"
// end caps - they are make as an assembly of single segments
// containing both readout chambers
//
- Double_t OpeningAngle = 10.*TMath::DegToRad();
+ Double_t openingAngle = 10.*TMath::DegToRad();
Double_t thick=1.5; // rib
- Double_t shift = thick/TMath::Sin(OpeningAngle);
+ Double_t shift = thick/TMath::Sin(openingAngle);
//
- Double_t LowEdge = 86.3; // hole in the wheel
- Double_t UpEdge = 240.4; // hole in the wheel
+ Double_t lowEdge = 86.3; // hole in the wheel
+ Double_t upEdge = 240.4; // hole in the wheel
//
new TGeoTubeSeg("sec",74.5,264.4,3.,0.,20.);
//
TGeoPgon *hole = new TGeoPgon("hole",0.,20.,1,4);
//
- hole->DefineSection(0,-3.5,LowEdge-shift,UpEdge-shift);
- hole->DefineSection(1,-1.5,LowEdge-shift,UpEdge-shift);
+ hole->DefineSection(0,-3.5,lowEdge-shift,upEdge-shift);
+ hole->DefineSection(1,-1.5,lowEdge-shift,upEdge-shift);
//
- hole->DefineSection(2,-1.5,LowEdge-shift,UpEdge+3.-shift);
- hole->DefineSection(3,3.5,LowEdge-shift,UpEdge+3.-shift);
+ hole->DefineSection(2,-1.5,lowEdge-shift,upEdge+3.-shift);
+ hole->DefineSection(3,3.5,lowEdge-shift,upEdge+3.-shift);
//
- Double_t ys = shift*TMath::Sin(OpeningAngle);
- Double_t xs = shift*TMath::Cos(OpeningAngle);
+ Double_t ys = shift*TMath::Sin(openingAngle);
+ Double_t xs = shift*TMath::Cos(openingAngle);
TGeoTranslation *tr = new TGeoTranslation("tr",xs,ys,0.);
tr->RegisterYourself();
TGeoCompositeShape *chamber = new TGeoCompositeShape("sec-hole:tr");
*rot=rot1*rot2;
//
Double_t x0,y0;
- x0=110.2*TMath::Cos(OpeningAngle);
- y0=110.2*TMath::Sin(OpeningAngle);
+ x0=110.2*TMath::Cos(openingAngle);
+ y0=110.2*TMath::Sin(openingAngle);
TGeoCombiTrans *combi1 = new TGeoCombiTrans("combi1",x0,y0,1.09,rot);
- x0=188.45*TMath::Cos(OpeningAngle);
- y0=188.45*TMath::Sin(OpeningAngle);
+ x0=188.45*TMath::Cos(openingAngle);
+ y0=188.45*TMath::Sin(openingAngle);
TGeoCombiTrans *combi2 = new TGeoCombiTrans("combi2",x0,y0,0.99,rot);
//
sect->AddNode(ch,1);
TGeoVolume *swv = new TGeoVolume("TPC_SWSEG",sw,m3); //Al
//
thick=1.;
- shift = thick/TMath::Sin(OpeningAngle);
+ shift = thick/TMath::Sin(openingAngle);
TGeoPgon *sh = new TGeoPgon(0.,20.,1,2);
sh->DefineSection(0,-4.,81.5-shift,250.75-shift);
sh->DefineSection(1,4.,81.5-shift,250.75-shift);
shv->AddNode(elv,1);
//
//
- ys = shift*TMath::Sin(OpeningAngle);
- xs = shift*TMath::Cos(OpeningAngle);
+ ys = shift*TMath::Sin(openingAngle);
+ xs = shift*TMath::Cos(openingAngle);
swv->AddNode(shv,1,new TGeoTranslation(xs,ys,0.));
// cover
TGeoPgon *co = new TGeoPgon(0.,20.,1,2);
TGeoVolume *cov = new TGeoVolume("TPC_SWC1",co,m3);//Al
// hole in a cover
TGeoPgon *coh = new TGeoPgon(0.,20.,1,2);
- shift=4./TMath::Sin(OpeningAngle);
+ shift=4./TMath::Sin(openingAngle);
coh->DefineSection(0,-0.5,85.-shift,247.25-shift);
coh->DefineSection(1,0.5,85.-shift,247.25-shift);
//
TGeoVolume *cohv = new TGeoVolume("TPC_SWC2",coh,m1);
//
- ys = shift*TMath::Sin(OpeningAngle);
- xs = shift*TMath::Cos(OpeningAngle);
+ ys = shift*TMath::Sin(openingAngle);
+ xs = shift*TMath::Cos(openingAngle);
cov->AddNode(cohv,1,new TGeoTranslation(xs,ys,0.));
//
// Sector as an Assembly
{
//
Int_t modnum = 0;
- TString vp_str1 = "ALIC_1/TPC_M_1/TPC_Drift_1/TPC_ENDCAP_1/TPC_SECT_";
- TString vp_str2 = "ALIC_1/TPC_M_1/TPC_Drift_1/TPC_ENDCAP_2/TPC_SECT_";
- TString vp_append = "/TPC_IROC_1";
- TString sn_str1="TPC/EndcapA/Sector";
- TString sn_str2="TPC/EndcapC/Sector";
- TString sn_append="/InnerChamber";
+ TString vpstr1 = "ALIC_1/TPC_M_1/TPC_Drift_1/TPC_ENDCAP_1/TPC_SECT_";
+ TString vpstr2 = "ALIC_1/TPC_M_1/TPC_Drift_1/TPC_ENDCAP_2/TPC_SECT_";
+ TString vpappend = "/TPC_IROC_1";
+ TString snstr1="TPC/EndcapA/Sector";
+ TString snstr2="TPC/EndcapC/Sector";
+ TString snappend="/InnerChamber";
TString volpath, symname;
try{
for(Int_t cnt=1; cnt<=18; cnt++){
- volpath = vp_str1;
+ volpath = vpstr1;
volpath += cnt;
- volpath += vp_append;
- symname = sn_str1;
+ volpath += vpappend;
+ symname = snstr1;
symname += cnt;
- symname += sn_append;
+ symname += snappend;
gGeoManager->SetAlignableEntry(symname.Data(),volpath.Data());
modnum++;
}
}
for(Int_t cnt=1; cnt<=18; cnt++){
- volpath = vp_str2;
+ volpath = vpstr2;
volpath += cnt;
- volpath += vp_append;
- symname = sn_str2;
+ volpath += vpappend;
+ symname = snstr2;
symname += cnt;
- symname += sn_append;
+ symname += snappend;
gGeoManager->SetAlignableEntry(symname.Data(),volpath.Data());
modnum++;
}
{
//
Int_t modnum = 0;
- TString vp_str1 = "ALIC_1/TPC_M_1/TPC_Drift_1/TPC_ENDCAP_1/TPC_SECT_";
- TString vp_str2 = "ALIC_1/TPC_M_1/TPC_Drift_1/TPC_ENDCAP_2/TPC_SECT_";
- TString vp_append = "/TPC_OROC_1";
- TString sn_str1="TPC/EndcapA/Sector";
- TString sn_str2="TPC/EndcapC/Sector";
- TString sn_append="/OuterChamber";
+ TString vpstr1 = "ALIC_1/TPC_M_1/TPC_Drift_1/TPC_ENDCAP_1/TPC_SECT_";
+ TString vpstr2 = "ALIC_1/TPC_M_1/TPC_Drift_1/TPC_ENDCAP_2/TPC_SECT_";
+ TString vpappend = "/TPC_OROC_1";
+ TString snstr1="TPC/EndcapA/Sector";
+ TString snstr2="TPC/EndcapC/Sector";
+ TString snappend="/OuterChamber";
TString volpath, symname;
for(Int_t cnt=1; cnt<=18; cnt++){
- volpath = vp_str1;
+ volpath = vpstr1;
volpath += cnt;
- volpath += vp_append;
- symname = sn_str1;
+ volpath += vpappend;
+ symname = snstr1;
symname += cnt;
- symname += sn_append;
+ symname += snappend;
gGeoManager->SetAlignableEntry(symname.Data(),volpath.Data());
modnum++;
}
for(Int_t cnt=1; cnt<=18; cnt++){
- volpath = vp_str2;
+ volpath = vpstr2;
volpath += cnt;
- volpath += vp_append;
- symname = sn_str2;
+ volpath += vpappend;
+ symname = snstr2;
symname += cnt;
- symname += sn_append;
+ symname += snappend;
gGeoManager->SetAlignableEntry(symname.Data(),volpath.Data());
modnum++;
}
}
//_____________________________________________________________________________
-void AliTPCv2::DrawDetector()
+void AliTPCv2::DrawDetector() const
{
//
// Draw a shaded view of the Time Projection Chamber version 1
#include "AliTPC.h"
-
+#include <stdlib.h>
+#include <TMath.h>
+#include "AliMC.h"
+#include "AliConst.h"
+#include <TVirtualMC.h>
+#include <TSystem.h>
+#include "AliTPCParamSR.h"
+#include "AliRun.h"
+#include "AliTPCDigitsArray.h"
+#include "TGeoManager.h"
class AliTPCv2 : public AliTPC {
public:
virtual void Init();
virtual Int_t IsVersion() const {return 2;}
virtual void StepManager();
- virtual void DrawDetector();
+ virtual void DrawDetector() const;
protected:
Int_t fIdSens; // sensitive strip
// end caps - they are make as an assembly of single segments
// containing both readout chambers
//
- Double_t OpeningAngle = 10.*TMath::DegToRad();
+ Double_t openingAngle = 10.*TMath::DegToRad();
Double_t thick=1.5; // rib
- Double_t shift = thick/TMath::Sin(OpeningAngle);
+ Double_t shift = thick/TMath::Sin(openingAngle);
//
- Double_t LowEdge = 86.3; // hole in the wheel
- Double_t UpEdge = 240.4; // hole in the wheel
+ Double_t lowEdge = 86.3; // hole in the wheel
+ Double_t upEdge = 240.4; // hole in the wheel
//
new TGeoTubeSeg("sec",74.5,264.4,3.,0.,20.);
//
TGeoPgon *hole = new TGeoPgon("hole",0.,20.,1,4);
//
- hole->DefineSection(0,-3.5,LowEdge-shift,UpEdge-shift);
- hole->DefineSection(1,-1.5,LowEdge-shift,UpEdge-shift);
+ hole->DefineSection(0,-3.5,lowEdge-shift,upEdge-shift);
+ hole->DefineSection(1,-1.5,lowEdge-shift,upEdge-shift);
//
- hole->DefineSection(2,-1.5,LowEdge-shift,UpEdge+3.-shift);
- hole->DefineSection(3,3.5,LowEdge-shift,UpEdge+3.-shift);
+ hole->DefineSection(2,-1.5,lowEdge-shift,upEdge+3.-shift);
+ hole->DefineSection(3,3.5,lowEdge-shift,upEdge+3.-shift);
//
- Double_t ys = shift*TMath::Sin(OpeningAngle);
- Double_t xs = shift*TMath::Cos(OpeningAngle);
+ Double_t ys = shift*TMath::Sin(openingAngle);
+ Double_t xs = shift*TMath::Cos(openingAngle);
TGeoTranslation *tr = new TGeoTranslation("tr",xs,ys,0.);
tr->RegisterYourself();
TGeoCompositeShape *chamber = new TGeoCompositeShape("sec-hole:tr");
*rot=rot1*rot2;
//
Double_t x0,y0;
- x0=110.2*TMath::Cos(OpeningAngle);
- y0=110.2*TMath::Sin(OpeningAngle);
+ x0=110.2*TMath::Cos(openingAngle);
+ y0=110.2*TMath::Sin(openingAngle);
TGeoCombiTrans *combi1 = new TGeoCombiTrans("combi1",x0,y0,1.09,rot);
- x0=188.45*TMath::Cos(OpeningAngle);
- y0=188.45*TMath::Sin(OpeningAngle);
+ x0=188.45*TMath::Cos(openingAngle);
+ y0=188.45*TMath::Sin(openingAngle);
TGeoCombiTrans *combi2 = new TGeoCombiTrans("combi2",x0,y0,0.99,rot);
//
sect->AddNode(ch,1);
TGeoVolume *swv = new TGeoVolume("TPC_SWSEG",sw,m3); //Al
//
thick=1.;
- shift = thick/TMath::Sin(OpeningAngle);
+ shift = thick/TMath::Sin(openingAngle);
TGeoPgon *sh = new TGeoPgon(0.,20.,1,2);
sh->DefineSection(0,-4.,81.5-shift,250.75-shift);
sh->DefineSection(1,4.,81.5-shift,250.75-shift);
//
shv->AddNode(elv,1);
//
- ys = shift*TMath::Sin(OpeningAngle);
- xs = shift*TMath::Cos(OpeningAngle);
+ ys = shift*TMath::Sin(openingAngle);
+ xs = shift*TMath::Cos(openingAngle);
swv->AddNode(shv,1,new TGeoTranslation(xs,ys,0.));
// cover
TGeoPgon *co = new TGeoPgon(0.,20.,1,2);
TGeoVolume *cov = new TGeoVolume("TPC_SWC1",co,m3);//Al
// hole in a cover
TGeoPgon *coh = new TGeoPgon(0.,20.,1,2);
- shift=4./TMath::Sin(OpeningAngle);
+ shift=4./TMath::Sin(openingAngle);
coh->DefineSection(0,-0.5,85.-shift,247.25-shift);
coh->DefineSection(1,0.5,85.-shift,247.25-shift);
//
TGeoVolume *cohv = new TGeoVolume("TPC_SWC2",coh,m1);
//
- ys = shift*TMath::Sin(OpeningAngle);
- xs = shift*TMath::Cos(OpeningAngle);
+ ys = shift*TMath::Sin(openingAngle);
+ xs = shift*TMath::Cos(openingAngle);
cov->AddNode(cohv,1,new TGeoTranslation(xs,ys,0.));
//
// Sector as an Assembly