#include "AliITSgeom.h"
#include "AliITSsimulationSSD.h"
#include "AliITSTableSSD.h"
+#include <TF1.h>
+
ClassImp(AliITSsimulationSSD)
////////////////////////////////////////////////////////////////////////
fMapA2(0),
fIonE(0.0),
fDifConst(),
-fDriftVel(){
+fDriftVel(),
+fTimeResponse(NULL){
//default Constructor
//Inputs:
// none.
fMapA2(0),
fIonE(0.0),
fDifConst(),
-fDriftVel(){
+fDriftVel(),
+fTimeResponse(NULL){
// Constructor
// Input:
// AliITSDetTypeSim Pointer to the SSD dettype to be used
// Return
// A standard constructed AliITSsimulationSSD class
+ fTimeResponse = new TF1("ftimeresponse",".5*x*exp(1.-.5*x)");
Init();
}
//----------------------------------------------------------------------
this->fDifConst[1] = s.fDifConst[1];
this->fDriftVel[0] = s.fDriftVel[0];
this->fDriftVel[1] = s.fDriftVel[1];
+ this->fTimeResponse = s.fTimeResponse;
return *this;
}
/*
fMapA2(source.fMapA2),
fIonE(source.fIonE),
fDifConst(),
-fDriftVel(){
+fDriftVel(),
+fTimeResponse(source.fTimeResponse){
// copy constructor
fDifConst[0] = source.fDifConst[0];
fDifConst[1] = source.fDifConst[1];
AliITSsimulationSSD::~AliITSsimulationSSD() {
// destructor
delete fMapA2;
+ delete fTimeResponse;
//delete fDCS;
}
//______________________________________________________________________
Double_t x1=0.0, y1=0.0, z1=0.0;
Double_t de=0.0;
Int_t module = mod->GetIndex();
+ Double_t tof = 0.;
+
AliITSsegmentationSSD* seg = (AliITSsegmentationSSD*)GetSegmentationModel(2);
cout << endl;
} // end if
if (mod->LineSegmentL(i, x0, x1, y0, y1, z0, z1, de, idtrack)) {
+
+ // Scale down dE/dx according to the hit's TOF wrt to the trigger
+ // Necessary for pileup simulation
+ // EF - 21/04/09
+ tof = mod->GetHit(i)->GetTOF();
+ tof *= 1.E+6; // convert time in microsecond
+ if(tof<2.) de = de * fTimeResponse->Eval(-1.*tof+2.);
+ else de = 0.;
+ //
+
HitToDigit(module, x0, y0, z0, x1, y1, z1, de,tav);
if (lasttrack != idtrack || i==(nhits-1)) {
GetList(idtrack,i,module,pList,tav);
// signal is converted in unit of ADC
signal = res->GetSSDDEvToADC(signal);
- if(signal>4096.) signal = 4096.;//if exceeding, accumulate last one
+ if(signal>4095.) signal = 4095.;//if exceeding, accumulate last one
// threshold for zero suppression is set on the basis of the noise
// A good value is 3*sigma_noise
-