// with cluster size activated
#include "AliMUONResponseTriggerV1.h"
-#include "AliMUONGeometrySegmentation.h"
#include "AliMUON.h"
#include "AliMUONDigit.h"
#include "AliMUONGeometryTransformer.h"
-#include "AliMUONSegmentation.h"
#include "AliMUONConstants.h"
#include "AliMpPad.h"
transformer->Global2Local(detElemId,xg,yg,zg,xl,yl,zl);
}
- AliMUONSegmentation* Segmentation()
- {
- static AliMUONSegmentation* segmentation = muon()->GetSegmentation();
- return segmentation;
- }
}
//------------------------------------------------------------------
Float_t AliMUONResponseTriggerV1::FireStripProb(Float_t x4, Float_t theta)
const
{
-// parametrisation of the probability that a strip neighbour of the main
-// strip is fired (V.Barret B.Espagnon and P.Rosnet INT/DIM/01-04 (2001)
-// WARNING : need to convert x4 from cm to mm
+/// parametrisation of the probability that a strip neighbour of the main
+/// strip is fired (V.Barret B.Espagnon and P.Rosnet INT/DIM/01-04 (2001)
+/// WARNING : need to convert x4 from cm to mm
return
(TMath::Cos(theta)*fA/(fA+TMath::Cos(theta)*TMath::Power(x4*10.,fB))+fC)/
Int_t ix = pad.GetIndices().GetFirst();
Int_t iy = pad.GetIndices().GetSecond();
- AliMUONDigit* d = new AliMUONDigit;
- d->SetDetElemId(detElemId);
-
- d->SetPadX(ix);
- d->SetPadY(iy);
+ AliMUONDigit* d = new AliMUONDigit(detElemId,pad.GetLocation(0).GetFirst(),
+ pad.GetLocation(0).GetSecond(),
+ cath);
+ d->SetPadXY(ix,iy);
- d->SetSignal(twentyNano);
- d->AddPhysicsSignal(d->Signal());
- d->SetCathode(cath);
+ d->SetCharge(twentyNano);
digits.Add(d);
SetGenerCluster(); // 1 randum number per cathode (to be checked)
else qp = 0;
if (qp == 1) { // this digit is fired
- AliMUONDigit* dNeigh = new AliMUONDigit;
- dNeigh->SetDetElemId(detElemId);
+ AliMUONDigit* dNeigh = new AliMUONDigit(detElemId,padNeigh.GetLocation(0).GetFirst(),
+ padNeigh.GetLocation(0).GetSecond(),
+ cath);
- dNeigh->SetPadX(ixNeigh);
- dNeigh->SetPadY(iyNeigh);
-
- dNeigh->SetSignal(twentyNano);
- dNeigh->AddPhysicsSignal(dNeigh->Signal());
- dNeigh->SetCathode(cath);
+ dNeigh->SetPadXY(ixNeigh,iyNeigh);
+ dNeigh->SetCharge(twentyNano);
digits.Add(dNeigh);
} // digit fired
} // pad is valid
///-----------------NON-BENDING------------------------------------- /n
/// Returns list of 10 next neighbours for given Y strip (ix, iy) /n
/// neighbour number 9 8 7 6 5 (Y strip (ix, iy)) 0 1 2 3 4 in the list /n
- /// \_______/ \_______/ /n
+ /// |_______| |_______/ /n
+
/// left right /n
for (Int_t i=0; i<10; i++) {