#include "AliMUONResponseTrigger.h"
#include "AliMUONResponseTriggerV1.h"
+using std::endl;
/// \cond CLASSIMP
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
AliMUONResponseFactory::AliMUONResponseFactory()
: TNamed(),
fMUON(0),
- fResponse0(0)
+ fResponse0(0),
+ fIsTailEffect(kTRUE)
{
/// Default constructor
fResponse0->SetMaxAdc(4096);
fResponse0->SetSaturation(3000);
fResponse0->SetZeroSuppression(6);
+ fResponse0->SetTailEffect(fIsTailEffect);
}
//__________________________________________________________________________
responseSt1.SetSigmaIntegration(10.);
// ChargeSlope larger to compensate for the smaller anode-cathode distance
// and keep the same most probable ADC channel for mip's
- responseSt1.SetChargeSlope(62.5);
+ responseSt1.SetChargeSlope(25); // SP & JC ajusted to match 2010 real data was 62.5
// assumed proportionality to anode-cathode distance for ChargeSpread
responseSt1.SetChargeSpread(0.144, 0.144);
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
{
/// Configuration for Trigger Chambers (Station 6,7) ---------
- Bool_t resTrigV1 = fMUON->GetTriggerResponseV1();
+ Int_t resTrigV1 = fMUON->GetTriggerResponseV1();
for (Int_t chamber = 10; chamber < 14; chamber++)
{
AliMUONResponse* response;
- if (!resTrigV1)
+ if(resTrigV1==1 || resTrigV1==2) //cluster size ON
{
- response = new AliMUONResponseTrigger;
+ response = new AliMUONResponseTriggerV1(resTrigV1); //1=STREAMER - 2=AVALANCHE
}
- else
+
+ else // default: clustrer size OFF
{
- response = new AliMUONResponseTriggerV1;
+ response = new AliMUONResponseTrigger;
}
- fMUON->SetResponseModel(chamber,*response);
+
+ fMUON->SetResponseModel(chamber,*response);
fMUON->Chamber(chamber).SetChargeCorrel(0); // same charge on both cathodes
delete response;
}
{
/// Construct MUON responses
+ AliDebugStream(1) << "Tail effect: " << fIsTailEffect << endl;
+
fMUON = where;
// Set default parameters