Changing default behavior of digitizer (uses noise generation)
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 17 Mar 2006 16:49:35 +0000 (16:49 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 17 Mar 2006 16:49:35 +0000 (16:49 +0000)
(Laurent)

MUON/AliMUON.cxx
MUON/AliMUON.h
MUON/AliMUONv1.h

index 937d3bd..aa2c34d 100644 (file)
@@ -437,8 +437,16 @@ AliDigitizer* AliMUON::CreateDigitizer(AliRunDigitizer* manager) const
   }
   else if ( fDigitizerType == "digitizer:NewDigitizerOldTrigger" )
   {
-    return new AliMUONDigitizerV3(manager,AliMUONDigitizerV3::kTriggerDecision);
+    return new AliMUONDigitizerV3(manager,AliMUONDigitizerV3::kTriggerDecision, kFALSE, kFALSE);
   }
+  else if ( fDigitizerType == "digitizer:NewDigitizerEffTrigger" )
+  {
+    return new AliMUONDigitizerV3(manager,AliMUONDigitizerV3::kTriggerDecision, kTRUE, kFALSE);
+  }  
+  else if ( fDigitizerType == "digitizer:NewDigitizerWithNoiseOldTrigger" )
+  {
+    return new AliMUONDigitizerV3(manager,AliMUONDigitizerV3::kTriggerDecision, kFALSE, kTRUE);
+  }    
   else
   {
     AliFatal(Form("Unknown digitizer type : %s",fDigitizerType.Data()));
index c77ba4e..0a9ef07 100644 (file)
@@ -46,7 +46,7 @@ class AliMUON : public  AliDetector
     AliMUON();
     AliMUON(const char* name, const char *title="FactoryV4",
             const char* sDigitizerType="sdigitizer:AliMUONSDigitizerV2",
-            const char* digitizerType="digitizer:NewDigitizerOldTrigger");
+            const char* digitizerType="digitizer:NewDigitizerWithNoiseOldTrigger");
     virtual ~AliMUON();
    
     // Geometry
index 4d583dd..31041b2 100644 (file)
@@ -29,7 +29,7 @@ class AliMUONv1 : public AliMUON
    AliMUONv1();
    AliMUONv1(const char *name, const char *title="FactoryV4",
            const char* sDigitizerType="sdigitizer:AliMUONSDigitizerV2",
-           const char* digitizerType="digitizer:NewDigitizerOldTrigger");
+           const char* digitizerType="digitizer:NewDigitizerWithNoiseOldTrigger");
    virtual  ~AliMUONv1();
    virtual void   CreateGeometry();
    virtual void   CreateMaterials();