1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 // Enrico Fragiacomo - 15/03/2004
17 // Geometry for the June 2003 SSD beam test
19 #include <TLorentzVector.h>
20 #include <TClonesArray.h>
21 #include <TVirtualMC.h>
22 #include <TGeoMatrix.h>
23 #include <TGeoManager.h>
27 #include "AliTrackReference.h"
28 #include "AliITShit.h"
30 #include "AliITSvSSD03.h"
31 #include "AliITSgeom.h"
32 #include "AliITSgeomSSD.h"
33 #include "AliITSDetTypeSim.h"
34 #include "AliITSCalibrationSSD.h"
35 #include "AliITSsegmentationSSD.h"
36 #include "AliITSsimulationSSD.h"
40 ///////////////////////////////////////////////////////////////////////
45 // geometry of June 2003
47 ///////////////////////////////////////////////////////////////////////
48 ClassImp(AliITSvSSD03)
50 //______________________________________________________________________
51 AliITSvSSD03::AliITSvSSD03():
52 AliITS(), // Base Class
53 fMajorVersion(IsVersion()),// Major version number == IsVersion
54 fMinorVersion(-1), // Minor version number
55 fGeomNumber(2003), // Geometry version number (year)
56 fIDMother(0), //! ITS Mother Volume id.
57 fIgm(kvSSD03){ //! AliITSInitGeometry object {
58 ////////////////////////////////////////////////////////////////////////
59 // Standard default constructor for the ITS SSD test beam 2003 version 1.
65 // A default created class.
66 ////////////////////////////////////////////////////////////////////////
72 //______________________________________________________________________
73 AliITSvSSD03::AliITSvSSD03(const char *title,Int_t gn) :
74 AliITS("ITS",title), // Base Class
75 fMajorVersion(IsVersion()),// Major version number == IsVersion
76 fMinorVersion(2), // Minor version number
77 fGeomNumber(gn), // Geometry version number (year)
78 fIDMother(0), //! ITS Mother Volume id.
79 fIgm(kvSSD03){ //! AliITSInitGeometry object {
80 ////////////////////////////////////////////////////////////////////////
81 // Standard constructor for the ITS SSD testbeam 2003 version 1.
83 // const char *title title for this ITS geometry.
84 // Int_t gn Geometry version number (year) default 2003.
88 // A standard created class.
89 ////////////////////////////////////////////////////////////////////////
94 fIdName = new TString[fIdN];
96 fIdSens = new Int_t[fIdN];
97 for(i=0;i<fIdN;i++) fIdSens[i] = 0;
100 //______________________________________________________________________
101 AliITSvSSD03::~AliITSvSSD03() {
102 ////////////////////////////////////////////////////////////////////////
103 // Standard destructor for the ITS SSD test beam 2003 version 1.
110 ////////////////////////////////////////////////////////////////////////
113 //______________________________________________________________________
114 void AliITSvSSD03::CreateGeometry(){
115 ////////////////////////////////////////////////////////////////////////
116 // Geometry builder for the ITS SSD test beam 2003 version 1.
117 // ALIC ALICE Mother Volume
118 // |- ITSV ITS Mother Volume
119 // |- IDET Detector under Test
126 ////////////////////////////////////////////////////////////////////////
128 switch (fGeomNumber){
130 CreateGeometry2003();
133 CreateGeometry2003();
137 //______________________________________________________________________
138 void AliITSvSSD03::CreateGeometry2003(){
139 ////////////////////////////////////////////////////////////////////////
141 // ALIC ALICE Mother Volume
142 // |- ITSV Beamtest Mother Volume
144 // |- ITSA Aluminum cover for scintillator
145 // | |-ITSS first Trieste trigger plastic scintillator
146 // |- ITSA Aluminum cover for scintillator
147 // | |-ITSS second Trieste's trigger plastic scintillator
149 // |- IGAR Black box around ITST
150 // | |-IAIR Air inside the black box
151 // | |-ITST Detector under Test
153 // |- IFRA Aluminum cover for scintillator
154 // | |-IFRS French plastic scintillator
156 // |- ITSA Aluminum cover for scintillator
157 // | |-ITSS third Trieste's plastic scintillator
159 // ITSA ITSA IGAR IFRA ITSA
160 // Z-> -282 -280 0 16 270
170 ////////////////////////////////////////////////////////////////////////
172 // Define media off-set
173 Int_t *idtmed = fIdtmed->GetArray()+1; // array of media indexes
174 Int_t idrotm[4]; // Array of rotation matrix indexes
175 // These constant character strings are set by cvs during commit
176 // do not change them unless you know what you are doing!
177 const Char_t *cvsDate="$Date$";
178 const Char_t *cvsRevision="$Revision$";
179 //Float_t yposition= 0.0;
182 // Define Rotation-reflextion Matrixes needed
183 // 0 is the unit matrix
186 // Beamtest mother volume (air) positioned in ALIC mother volume
190 gMC->Gsvolu("ITSV","BOX",idtmed[0],data,3);
191 gMC->Gspos("ITSV",1,"ALIC",0.0,0.0,0.0,0,"ONLY");
193 TGeoVolumeAssembly *itsV = gGeoManager->MakeVolumeAssembly("ITSV");
194 const Int_t length=100;
195 Char_t vstrng[length];
196 if(fIgm.WriteVersionString(vstrng,length,(AliITSVersion_t)IsVersion(),
197 fMinorVersion,cvsDate,cvsRevision))
198 itsV->SetTitle(vstrng);
199 else Error("CreateGeometry","Error writing/setting version string");
200 //printf("Title set to %s\n",vstrng);
201 TGeoVolume *alic = gGeoManager->GetVolume("ALIC");
203 Error("CreateGeometry","alic=0");
206 // See idrotm[199] for angle definitions.
207 alic->AddNode(itsV,1,0);
209 // Trieste's plastic scintillators for the trigger (2 at beam enter)
210 // ...define them (aluminum cover + scintillator inside)
212 data[0] = 30.01; // size+2x50 microns Kapton
215 //gMC->Gsvolu("ITSA","BOX ",idtmed[3],data,3);//
216 gMC->Gsvolu("ITSA","BOX ",idtmed[4],data,3);//
220 // plastic scintillator
221 gMC->Gsvolu("ITSS","BOX ",idtmed[2],data,3);
222 gMC->Gspos("ITSS",1,"ITSA",0.0,0.0,0.0,0,"ONLY");
223 // ... and place them inside ITSV
224 AliMatrix(idrotm[0], 90.0,0.0, 0.0,0.0, 90.0,270.0);
225 // first scintillator
226 gMC->Gspos("ITSA",1,"ITSV",0.0,0.0,-282.0,idrotm[0],"ONLY");
227 // second scintillator
228 gMC->Gspos("ITSA",2,"ITSV",0.0,0.0,-280.0,idrotm[0],"ONLY");
230 // black kapton box with the SSD sensor inside (width 50 microns)
234 gMC->Gsvolu("IGAR","BOX ",idtmed[4],data,3); //
235 // air in the black kapton box
239 gMC->Gsvolu("IAIR","BOX ",idtmed[0],data,3); //
241 Float_t ddettest=300.0E-4;
243 data[1] = 0.5*ddettest;
245 gMC->Gsvolu("ITST","BOX ",idtmed[1],data,3);// sensitive detector volume
246 // place ITST inside IAIR (no rotation: it will be rotated with IGAR)
247 gMC->Gspos("ITST",1,"IAIR",0.0,0.0,0.0,0,"ONLY");
248 // place IAIR inside IGAR
249 gMC->Gspos("IAIR",1,"IGAR",0.0,0.0,0.0,0,"ONLY");
250 // place IGAR inside ITSV
251 AliMatrix(idrotm[0], 90.0,0.0, 0.0,0.0, 90.0,270.0);
252 gMC->Gspos("IGAR",1,"ITSV",0.0,0.0,0.0,idrotm[0],"ONLY");
253 //gMC->Gspos("IGAR",1,"ITSV",0.0,0.0,0.0,0,"ONLY");
255 // The so called French detector
256 // ...define it (Kapton cover + scintillator inside)
258 data[0] = 2.01; // size+2x50 microns Kapton width
261 gMC->Gsvolu("IFRA","BOX ",idtmed[4],data,3);//
265 // plastic scintillator
266 gMC->Gsvolu("IFRS","BOX ",idtmed[2],data,3);
267 gMC->Gspos("IFRS",1,"IFRA",0.0,0.0,0.0,0,"ONLY");
268 // ... and place it inside ITSV
269 AliMatrix(idrotm[0], 90.0,0.0, 0.0,0.0, 90.0,270.0);
270 gMC->Gspos("IFRA",1,"ITSV",0.0,0.0,16.0,idrotm[0],"ONLY");
272 // An other Trieste's plastic scintillator for the trigger
273 // ...just place an other copy inside ITSV
274 AliMatrix(idrotm[0], 90.0,0.0, 0.0,0.0, 90.0,270.0);
275 gMC->Gspos("ITSA",3,"ITSV",0.0,0.0,270.0,idrotm[0],"ONLY");
279 //______________________________________________________________________
280 void AliITSvSSD03::CreateMaterials(){
281 ////////////////////////////////////////////////////////////////////////
283 // Create ITS SSD test beam materials
284 // This function defines the default materials used in the Geant
285 // Monte Carlo simulations for the geometries AliITSv1, AliITSv3,
287 // In general it is automatically replaced by
288 // the CreateMaterials routine defined in AliITSv?. Should the function
289 // CreateMaterials not exist for the geometry version you are using this
290 // one is used. See the definition found in AliITSv5 or the other routine
291 // for a complete definition.
299 /////////////////////////////////////////////////////////////////////////
301 switch (fGeomNumber){
303 CreateMaterials2003();
306 CreateMaterials2003();
310 //______________________________________________________________________
311 void AliITSvSSD03::CreateMaterials2003(){
312 ////////////////////////////////////////////////////////////////////////
314 // Create ITS SSD test beam materials
315 // This function defines the default materials used in the Geant
316 // Monte Carlo simulations for the geometries AliITSv1, AliITSv3,
318 // In general it is automatically replaced by
319 // the CreateMaterials routine defined in AliITSv?. Should the function
320 // CreateMaterials not exist for the geometry version you are using this
321 // one is used. See the definition found in AliITSv5 or the other routine
322 // for a complete definition.
330 /////////////////////////////////////////////////////////////////////////
332 Int_t ifield = gAlice->Field()->Integ();
333 Float_t fieldm = gAlice->Field()->Max();
336 Float_t ascin[2]={1.01,12.01};
337 Float_t zscin[2]={1,6};
338 Float_t wscin[2]={1,1};
339 Float_t denscin=1.03;
340 AliMixture( 3, "Scintillator$",ascin,zscin,denscin,-2,wscin);
341 AliMedium(3, "Scintillator$", 3, 1, ifield, fieldm, 0.1, .01,
345 Float_t tmaxfdAl = 0.1; // Degree
346 Float_t stemaxAl = 0.01; // cm
347 Float_t deemaxAl = 0.1; // Fraction of particle's energy 0<deemax<=1
348 Float_t epsilAl = 1.0E-4;//
349 Float_t stminAl = 0.0; // cm "Default value used"
350 AliMaterial(4, "Al$", 26.98, 13., 2.7, 8.9, 37.2);
351 AliMedium(4, "Al$", 4, 0, ifield, fieldm, tmaxfdAl, stemaxAl,
352 deemaxAl, epsilAl, stminAl);
355 Float_t tmaxfdAir = 0.1; // Degree
356 Float_t stemaxAir = .10000E+01; // cm
357 Float_t deemaxAir = 0.1; // Fraction of particle's energy 0<deemax<=1
358 Float_t epsilAir = 1.0E-4;//
359 Float_t stminAir = 0.0; // cm "Default value used"
360 AliMaterial(1,"AIR$",0.14610E+03,0.73000E+01,0.12050E-03,
361 0.30423E+05,0.99900E+03);
362 AliMedium(1,"AIR$",1,0,ifield,fieldm,tmaxfdAir,stemaxAir,deemaxAir,
366 Float_t tmaxfdSi = 0.1; // Degree
367 //Float_t stemaxSi = 0.0075; // cm
368 //Float_t deemaxSi = 0.1; // Fraction of particle's energy 0<deemax<=1
369 //Float_t stminSi = 0.0; // cm "Default value used"
370 //Float_t tmaxfdSi = 10; // Degree
371 Float_t stemaxSi = 0.01; // cm
372 Float_t deemaxSi = 0.1; // Fraction of particle's energy 0<deemax<=1
373 Float_t epsilSi = 1.0E-4;//
374 //Float_t epsilSi = 0.003;//
375 Float_t stminSi = 0.003; // cm "Default value used"
376 AliMaterial(2,"SSD SI$",0.28086E+02,0.14000E+02,0.23300E+01,
377 0.93600E+01,0.99900E+03);
378 AliMedium(2,"SSD SI$",2,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,
382 AliMaterial(5, "Kapton$", 12.011, 6., 1.3, 31.27, 999.);
383 AliMedium(5, "Kapton$", 5, 0,ifield,fieldm, 10., .01, .1, .003, .003);
385 //______________________________________________________________________
386 void AliITSvSSD03::InitAliITSgeom(){
394 const Int_t knlayers=1;
395 const TString kname="ALIC_1/ITSV_1/IGAR_1/IAIR_1/ITST_1";
396 const Int_t knlad[knlayers]={knlayers*1},kndet[knlayers]={knlayers*1};
399 Double_t trans[3]={3*0.0},rot[10]={10*0.0};
402 AliITSgeom* geom = new AliITSgeom(0,knlayers,knlad,kndet,1);
404 npar=3;par[0]=3.5;par[1]=0.5*300.0E-4;par[2]=2.0;
405 geom->ReSetShape(kSSD,new AliITSgeomSSD275and75(npar,par));
406 gMC->GetTransformation(kname.Data(),materix);
407 geom->CreateMatrix(0,1,1,1,kSSD,trans,rot);
408 geom->SetTrans(0,materix.GetTranslation());
409 geom->SetRotMatrix(0,materix.GetRotationMatrix());
410 geom->GetGeomMatrix(0)->SetPath(kname.Data());
413 //______________________________________________________________________
414 void AliITSvSSD03::Init(){
415 ////////////////////////////////////////////////////////////////////////
416 // Initialise the ITS after it has been created.
423 ////////////////////////////////////////////////////////////////////////
426 Info("Init","**********AliITSvSSD03 %d _Init *************",fMinorVersion);
428 AliDebug(1,Form("Init: Major version %d Minor version %d",fMajorVersion,
431 UpdateInternalGeometry();
434 fIDMother = gMC->VolId("ITSV"); // ITS Mother Volume ID.
437 //______________________________________________________________________
438 void AliITSvSSD03::SetDefaults(){
439 // sets the default segmentation, rerponse, digit and raw cluster classes
446 const Float_t kconv = 1.0e+04; // convert cm to microns
448 Info("SetDefaults","Setting up only SSD detector");
450 if(!fDetTypeSim) fDetTypeSim = new AliITSDetTypeSim();
451 fDetTypeSim->SetITSgeom(GetITSgeom());
453 fDetTypeSim->ResetCalibrationArray();
454 fDetTypeSim->ResetSegmentation();
458 // Get shape info. Do it this way for now.
459 s0 = (AliITSgeomSSD*) GetITSgeom()->GetShape(kSSD);
460 AliITSCalibration *resp0=new AliITSCalibrationSSD("simulated");
461 SetCalibrationModel(GetITSgeom()->GetStartSSD(),resp0);
463 AliITSsegmentationSSD *seg0=new AliITSsegmentationSSD();
464 seg0->SetDetSize(s0->GetDx()*2.*kconv, // base this on AliITSgeomSSD
465 s0->GetDz()*2.*kconv, // for now.
466 s0->GetDy()*2.*kconv); // x,z,y full width in microns.
467 //seg0->SetNPads(256,160);// Number of Bins in x and z
469 SetSegmentationModel(kSSD,seg0);
471 // set digit and raw cluster classes to be used
472 const char *kData0=(fDetTypeSim->GetCalibrationModel(GetITSgeom()->GetStartSSD()))->DataType();
473 if (strstr(kData0,"real")) fDetTypeSim->SetDigitClassName(kSSD,"AliITSdigit");
474 else fDetTypeSim->SetDigitClassName(kSSD,"AliITSdigitSSD");
475 // SetSimulationModel(kSSD,new AliITSsimulationSSD(seg0,resp0));
476 // iDetType->ReconstructionModel(new AliITSClusterFinderSSD());
479 //SetResponseModel(kSPD,new AliITSCalibrationSPD());
480 //SetSegmentationModel(kSPD,new AliITSsegmentationSPD());
481 //fDetTypeSim->SetDigitClassName(kSPD,"AliITSdigitSPD");
483 //SetResponseModel(kSDD,new AliITSCalibrationSDD());
484 //SetSegmentationModel(kSDD,new AliITSsegmentationSDD());
485 //fDetTypeSim->SetDigitClassName(kSDD,"AliITSdigitSDD");
490 Warning("SetDefaults",
491 "Only the four basic detector types are initialised!");
495 //______________________________________________________________________
496 void AliITSvSSD03::SetDefaultSimulation(){
497 // sets the default simulation.
505 if(!fDetTypeSim) fDetTypeSim = new AliITSDetTypeSim();
507 AliITSsimulation *sim;
508 // AliITSsegmentation *seg;
509 // AliITSCalibration *res;
513 //sim = fDetTypeSim->GetSimulationModel(kSPD);
515 //seg = (AliITSsegmentation*)fDetTypeSim->GetSegmentationModel(kSPD);
516 //res = (AliITSCalibration*)fDetTypeSim->GetResponseModel(nspd);
517 //sim = new AliITSsimulationSPDdubna(seg,res,1);
518 //SetSimulationModel(kSPD,sim);
519 //}else{ // simulation exists, make sure it is set up properly.
520 //sim->SetSegmentationModel((AliITSsegmentation*)fDetTypeSim->GetSegmentationModel(kSPD));
521 //sim->SetResponseModel((AliITSCalibration*)fDetTypeSim->GetResponseModel(nspd));
522 //((AliITSsimulation*)sim)->Init();
523 // if(sim->GetResponseModel()==0) sim->SetResponseModel(
524 // (AliITSCalibration*)iDetType->GetResponseModel());
525 // if(sim->GetSegmentationModel()==0) sim->SetSegmentationModel(
526 // (AliITSsegmentation*)iDetType->GetSegmentationModel());
528 //} // end if !fDetTypeSim
532 //sim = fDetTypeSim->GetSimulationModel(kSDD);
534 //seg = (AliITSsegmentation*)fDetTypeSim->GetSegmentationModel(kSDD);
535 //res = (AliITSCalibration*)fDetTypeSim->GetResponseModel(nsdd);
536 //sim = new AliITSsimulationSDD(seg,res);
537 //SetSimulationModel(kSDD,sim);
538 //}else{ // simulation exists, make sure it is set up properly.
539 //sim->SetSegmentationModel((AliITSsegmentation*)fDetTypeSim->GetSegmentationModel(kSDD));
540 //sim->SetResponseModel((AliITSCalibration*)fDetTypeSim->GetResponseModel(nsdd));
542 //((AliITSsimulation*)sim)->Init();
543 // if(sim->GetResponseModel()==0) sim->SetResponseModel(
544 // (AliITSCalibration*)iDetType->GetResponseModel());
545 // if(sim->GetSegmentationModel()==0) sim->SetSegmentationModel(
546 // (AliITSsegmentation*)iDetType->GetSegmentationModel());
548 //} // end if !iDetType
551 sim = fDetTypeSim->GetSimulationModel(kSSD);
553 // seg = (AliITSsegmentation*)fDetTypeSim->GetSegmentationModel(kSSD);
554 // res = (AliITSCalibration*)fDetTypeSim->GetResponseModel(GetITSgeom()->GetStartSSD());
555 sim = new AliITSsimulationSSD(fDetTypeSim);
556 SetSimulationModel(kSSD,sim);
557 }else{ // simulation exists, make sure it is set up properly.
558 sim->SetSegmentationModel(kSSD,(AliITSsegmentation*)fDetTypeSim->GetSegmentationModel(kSSD));
559 sim->SetCalibrationModel(GetITSgeom()->GetStartSSD(),(AliITSCalibration*)fDetTypeSim->GetCalibrationModel(GetITSgeom()->GetStartSSD()));
560 ((AliITSsimulation*)sim)->Init();
561 // if(sim->GetResponseModel()==0) sim->SetResponseModel(
562 // (AliITSCalibration*)iDetType->GetResponseModel());
563 // if(sim->GetSegmentationModel()==0) sim->SetSegmentationModel(
564 // (AliITSsegmentation*)iDetType->GetSegmentationModel());
566 } // end if !iDetType
569 //______________________________________________________________________
570 void AliITSvSSD03::DrawModule() const {
571 ////////////////////////////////////////////////////////////////////////
572 // Draw a shaded view of the ITS SSD test beam version 1.
579 ////////////////////////////////////////////////////////////////////////
581 gMC->Gsatt("*", "seen", -1);
582 gMC->Gsatt("ALIC","SEEN",0);
583 gMC->Gsatt("ITSV","SEEN",0);
584 gMC->Gsatt("ITSA","SEEN",1);
585 gMC->Gsatt("ITSS","SEEN",1);
586 gMC->Gsatt("IGAR","SEEN",1);
587 gMC->Gsatt("IAIR","SEEN",0);
588 gMC->Gsatt("ITST","SEEN",1);
589 gMC->Gsatt("IFRA","SEEN",1);
590 gMC->Gsatt("IFRS","SEEN",1);
592 //______________________________________________________________________
593 void AliITSvSSD03::StepManager(){
594 ////////////////////////////////////////////////////////////////////////
595 // Called for every step in the ITS SSD, then calles the
596 // AliITShit class creator with the information to be recoreded about
598 // The value of the macro ALIITSPRINTGEOM if set to 1 will allow the
599 // printing of information to a file which can be used to create a .det
600 // file read in by the routine CreateGeometry(). If set to 0 or any other
601 // value except 1, the default behavior, then no such file is created nor
602 // it the extra variables and the like used in the printing allocated.
609 ////////////////////////////////////////////////////////////////////////
610 if(!(this->IsActive())){
612 } // end if !Active volume.
613 if(!(gMC->TrackCharge())) return;
615 Int_t cpy0,mod,id,status;
616 TLorentzVector position, momentum;
617 static AliITShit hit;// Saves on calls to construtors
618 //TClonesArray &lhits = *(GetDetTypeSim()->GetHits());
619 TClonesArray &lhits = *(Hits());
624 if(gMC->IsTrackInside()) status += 1;
625 if(gMC->IsTrackEntering()) status += 2;
626 if(gMC->IsTrackExiting()) status += 4;
627 if(gMC->IsTrackOut()) status += 8;
628 if(gMC->IsTrackDisappeared()) status += 16;
629 if(gMC->IsTrackStop()) status += 32;
630 if(gMC->IsTrackAlive()) status += 64;
632 // Fill hit structure.
633 id = gMC->CurrentVolID(cpy0);
634 if(id==fIdSens[0]){ // Volume name "ITST"
635 mod=2; // Det, ladder
636 } else return; // end if
639 // Fill hit structure.
642 hit.SetTrack(gAlice->GetMCApp()->GetCurrentTrackNumber());
643 gMC->TrackPosition(position);
644 gMC->TrackMomentum(momentum);
645 hit.SetPosition(position);
646 hit.SetTime(gMC->TrackTime());
647 hit.SetMomentum(momentum);
648 hit.SetStatus(status);
649 hit.SetEdep(gMC->Edep());
650 hit.SetShunt(GetIshunt());
651 if(gMC->IsTrackEntering()){
652 hit.SetStartPosition(position);
653 hit.SetStartTime(gMC->TrackTime());
654 hit.SetStartStatus(status);
655 return; // don't save entering hit.
656 } // end if IsEntering
657 // Fill hit structure with this new hit.
658 //Info("StepManager","Calling Copy Constructor");
659 new(lhits[fNhits++]) AliITShit(hit); // Use Copy Construtor.
660 // Save old position... for next hit.
661 hit.SetStartPosition(position);
662 hit.SetStartTime(gMC->TrackTime());
663 hit.SetStartStatus(status);