]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONResponseFactory.cxx
flag to switch off/on using OCDB
[u/mrichter/AliRoot.git] / MUON / AliMUONResponseFactory.cxx
index bf09e31206c4cc3eb58c64fd711e8311b9b24883..0b7bed9dc50b1328b5fc2c94416cade6d7267ca5 100644 (file)
@@ -40,10 +40,12 @@ ClassImp(AliMUONResponseFactory)
 /// \endcond
 
 //__________________________________________________________________________
-  AliMUONResponseFactory::AliMUONResponseFactory(const char* name)
+  AliMUONResponseFactory::AliMUONResponseFactory(const char* name,
+                                                 Bool_t isTailEffect)
     : TNamed(name, ""),
       fMUON(0),
-      fResponse0(0)
+      fResponse0(0),
+      fIsTailEffect(isTailEffect)
 {
 /// Standard constructor
   
@@ -54,7 +56,8 @@ ClassImp(AliMUONResponseFactory)
   AliMUONResponseFactory::AliMUONResponseFactory()
     : TNamed(),
       fMUON(0),
-      fResponse0(0)
+      fResponse0(0),
+      fIsTailEffect(kTRUE)
 {
 /// Default constructor
 
@@ -86,6 +89,7 @@ void AliMUONResponseFactory::BuildCommon()
   fResponse0->SetMaxAdc(4096);
   fResponse0->SetSaturation(3000);
   fResponse0->SetZeroSuppression(6);
+  fResponse0->SetTailEffect(fIsTailEffect);
 }       
         
 //__________________________________________________________________________
@@ -109,6 +113,7 @@ void AliMUONResponseFactory::BuildStation1()
   responseSt1.SetMaxAdc(4096);
   responseSt1.SetSaturation(3000);
   responseSt1.SetZeroSuppression(6);
+  responseSt1.SetTailEffect(fIsTailEffect);
 
    for (Int_t chamber = 0; chamber < 2; chamber++) {
     fMUON->SetResponseModel(chamber, responseSt1); // special response      
@@ -189,6 +194,8 @@ void AliMUONResponseFactory::Build(AliMUON* where)
 {
 /// Construct MUON responses
 
+  AliDebugStream(1) << "Tail effect: " << fIsTailEffect << endl;
+
   fMUON = where;
 
   // Set default parameters