/*
$Log$
+Revision 1.16 2001/01/27 08:50:50 morsch
+Call non default constructors of segmentation classes.
+
+Revision 1.15 2001/01/17 20:57:45 hristov
+Unused variable removed
+
+Revision 1.14 2000/12/21 22:42:55 morsch
+Constructor contains default set-up for segmentation.
+Record charged particles only.
+
Revision 1.13 2000/10/06 10:03:38 morsch
Call to gMC->VolId() moved to Init()
//
//
Int_t chamber;
- Int_t station;
// Default response: 5 mm of gas
AliMUONResponseV0* response0 = new AliMUONResponseV0;
response0->SetSqrtKx3AndDeriveKx2Kx4(0.7131); // sqrt(0.5085)
//^^^^^^^^^
SetNsec(chamber-1,2);
//
- AliMUONSegmentationV01 *seg11=new AliMUONSegmentationV01;
+ AliMUONSegmentationV01 *seg11=new AliMUONSegmentationV01(4);
seg11->SetSegRadii(rseg1);
// seg11->SetPadSize(3, 0.5);
SetSegmentationModel(chamber-1, 1, seg11);
//
- AliMUONSegmentationV02 *seg12=new AliMUONSegmentationV02;
+ AliMUONSegmentationV02 *seg12=new AliMUONSegmentationV02(4);
seg12->SetSegRadii(rseg1);
// seg12->SetPadSize(0.75, 2.0);
seg12->SetPadSize(0.6, 1.6); // smaller pad size
//
SetNsec(chamber-1,2);
//
- AliMUONSegmentationV01 *seg21=new AliMUONSegmentationV01;
+ AliMUONSegmentationV01 *seg21=new AliMUONSegmentationV01(4);
seg21->SetSegRadii(rseg1);
// seg21->SetPadSize(3, 0.5);
seg21->SetPadSize(2.4, 0.4); // smaller pad size
seg21->SetPadDivision(nseg1);
SetSegmentationModel(chamber-1, 1, seg21);
//
- AliMUONSegmentationV02 *seg22=new AliMUONSegmentationV02;
+ AliMUONSegmentationV02 *seg22=new AliMUONSegmentationV02(4);
seg22->SetSegRadii(rseg1);
// seg22->SetPadSize(0.75, 2.);
seg22->SetPadSize(0.6, 1.6); // smaller pad size
//^^^^^^^^^
SetNsec(chamber-1,2);
//
- AliMUONSegmentationV01 *seg31=new AliMUONSegmentationV01;
+ AliMUONSegmentationV01 *seg31=new AliMUONSegmentationV01(4);
seg31->SetSegRadii(rseg2);
seg31->SetPadSize(3.0, 0.5);
seg31->SetDAnod(3.0/3./4);
seg31->SetPadDivision(nseg2);
SetSegmentationModel(chamber-1, 1, seg31);
//
- AliMUONSegmentationV02 *seg32=new AliMUONSegmentationV02;
+ AliMUONSegmentationV02 *seg32=new AliMUONSegmentationV02(4);
seg32->SetSegRadii(rseg2);
seg32->SetPadSize(0.75, 2.0);
seg32->SetPadDivision(nseg2);
//
SetNsec(chamber-1,2);
//
- AliMUONSegmentationV01 *seg41=new AliMUONSegmentationV01;
+ AliMUONSegmentationV01 *seg41=new AliMUONSegmentationV01(4);
seg41->SetSegRadii(rseg2);
seg41->SetPadSize(3.0, 0.5);
seg41->SetDAnod(3.0/3./4);
seg41->SetPadDivision(nseg2);
SetSegmentationModel(chamber-1, 1, seg41);
//
- AliMUONSegmentationV02 *seg42=new AliMUONSegmentationV02;
+ AliMUONSegmentationV02 *seg42=new AliMUONSegmentationV02(4);
seg42->SetSegRadii(rseg2);
seg42->SetPadSize(0.75, 2.0);
seg42->SetPadDivision(nseg2);
chamber=5;
SetNsec(chamber-1,2);
- AliMUONSegmentationSlat *seg51=new AliMUONSegmentationSlat;
+ AliMUONSegmentationSlat *seg51=new AliMUONSegmentationSlat(4);
seg51->SetNSlats(9);
seg51->SetShift(shift);
seg51->SetNPCBperSector(npcb5);
seg51->SetPadDivision(nseg3);
SetSegmentationModel(chamber-1, 1, seg51);
- AliMUONSegmentationSlatN *seg52=new AliMUONSegmentationSlatN;
+ AliMUONSegmentationSlatN *seg52=new AliMUONSegmentationSlatN(4);
seg52->SetNSlats(9);
seg52->SetShift(shift);
seg52->SetNPCBperSector(npcb5);
chamber=6;
SetNsec(chamber-1,2);
- AliMUONSegmentationSlat *seg61=new AliMUONSegmentationSlat;
+ AliMUONSegmentationSlat *seg61=new AliMUONSegmentationSlat(4);
seg61->SetNSlats(9);
seg61->SetShift(shift);
seg61->SetNPCBperSector(npcb5);
seg61->SetPadDivision(nseg3);
SetSegmentationModel(chamber-1, 1, seg61);
- AliMUONSegmentationSlatN *seg62=new AliMUONSegmentationSlatN;
+ AliMUONSegmentationSlatN *seg62=new AliMUONSegmentationSlatN(4);
seg62->SetNSlats(9);
seg62->SetShift(shift);
seg62->SetNPCBperSector(npcb5);
SetNsec(chamber-1,2);
//
- AliMUONSegmentationSlat *seg71=new AliMUONSegmentationSlat;
+ AliMUONSegmentationSlat *seg71=new AliMUONSegmentationSlat(4);
Int_t npcb7[44] = {0,0,0,3,
0,0,2,2,
0,0,3,2,
seg71->SetPadDivision(nseg4);
SetSegmentationModel(chamber-1, 1, seg71);
- AliMUONSegmentationSlatN *seg72=new AliMUONSegmentationSlatN;
+ AliMUONSegmentationSlatN *seg72=new AliMUONSegmentationSlatN(4);
SetSegmentationModel(chamber-1, 2, seg72);
seg72->SetNSlats(11);
//^^^^^^^^^
SetNsec(chamber-1,2);
//
- AliMUONSegmentationSlat *seg81=new AliMUONSegmentationSlat;
+ AliMUONSegmentationSlat *seg81=new AliMUONSegmentationSlat(4);
seg81->SetNSlats(11);
seg81->SetShift(shift);
seg81->SetPadDivision(nseg4);
SetSegmentationModel(chamber-1, 1, seg81);
- AliMUONSegmentationSlat *seg82=new AliMUONSegmentationSlatN;
+ AliMUONSegmentationSlat *seg82=new AliMUONSegmentationSlatN(4);
SetSegmentationModel(chamber-1, 2, seg82);
seg82->SetNSlats(11);
SetNsec(chamber-1,2);
//
- AliMUONSegmentationSlat *seg91=new AliMUONSegmentationSlat;
+ AliMUONSegmentationSlat *seg91=new AliMUONSegmentationSlat(4);
Int_t npcb9[52] = {0,0,0,3,
0,0,0,4,
0,0,2,3,
seg91->SetPadDivision(nseg4);
SetSegmentationModel(chamber-1, 1, seg91);
- AliMUONSegmentationSlatN *seg92=new AliMUONSegmentationSlatN;
+ AliMUONSegmentationSlatN *seg92=new AliMUONSegmentationSlatN(4);
SetSegmentationModel(chamber-1, 2, seg92);
seg92->SetNSlats(13);
//^^^^^^^^^
SetNsec(chamber-1,2);
//
- AliMUONSegmentationSlat *seg101=new AliMUONSegmentationSlat;
+ AliMUONSegmentationSlat *seg101=new AliMUONSegmentationSlat(4);
seg101->SetNSlats(13);
seg101->SetShift(shift);
seg101->SetPadDivision(nseg4);
SetSegmentationModel(chamber-1, 1, seg101);
- AliMUONSegmentationSlatN *seg102=new AliMUONSegmentationSlatN;
+ AliMUONSegmentationSlatN *seg102=new AliMUONSegmentationSlatN(4);
SetSegmentationModel(chamber-1, 2, seg102);
seg102->SetNSlats(13);
hits[5] = phi; // phi angle of incidence
hits[8] = -1; // first padhit
hits[9] = -1; // last pad hit
-
- // modifs personel
- hits[10] = mom[3]; // hit Energy
- hits[11] = mom[0]; // Px
- hits[12] = mom[1]; // Py
- hits[13] = mom[2]; // Pz
- hits[14] = gMC->TrackTime();
-
- // fin modifs perso
+ hits[10] = mom[3]; // hit Energy
+ hits[11] = mom[0]; // Px
+ hits[12] = mom[1]; // Py
+ hits[13] = mom[2]; // Pz
+ hits[14] = gMC->TrackTime(); // time of flight
new(lhits[fNhits++])
AliMUONHit(fIshunt,gAlice->CurrentTrack(),vol,hits);