- // SPD
- cout << "Changing from Default SPD simulation, and responce." << endl;
- AliITSDetType *iDetType=ITS->DetType(0);
- AliITSsegmentationSPD *seg0=(AliITSsegmentationSPD*)iDetType->
- GetSegmentationModel();
- AliITSresponseSPD *res0 = (AliITSresponseSPD*)iDetType->GetResponseModel();
- AliITSsimulationSPD *sim0=new AliITSsimulationSPD(seg0,res0);
- ITS->SetSimulationModel(0,sim0);
- // test
- cout << "SPD dimensions " << seg0->Dx() << " " << seg0->Dz() << endl;
- cout << "SPD npixels " << seg0->Npz() << " " << seg0->Npx() << endl;
- cout << "SPD pitches " << seg0->Dpz(0) << " " << seg0->Dpx(0) << endl;
- // end test
-
- // SDD
- cout << "Changing from Default SDD simulation, and responce." << endl;
- //Set response functions
- Float_t baseline = 10.;
- Float_t noise = 1.75;
- // SDD compression param: 2 fDecrease, 2fTmin, 2fTmax or disable,
- // 2 fTolerance
- AliITSDetType *iDetType=ITS->DetType(1);
- AliITSresponseSDD *res1 = (AliITSresponseSDD*)iDetType->GetResponseModel();
- if (!res1) {
- res1=new AliITSresponseSDD();
- ITS->SetResponseModel(1,res1);
- } // end if !res1
- Float_t fCutAmp = baseline + 2.*noise;
- Int_t cp[8]={0,0,fCutAmp,fCutAmp,0,0,0,0}; //1D
-
- //res1->SetZeroSupp("2D");
- res1->SetZeroSupp("1D");
- res1->SetNoiseParam(noise,baseline);
- res1->SetDo10to8(kTRUE);
- res1->SetCompressParam(cp);
- res1->SetMinVal(4);
- res1->SetDiffCoeff(3.6,40.);
- AliITSsegmentationSDD *seg1=(AliITSsegmentationSDD*)iDetType->
- GetSegmentationModel();
- if (!seg1) {
- seg1 = new AliITSsegmentationSDD(ITS->GetITSgeom(),res1);
- ITS->SetSegmentationModel(1,seg1);
- } // end if !seg1
- AliITSsimulationSDD *sim1 = new AliITSsimulationSDD(seg1,res1);
- sim1->SetDoFFT(1);
- sim1->SetCheckNoise(kFALSE);
- ITS->SetSimulationModel(1,sim1);
-
- // SSD
- cout << "Changing from Default SSD simulation, and responce." << endl;
- AliITSDetType *iDetType = ITS->DetType(2);
- AliITSsegmentationSSD *seg2 = (AliITSsegmentationSSD*)iDetType->
- GetSegmentationModel();
- AliITSresponseSSD *res2 = (AliITSresponseSSD*)iDetType->GetResponseModel();
- res2->SetSigmaSpread(3.,2.);
- AliITSsimulationSSD *sim2 = new AliITSsimulationSSD(seg2,res2);
- ITS->SetSimulationModel(2,sim2);
-
- if(!gAlice->TreeD()){
- cout << "Having to create the Digits Tree." << endl;
- gAlice->MakeTree("D");
- } // end if !gAlice->TreeD()
- //make branch
- ITS->MakeBranch("D");
- ITS->SetTreeAddress();
- cout << "Digitizing ITS..." << endl;