]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Setting a trigger configuration (C.Cheshkov)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 27 Apr 2006 15:31:26 +0000 (15:31 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 27 Apr 2006 15:31:26 +0000 (15:31 +0000)
macros/ConfigBeautyPPR.C
macros/ConfigCharmPPR.C
macros/ConfigHBT.C
macros/Config_PDC06.C
macros/Config_PDC06_MUON.C

index 870329ef91d1271ad1cc480ee81ecf02ab95078d..bfb8ef762712a8ddf348da3a0e16d33f7ccaa15b 100644 (file)
@@ -72,6 +72,10 @@ void Config()
   rl->SetNumberOfEventsPerFile(3);
   gAlice->SetRunLoader(rl);
 
+  // Set the trigger configuration
+  gAlice->SetTriggerDescriptor("Pb-Pb");
+  cout<<"Trigger configuration is set to  Pb-Pb"<<endl;
+
   //
   // Set External decayer
   AliDecayer* decayer = new AliDecayerPythia();
index 88a2d4c429fe0d74281a2eb72b9d7cdc7fe28112..f58830d4a94a9496451540a0b79d0971e19c9e06 100644 (file)
@@ -72,7 +72,11 @@ void Config()
   rl->SetNumberOfEventsPerFile(3);
   gAlice->SetRunLoader(rl);
 
- //
+  // Set the trigger configuration
+  gAlice->SetTriggerDescriptor("Pb-Pb");
+  cout<<"Trigger configuration is set to  Pb-Pb"<<endl;
+
+  //
   // Set External decayer
   AliDecayer* decayer = new AliDecayerPythia();
   decayer->SetForceDecay(kAll);
index 8883ca8af824dfb8be14138cba590b8ded9eddf5..c5bac321a35aa9d8d74b9f024169a811e5fd267e 100644 (file)
@@ -66,6 +66,10 @@ void Config()
     rl->SetNumberOfEventsPerFile(6);        
     gAlice->SetRunLoader(rl);
 
+    // Set the trigger configuration
+    gAlice->SetTriggerDescriptor("Pb-Pb");
+    cout<<"Trigger configuration is set to  Pb-Pb"<<endl;
+
     //
     // Set External decayer
     AliDecayer *decayer = new AliDecayerPythia();
index 16cd0ccf624febde672793b74a3a6751cc8ee340..b783da11ed2bfc1485180cc3f3de90318e8876a7 100644 (file)
@@ -85,6 +85,17 @@ enum Mag_t
 {
     k2kG, k4kG, k5kG
 };
+
+//--- Trigger config ---
+enum TrigConf_t
+{
+    kDefaultPPTrig, kDefaultPbPbTrig
+};
+
+const char * TrigConfName[] = {
+    "p-p","Pb-Pb"
+};
+
 //--- Functions ---
 AliGenPythia *PythiaHVQ(PDC06Proc_t proc);
 AliGenerator *MbCocktail();
@@ -96,6 +107,7 @@ static PDC06Proc_t   proc     = kPyOmegaPlus;
 static DecayHvFl_t   decHvFl  = kNature; 
 static YCut_t        ycut     = kFull;
 static Mag_t         mag      = k5kG; 
+static TrigConf_t    trig     = kDefaultPPTrig; // default pp trigger configuration
 //========================//
 // Set Random Number seed //
 //========================//
@@ -168,6 +180,10 @@ void Config()
   rl->SetCompressionLevel(2);
   rl->SetNumberOfEventsPerFile(1000);
   gAlice->SetRunLoader(rl);
+  
+  // Set the trigger configuration
+  gAlice->SetTriggerDescriptor(TrigConfName[trig]);
+  cout<<"Trigger configuration is set to  "<<TrigConfName[trig]<<endl;
 
   //
   //=======================================================================
index f61659590c9ccec5fa798d547d856ef65c2949be..7af7aa6d022ac2b4f7861d776087310229368ec8 100644 (file)
@@ -32,6 +32,11 @@ void Config(char directory[100]="", char option[6]="trg2mu")
   rl->SetNumberOfEventsPerFile(100);
   gAlice->SetRunLoader(rl);
   
+  //=======================================================================
+  // Set the trigger configuration
+  gAlice->SetTriggerDescriptor("p-p");
+  cout<<"Trigger configuration is set to  p-p"<<endl;
+
   //=======================================================================
   // Set External decayer
   TVirtualMCDecayer *decayer = new AliDecayerPythia();