X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONResponseFactory.cxx;h=0b7bed9dc50b1328b5fc2c94416cade6d7267ca5;hb=19563116f18d573fb8aff288c18472053e68f604;hp=bf09e31206c4cc3eb58c64fd711e8311b9b24883;hpb=3d1463c8f7148e36069c24f20cde34e096d5d6a9;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONResponseFactory.cxx b/MUON/AliMUONResponseFactory.cxx index bf09e31206c..0b7bed9dc50 100644 --- a/MUON/AliMUONResponseFactory.cxx +++ b/MUON/AliMUONResponseFactory.cxx @@ -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