]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONv0.cxx
Correct inconsistent variable name / method name / comments.
[u/mrichter/AliRoot.git] / MUON / AliMUONv0.cxx
index 3463e376150af19a0f8bdba7dc0bdfe28c57bc56..35210be79934b8a2dd53695549235480ecdb1b0b 100644 (file)
 
 /*
 $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()
 
@@ -113,7 +123,6 @@ AliMUONv0::AliMUONv0(const char *name, const char *title)
 //
 //  
     Int_t chamber;
-    Int_t station;
     // Default response: 5 mm of gas
     AliMUONResponseV0* response0 = new AliMUONResponseV0;
     response0->SetSqrtKx3AndDeriveKx2Kx4(0.7131); // sqrt(0.5085)
@@ -151,7 +160,7 @@ AliMUONv0::AliMUONv0(const char *name, const char *title)
 //^^^^^^^^^
     SetNsec(chamber-1,2);
 //
-    AliMUONSegmentationV01 *seg11=new AliMUONSegmentationV01;
+    AliMUONSegmentationV01 *seg11=new AliMUONSegmentationV01(4);
     
     seg11->SetSegRadii(rseg1);
 //  seg11->SetPadSize(3, 0.5);
@@ -162,7 +171,7 @@ AliMUONv0::AliMUONv0(const char *name, const char *title)
     
     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
@@ -181,7 +190,7 @@ AliMUONv0::AliMUONv0(const char *name, const char *title)
 //
     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
@@ -190,7 +199,7 @@ AliMUONv0::AliMUONv0(const char *name, const char *title)
     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
@@ -215,14 +224,14 @@ AliMUONv0::AliMUONv0(const char *name, const char *title)
 //^^^^^^^^^
     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);
@@ -238,14 +247,14 @@ AliMUONv0::AliMUONv0(const char *name, const char *title)
 //
     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);
@@ -278,7 +287,7 @@ AliMUONv0::AliMUONv0(const char *name, const char *title)
     
     chamber=5;
     SetNsec(chamber-1,2);
-    AliMUONSegmentationSlat *seg51=new AliMUONSegmentationSlat;
+    AliMUONSegmentationSlat *seg51=new AliMUONSegmentationSlat(4);
     seg51->SetNSlats(9); 
     seg51->SetShift(shift);  
     seg51->SetNPCBperSector(npcb5); 
@@ -289,7 +298,7 @@ AliMUONv0::AliMUONv0(const char *name, const char *title)
     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); 
@@ -304,7 +313,7 @@ AliMUONv0::AliMUONv0(const char *name, const char *title)
     
     chamber=6;
     SetNsec(chamber-1,2);
-    AliMUONSegmentationSlat *seg61=new AliMUONSegmentationSlat;
+    AliMUONSegmentationSlat *seg61=new AliMUONSegmentationSlat(4);
     seg61->SetNSlats(9); 
     seg61->SetShift(shift);  
     seg61->SetNPCBperSector(npcb5); 
@@ -315,7 +324,7 @@ AliMUONv0::AliMUONv0(const char *name, const char *title)
     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); 
@@ -339,7 +348,7 @@ AliMUONv0::AliMUONv0(const char *name, const char *title)
 
     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,
@@ -365,7 +374,7 @@ AliMUONv0::AliMUONv0(const char *name, const char *title)
     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);  
@@ -384,7 +393,7 @@ AliMUONv0::AliMUONv0(const char *name, const char *title)
 //^^^^^^^^^
     SetNsec(chamber-1,2);
 //
-    AliMUONSegmentationSlat *seg81=new AliMUONSegmentationSlat;
+    AliMUONSegmentationSlat *seg81=new AliMUONSegmentationSlat(4);
     
     seg81->SetNSlats(11);  
     seg81->SetShift(shift);  
@@ -396,7 +405,7 @@ AliMUONv0::AliMUONv0(const char *name, const char *title)
     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);  
@@ -420,7 +429,7 @@ AliMUONv0::AliMUONv0(const char *name, const char *title)
     
     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,
@@ -449,7 +458,7 @@ AliMUONv0::AliMUONv0(const char *name, const char *title)
     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);  
@@ -468,7 +477,7 @@ AliMUONv0::AliMUONv0(const char *name, const char *title)
 //^^^^^^^^^
     SetNsec(chamber-1,2);
 //
-    AliMUONSegmentationSlat *seg101=new AliMUONSegmentationSlat;
+    AliMUONSegmentationSlat *seg101=new AliMUONSegmentationSlat(4);
     
     seg101->SetNSlats(13);  
     seg101->SetShift(shift);  
@@ -480,7 +489,7 @@ AliMUONv0::AliMUONv0(const char *name, const char *title)
     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);  
@@ -686,15 +695,11 @@ void AliMUONv0::StepManager()
       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);