]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
In vmctest/*/commonConfig.C:
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 May 2010 12:43:14 +0000 (12:43 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 May 2010 12:43:14 +0000 (12:43 +0000)
Modified TRD, PHOS and EMCAL setting to be consistent with the official
production macros; the old setting kept as the option (kConfigV0).
(Eva, Ivana)

test/vmctest/gun/commonConfig.C
test/vmctest/ppbench/commonConfig.C

index 26efb8accaf60ec313a7411b620bf68e6b3f1b5d..0050bbdbd6a793f12eedb83caa4c16c60ba23519 100644 (file)
@@ -16,6 +16,11 @@ const char * pprTrigConfName[] = {
     "p-p","Pb-Pb"
 };
 
     "p-p","Pb-Pb"
 };
 
+enum ConfigVersion_t {
+    kConfigV0,  // default configuration  
+    kConfigV1   // configuration for LHC production
+};
+
 // Options 
 static AliMagF::BMap_t smag = AliMagF::k5kG;
 static PprTrigConf_t strig = kDefaultPPTrig; // default PP trigger configuration
 // Options 
 static AliMagF::BMap_t smag = AliMagF::k5kG;
 static PprTrigConf_t strig = kDefaultPPTrig; // default PP trigger configuration
@@ -24,7 +29,8 @@ static TString comment;
 // Functions
 void  LoadPythia();
 
 // Functions
 void  LoadPythia();
 
-void commonConfig(Bool_t setRootGeometry = kFALSE)
+void commonConfig(Bool_t setRootGeometry = kFALSE,
+                  ConfigVersion_t configVersion = kConfigV1)
 {
   cout << "Running commonConfig.C ... " << endl;
 
 {
   cout << "Running commonConfig.C ... " << endl;
 
@@ -224,6 +230,22 @@ void commonConfig(Bool_t setRootGeometry = kFALSE)
       //=================== TRD parameters ============================
 
       AliTRD *TRD = new AliTRDv1("TRD", "TRD slow simulator");
       //=================== TRD parameters ============================
 
       AliTRD *TRD = new AliTRDv1("TRD", "TRD slow simulator");
+      if ( configVersion == kConfigV1 ) {
+        AliTRDgeometry *geoTRD = TRD->GetGeometry();
+        // Partial geometry: modules at 0,1,7,8,9,16,17
+        // starting at 3h in positive direction
+        geoTRD->SetSMstatus(2,0);
+        geoTRD->SetSMstatus(3,0);
+        geoTRD->SetSMstatus(4,0);
+        geoTRD->SetSMstatus(5,0);
+        geoTRD->SetSMstatus(6,0);
+        geoTRD->SetSMstatus(11,0);
+        geoTRD->SetSMstatus(12,0);
+        geoTRD->SetSMstatus(13,0);
+        geoTRD->SetSMstatus(14,0);
+        geoTRD->SetSMstatus(15,0);
+        geoTRD->SetSMstatus(16,0);
+      }
   }
 
   if (iFMD)
   }
 
   if (iFMD)
@@ -242,7 +264,10 @@ void commonConfig(Bool_t setRootGeometry = kFALSE)
 
   if (iPHOS)
   {
 
   if (iPHOS)
   {
-      AliPHOS *PHOS = new AliPHOSv1("PHOS", "IHEP");
+     if ( configVersion == kConfigV0 ) 
+       AliPHOS *PHOS = new AliPHOSv1("PHOS", "IHEP");
+     else if ( configVersion == kConfigV1 )  
+       AliPHOS *PHOS = new AliPHOSv1("PHOS", "noCPV_Modules123"); 
   }
 
 
   }
 
 
@@ -261,7 +286,10 @@ void commonConfig(Bool_t setRootGeometry = kFALSE)
   if (iEMCAL)
   {
       //=================== EMCAL parameters ============================
   if (iEMCAL)
   {
       //=================== EMCAL parameters ============================
+    if ( configVersion == kConfigV0 ) 
       AliEMCAL *EMCAL = new AliEMCALv2("EMCAL", "EMCAL_COMPLETE");
       AliEMCAL *EMCAL = new AliEMCALv2("EMCAL", "EMCAL_COMPLETE");
+    else if ( configVersion == kConfigV1 )  
+      AliEMCAL *EMCAL = new AliEMCALv2("EMCAL", "EMCAL_FIRSTYEAR");
   }
 
    if (iACORDE)
   }
 
    if (iACORDE)
@@ -272,7 +300,7 @@ void commonConfig(Bool_t setRootGeometry = kFALSE)
 
    if (iVZERO)
   {
 
    if (iVZERO)
   {
-      //=================== ACORDE parameters ============================
+      //=================== VZERO parameters ============================
       AliVZERO *VZERO = new AliVZEROv7("VZERO", "normal VZERO");
   }
 
       AliVZERO *VZERO = new AliVZEROv7("VZERO", "normal VZERO");
   }
 
index 26efb8accaf60ec313a7411b620bf68e6b3f1b5d..0050bbdbd6a793f12eedb83caa4c16c60ba23519 100644 (file)
@@ -16,6 +16,11 @@ const char * pprTrigConfName[] = {
     "p-p","Pb-Pb"
 };
 
     "p-p","Pb-Pb"
 };
 
+enum ConfigVersion_t {
+    kConfigV0,  // default configuration  
+    kConfigV1   // configuration for LHC production
+};
+
 // Options 
 static AliMagF::BMap_t smag = AliMagF::k5kG;
 static PprTrigConf_t strig = kDefaultPPTrig; // default PP trigger configuration
 // Options 
 static AliMagF::BMap_t smag = AliMagF::k5kG;
 static PprTrigConf_t strig = kDefaultPPTrig; // default PP trigger configuration
@@ -24,7 +29,8 @@ static TString comment;
 // Functions
 void  LoadPythia();
 
 // Functions
 void  LoadPythia();
 
-void commonConfig(Bool_t setRootGeometry = kFALSE)
+void commonConfig(Bool_t setRootGeometry = kFALSE,
+                  ConfigVersion_t configVersion = kConfigV1)
 {
   cout << "Running commonConfig.C ... " << endl;
 
 {
   cout << "Running commonConfig.C ... " << endl;
 
@@ -224,6 +230,22 @@ void commonConfig(Bool_t setRootGeometry = kFALSE)
       //=================== TRD parameters ============================
 
       AliTRD *TRD = new AliTRDv1("TRD", "TRD slow simulator");
       //=================== TRD parameters ============================
 
       AliTRD *TRD = new AliTRDv1("TRD", "TRD slow simulator");
+      if ( configVersion == kConfigV1 ) {
+        AliTRDgeometry *geoTRD = TRD->GetGeometry();
+        // Partial geometry: modules at 0,1,7,8,9,16,17
+        // starting at 3h in positive direction
+        geoTRD->SetSMstatus(2,0);
+        geoTRD->SetSMstatus(3,0);
+        geoTRD->SetSMstatus(4,0);
+        geoTRD->SetSMstatus(5,0);
+        geoTRD->SetSMstatus(6,0);
+        geoTRD->SetSMstatus(11,0);
+        geoTRD->SetSMstatus(12,0);
+        geoTRD->SetSMstatus(13,0);
+        geoTRD->SetSMstatus(14,0);
+        geoTRD->SetSMstatus(15,0);
+        geoTRD->SetSMstatus(16,0);
+      }
   }
 
   if (iFMD)
   }
 
   if (iFMD)
@@ -242,7 +264,10 @@ void commonConfig(Bool_t setRootGeometry = kFALSE)
 
   if (iPHOS)
   {
 
   if (iPHOS)
   {
-      AliPHOS *PHOS = new AliPHOSv1("PHOS", "IHEP");
+     if ( configVersion == kConfigV0 ) 
+       AliPHOS *PHOS = new AliPHOSv1("PHOS", "IHEP");
+     else if ( configVersion == kConfigV1 )  
+       AliPHOS *PHOS = new AliPHOSv1("PHOS", "noCPV_Modules123"); 
   }
 
 
   }
 
 
@@ -261,7 +286,10 @@ void commonConfig(Bool_t setRootGeometry = kFALSE)
   if (iEMCAL)
   {
       //=================== EMCAL parameters ============================
   if (iEMCAL)
   {
       //=================== EMCAL parameters ============================
+    if ( configVersion == kConfigV0 ) 
       AliEMCAL *EMCAL = new AliEMCALv2("EMCAL", "EMCAL_COMPLETE");
       AliEMCAL *EMCAL = new AliEMCALv2("EMCAL", "EMCAL_COMPLETE");
+    else if ( configVersion == kConfigV1 )  
+      AliEMCAL *EMCAL = new AliEMCALv2("EMCAL", "EMCAL_FIRSTYEAR");
   }
 
    if (iACORDE)
   }
 
    if (iACORDE)
@@ -272,7 +300,7 @@ void commonConfig(Bool_t setRootGeometry = kFALSE)
 
    if (iVZERO)
   {
 
    if (iVZERO)
   {
-      //=================== ACORDE parameters ============================
+      //=================== VZERO parameters ============================
       AliVZERO *VZERO = new AliVZEROv7("VZERO", "normal VZERO");
   }
 
       AliVZERO *VZERO = new AliVZEROv7("VZERO", "normal VZERO");
   }