Possibility to set asymmetric collimator apertures on side A, C
authorcoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 May 2010 05:02:13 +0000 (05:02 +0000)
committercoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 May 2010 05:02:13 +0000 (05:02 +0000)
ZDC/AliZDC.h
ZDC/AliZDCv3.cxx
ZDC/AliZDCv3.h

index ee88786..1569ce3 100644 (file)
@@ -47,8 +47,12 @@ public:
   void  NoShower(){fNoShower=1;}
   void  Shower()  {fNoShower=0;}
   
-  virtual void SetVCollAperture(Float_t /*aperture*/) {}
-  virtual void SetVCollCentre(Float_t /*centre*/) {}
+  virtual void SetVCollSideCAperture(Float_t /*aperture*/) {}
+  virtual void SetVCollSideCCentre(Float_t /*centre*/) {}
+  
+  virtual void SetVCollSideAAperture(Float_t /*aperture*/) {}
+  virtual void SetVCollSideACentre(Float_t /*centre*/) {}
+  
   virtual void SetLumiLength(Float_t /*length*/) {}
 
   //Calibration methods 
index c39b7f5..f5ea30f 100644 (file)
@@ -81,8 +81,10 @@ AliZDCv3::AliZDCv3() :
   fpcVCollA(0),
   fpDetectedA(0),
   fnDetectedA(0),
-  fVCollAperture(7./2.),
-  fVCollCentreY(0.),
+  fVCollSideCAperture(7./2.),
+  fVCollSideCCentreY(0.),
+  fVCollSideAAperture(7./2.),
+  fVCollSideACentreY(0.),
   fLumiLength(15.)
 {
   //
@@ -120,8 +122,10 @@ AliZDCv3::AliZDCv3(const char *name, const char *title) :
   fpcVCollA(0),
   fpDetectedA(0),
   fnDetectedA(0),
-  fVCollAperture(7./2.),
-  fVCollCentreY(0.),
+  fVCollSideCAperture(7./2.),
+  fVCollSideCCentreY(0.),
+  fVCollSideAAperture(7./2.),
+  fVCollSideACentreY(0.),
   fLumiLength(15.)  
 {
   //
@@ -319,16 +323,16 @@ void AliZDCv3::CreateBeamLine()
   //printf("   QE01 ELTU from z = %1.2f to z= %1.2f\n",-zd1,-2*tubpar[2]-zd1);
   
   // Vertical collimator jaws (defined ONLY if fVCollAperture<3.5!)
-  if(fVCollAperture<3.5){
+  if(fVCollSideCAperture<3.5){
     boxpar[0] = 5.4/2.;
-    boxpar[1] = (3.5-fVCollAperture-fVCollCentreY-0.7)/2.;
+    boxpar[1] = (3.5-fVCollSideCAperture-fVCollSideCCentreY-0.7)/2.;
     if(boxpar[1]<0.) boxpar[1]=0.;
     boxpar[2] = 124.4/2.;
-    printf("\n  AliZDCv3 -> Setting VCollimator jaw: aperture %1.2f center %1.2f mod.thickness %1.3f\n\n", 
-       2*fVCollAperture,fVCollCentreY,2*boxpar[1]);
+    printf("\n  AliZDCv3 -> Setting SideC VCollimator jaw: aperture %1.2f center %1.2f mod.thickness %1.3f\n\n", 
+       2*fVCollSideCAperture,fVCollSideCCentreY,2*boxpar[1]);
     gMC->Gsvolu("QCVC" , "BOX ", idtmed[13], boxpar, 3); 
-    gMC->Gspos("QCVC", 1, "QE02", -boxpar[0],  fVCollAperture+fVCollCentreY+boxpar[1], -totLength1/2.+160.8+78.+148./2., 0, "ONLY");  
-    gMC->Gspos("QCVC", 2, "QE02", -boxpar[0], -fVCollAperture+fVCollCentreY-boxpar[1], -totLength1/2.+160.8+78.+148./2., 0, "ONLY");  
+    gMC->Gspos("QCVC", 1, "QE02", -boxpar[0],  fVCollSideCAperture+fVCollSideCCentreY+boxpar[1], -totLength1/2.+160.8+78.+148./2., 0, "ONLY");  
+    gMC->Gspos("QCVC", 2, "QE02", -boxpar[0], -fVCollSideCAperture+fVCollSideCCentreY-boxpar[1], -totLength1/2.+160.8+78.+148./2., 0, "ONLY");  
   }
   
   zd1 += tubpar[2] * 2.;
@@ -944,14 +948,14 @@ void AliZDCv3::CreateBeamLine()
   gMC->Gspos("QA07", 1, "QA06", 0., 0., 0., 0, "ONLY");  
   
   // Vertical collimator jaws (defined ONLY if fVCollAperture<3.5!)
-  if(fVCollAperture<3.5){
+  if(fVCollSideAAperture<3.5){
     boxpar[0] = 5.4/2.;
-    boxpar[1] = (3.5-fVCollAperture-fVCollCentreY-0.7)/2.;
+    boxpar[1] = (3.5-fVCollSideAAperture-fVCollSideACentreY-0.7)/2.;
     if(boxpar[1]<0.) boxpar[1]=0.;
     boxpar[2] = 124.4/2.;
     gMC->Gsvolu("QCVA" , "BOX ", idtmed[13], boxpar, 3); 
-    gMC->Gspos("QCVA", 1, "QA07", -boxpar[0], fVCollAperture+fVCollCentreY+boxpar[1], -313.3/2.+78.+148./2., 0, "ONLY");  
-    gMC->Gspos("QCVA", 2, "QA07", -boxpar[0], -fVCollAperture+fVCollCentreY-boxpar[1], -313.3/2.+78.+148./2., 0, "ONLY");  
+    gMC->Gspos("QCVA", 1, "QA07", -boxpar[0], fVCollSideAAperture+fVCollSideACentreY+boxpar[1], -313.3/2.+78.+148./2., 0, "ONLY");  
+    gMC->Gspos("QCVA", 2, "QA07", -boxpar[0], -fVCollSideAAperture+fVCollSideACentreY-boxpar[1], -313.3/2.+78.+148./2., 0, "ONLY");  
   }
   
   zd2 += 2.*tubpar[2];
index a95287f..4ad2e54 100644 (file)
@@ -27,10 +27,16 @@ public:
   virtual void  InitTables();
   virtual void  StepManager();
   
-  void SetVCollAperture(Float_t aperture)
-       {if(aperture<3.5) fVCollAperture = aperture; 
-        else printf("\n\n AliZDCv3: WARNING! TCTVB aperture set to max.: 3.5 cm\n\n");}
-  void SetVCollCentre(Float_t centre) {fVCollCentreY = centre;}
+  void SetVCollSideCAperture(Float_t aperture)
+       {if(aperture<3.5) fVCollSideCAperture = aperture; 
+        else printf("\n\n AliZDCv3: WARNING! SideA TCTVB aperture set to max.: 3.5 cm\n\n");}
+  void SetVCollSideCCentre(Float_t centre) {fVCollSideCCentreY = centre;}
+  
+  void SetVCollSideAAperture(Float_t aperture)
+       {if(aperture<3.5) fVCollSideAAperture = aperture; 
+        else printf("\n\n AliZDCv3: WARNING! SideA TCTVB aperture set to max.: 3.5 cm\n\n");}
+  void SetVCollSideACentre(Float_t centre) {fVCollSideACentreY = centre;}
+  
   void SetLumiLength(Float_t length) {fLumiLength = length;}
   
   void SetYZNC(Float_t yZNC) {fPosZNC[1] = yZNC;}
@@ -85,12 +91,14 @@ protected:
   Int_t fpLostITA, fpLostD1A, fpLostTDI, fpcVCollA, fpDetectedA, fnDetectedA; // Side A
   
   // Parameters to describe vertical collimator aperture
-  Float_t fVCollAperture; // Semi-aperture of TCTVB jaws
-  Float_t fVCollCentreY;  // Centre of TCTVB jaw apertures
+  Float_t fVCollSideCAperture; // Semi-aperture of TCTVB jaws
+  Float_t fVCollSideCCentreY;  // Centre of TCTVB jaw apertures
+  Float_t fVCollSideAAperture; // Semi-aperture of TCTVB jaws
+  Float_t fVCollSideACentreY;  // Centre of TCTVB jaw apertures
   
   Float_t fLumiLength;  // Luminometer length
   
-  ClassDef(AliZDCv3,6)  // Zero Degree Calorimeter version 1
+  ClassDef(AliZDCv3,7)  // Zero Degree Calorimeter version 1
 }; 
  
 #endif