#include "AliMUONGeometryTransformer.h"
#include "AliMUONHit.h"
#include "AliMUONConstants.h"
-#include "AliMUONTriggerEfficiencyCells.h"
-#include "AliMUONTriggerChamberEfficiency.h"
#include "AliMpPad.h"
#include "AliMpCathodType.h"
//------------------------------------------------------------------
AliMUONResponseTrigger::AliMUONResponseTrigger()
- : AliMUONResponse(),
- fTriggerEfficiency(0x0)
+ : AliMUONResponse()
{
/// Default constructor
}
{
twentyNano=1;
}
-
- Bool_t isTrig[2]={kTRUE,kTRUE};
+
+ Int_t nboard=0;
for ( Int_t cath = AliMp::kCath0; cath <= AliMp::kCath1; ++cath )
{
xhit,yhit,x,y,z,ix,iy));
continue;
}
- AliMUONDigit* d = new AliMUONDigit(detElemId,pad.GetLocalBoardId(0),
+
+ if ( cath == AliMp::kCath0 ) nboard = pad.GetLocalBoardId(0);
+
+ AliMUONDigit* d = new AliMUONDigit(detElemId,nboard,
pad.GetLocalBoardChannel(0),cath);
d->SetPadXY(ix,iy);
//this is not currently supported by the digit class. Change that or not ?
d->SetCharge(twentyNano);
- if(fTriggerEfficiency){
- if(cath==0){
- Int_t nboard = pad.GetLocalBoardId(0);
- fTriggerEfficiency->IsTriggered(detElemId, nboard,
- isTrig[0], isTrig[1]);
- }
- if(!isTrig[cath]) continue;
- }
digits.Add(d);
}
-
-}
-
-
-//_____________________________________________________________________________
-void
-AliMUONResponseTrigger::InitTriggerEfficiency(AliMUONTriggerEfficiencyCells *triggerEfficiency)
-{
-/// Initialize trigger chamber efficiency (on demand)
-
- if ( triggerEfficiency )
- {
- AliDebug(1, "Will apply trigger efficiency");
- }
- else
- {
- AliFatal("I was requested to apply trigger efficiency, but I could "
- "not get it !");
- }
- fTriggerEfficiency = new AliMUONTriggerChamberEfficiency(triggerEfficiency);
-
}