Trigger: Correct compilation warning
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 Mar 2010 09:16:37 +0000 (09:16 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 Mar 2010 09:16:37 +0000 (09:16 +0000)
Test macros: Set as loca the GRP in simulation and reconstruction
Config: Correct the eta-theta range, reduce energy of momentum range, set number of particles via external environment variable if available

EMCAL/AliEMCALTrigger.cxx
EMCAL/macros/Config.C
EMCAL/macros/TestEMCALReconstruction.C
EMCAL/macros/TestEMCALSimulation.C

index 1d4537d..3f7a62a 100644 (file)
@@ -206,8 +206,8 @@ void AliEMCALTrigger::CreateInputs()
    fInputs.AddLast( new AliTriggerInput( det+"_GammaMPt_L1", det, 0x08 ) );
    fInputs.AddLast( new AliTriggerInput( det+"_GammaLPt_L1", det, 0x016 ) );
    fInputs.AddLast( new AliTriggerInput( det+"_JetHPt_L1", det, 0x032 ) );
-   fInputs.AddLast( new AliTriggerInput( det+"_JetMPt_L1", det, 0x064 ) );
-   fInputs.AddLast( new AliTriggerInput( det+"_JetLPt_L1", det, 0x128 ) );
+   fInputs.AddLast( new AliTriggerInput( det+"_JetMPt_L1", det, 0x048 ) );
+   fInputs.AddLast( new AliTriggerInput( det+"_JetLPt_L1", det, 0x064 ) );
 
    if(fNJetThreshold<=0) return;
    // Jet Trigger(s)
index f03f474..2d5d9e2 100755 (executable)
@@ -130,16 +130,16 @@ void Config()
     gMC->SetCut("TOFMAX", tofmax); 
 
 
-    int     nParticles = 100;
+    int     nParticles = 5;
     if (gSystem->Getenv("CONFIG_NPARTICLES"))
     {
         nParticles = atoi(gSystem->Getenv("CONFIG_NPARTICLES"));
     }
 
-    AliGenBox *gener = new AliGenBox(5);
-    gener->SetMomentumRange(50.,100.);
+    AliGenBox *gener = new AliGenBox(nParticles);
+    gener->SetMomentumRange(1.,10.);
     gener->SetPhiRange(80.0,180.0);
-    gener->SetThetaRange(EtaToTheta(-0.7), EtaToTheta(0.7));
+    gener->SetThetaRange(EtaToTheta(0.7), EtaToTheta(-0.7));
 
     gener->SetOrigin(0,0,0);        //vertex position
     gener->SetSigma(0,0,0);         //Sigma in (X,Y,Z) (cm) on IP position
index 782cde1..32e0e45 100644 (file)
@@ -24,6 +24,11 @@ void TestEMCALReconstruction(Int_t nev =-1) {
   //rec.SetInput("raw.root");
   //rec.SetRunQA(":");
 
+  //OCDB settings
+  rec.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+  rec.SetSpecificStorage("GRP/GRP/Data",
+                         Form("local://%s",gSystem->pwd()));
+
   TStopwatch timer;
   timer.Start();
 
index 8312e21..be8f9a7 100644 (file)
@@ -15,6 +15,13 @@ void TestEMCALSimulation(Int_t nev =10) {
   simulator.SetMakeDigits("EMCAL");
   simulator.SetWriteRawData("EMCAL","raw.root",kTRUE);
 
+  //OCDB settings
+  simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+  simulator.SetSpecificStorage("GRP/GRP/Data",
+                               Form("local://%s",gSystem->pwd()));
+
+  //Avoid the HLT to run
+  simulator.SetRunHLT("");
 
   TStopwatch timer;
   timer.Start();