/*
$Log$
-Revision 1.20 2000/10/02 21:28:08 fca
-Removal of useless dependecies via forward declarations
+Revision 1.14.2.9 2000/10/05 07:49:27 nilsen
+Removed hit generation from step manager.
+
+Revision 1.14.2.8 2000/07/31 13:50:37 barbera
+Updated from the release
Revision 1.19 2000/07/10 16:07:19 fca
Release version of ITS code
#include <TFile.h> // only required for Tracking function?
#include <TCanvas.h>
#include <TObjArray.h>
+#include <TObjString.h>
#include <TClonesArray.h>
#include "AliMC.h"
-#include "AliMagF.h"
#include "AliConst.h"
+#include "AliRun.h"
+#include "AliMagF.h"
#include "AliITShit.h"
#include "AliITSv1.h"
-#include "AliRun.h"
ClassImp(AliITSv1)
// Standard default constructor for the ITS version 1.
////////////////////////////////////////////////////////////////////////
- fIdN = 6;
- fIdName = new TString[fIdN];
- fIdName[0] = "ITS1";
- fIdName[1] = "ITS2";
- fIdName[2] = "ITS3";
- fIdName[3] = "ITS4";
- fIdName[4] = "ITS5";
- fIdName[5] = "ITS6";
- fIdSens = new Int_t[fIdN];
- for (Int_t i=0;i<fIdN;i++) fIdSens[i]=fIdName[i].Length();
+ fIdN = 0;
+ fIdName = 0;
+ fIdSens = 0;
+ fMajorVersion = 1;
+ fMinorVersion = -1;
}
//_____________________________________________________________________________
AliITSv1::AliITSv1(const char *name, const char *title) : AliITS(name, title){
// Standard constructor for the ITS version 1.
////////////////////////////////////////////////////////////////////////
- fIdN = 6;
- fIdName = new TString[fIdN];
- fIdName[0] = "ITS1";
- fIdName[1] = "ITS2";
- fIdName[2] = "ITS3";
- fIdName[3] = "ITS4";
- fIdName[4] = "ITS5";
- fIdName[5] = "ITS6";
- fIdSens = new Int_t[fIdN];
- for (Int_t i=0;i<fIdN;i++) fIdSens[i]=fIdName[i].Length();
+ fIdN = 6;
+/*
+// TObjArray of TObjStrings
+ fIdName = new TObjArray(fIdN);
+ fIdName->AddAt(new TObjString("ITS1"),0);
+ fIdName->AddAt(new TObjString("ITS2"),1);
+ fIdName->AddAt(new TObjString("ITS3"),2);
+ fIdName->AddAt(new TObjString("ITS4"),3);
+ fIdName->AddAt(new TObjString("ITS5"),4);
+ fIdName->AddAt(new TObjString("ITS6"),5);
+*/
+// Array of TStrings.
+ fIdName = new TString[fIdN];
+ fIdName[0] = "ITS1";
+ fIdName[1] = "ITS2";
+ fIdName[2] = "ITS3";
+ fIdName[3] = "ITS4";
+ fIdName[4] = "ITS5";
+ fIdName[5] = "ITS6";
+ fIdSens = new Int_t[fIdN];
+ for (Int_t i=0;i<fIdN;i++) fIdSens[i] = 0;
+ fMajorVersion = 1;
+ fMinorVersion = 1;
}
//____________________________________________________________________________
// PARAMETERS FOR SMALL (1/2) ITS
-
+/*
for (i = 0; i < 6; ++i) {
dzl[i] /= 2.;
dzb[i] /= 2.;
dzfc /= 2.;
zmax /= 2.;
xltpc /= 2.;
- acable = 15.;
-
+*/
+ acable = 15.;
// EQUAL DISTRIBUTION INTO THE 6 LAYERS
new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->CurrentTrack(),vol,hits);
*/
}
+/*
//____________________________________________________________________________
void AliITSv1::Streamer(TBuffer &R__b){
////////////////////////////////////////////////////////////////////////
AliITS::Streamer(R__b);
} // end if R__b.IsReading()
}
+*/
\ No newline at end of file
/*
$Log$
+Revision 1.11.4.10 2000/07/31 13:50:51 barbera
+Updated from the release
+
Revision 1.17 2000/07/10 16:07:19 fca
Release version of ITS code
#include <TFile.h> // only required for Tracking function?
#include <TCanvas.h>
#include <TObjArray.h>
+#include <TObjString.h>
#include <TClonesArray.h>
#include "AliMC.h"
-#include "AliMagF.h"
#include "AliConst.h"
+#include "AliMagF.h"
#include "AliITShit.h"
#include "AliITSv3.h"
#include "AliRun.h"
-#include "AliMC.h"
-#include "AliConst.h"
-
ClassImp(AliITSv3)
//_____________________________________________________________________________
// Standard default constructor for the ITS version 3.
////////////////////////////////////////////////////////////////////////
- fIdN = 6;
- fIdName = new TString[fIdN];
- fIdName[0] = "ITS1";
- fIdName[1] = "ITS2";
- fIdName[2] = "ITS3";
- fIdName[3] = "ITS4";
- fIdName[4] = "ITS5";
- fIdName[5] = "ITS6";
- fIdSens = new Int_t[fIdN];
- for (Int_t i=0;i<fIdN;i++) fIdSens[i]=fIdName[i].Length();
- fMinorVersionV3=1;
+ fIdN = 0;
+ fIdName = 0;
+ fIdSens = 0;
+ fMajorVersion = 3;
+ fMinorVersion = -1;
}
//____________________________________________________________________________
AliITSv3::AliITSv3(const AliITSv3 &source){
////////////////////////////////////////////////////////////////////////
// Standard constructor for the ITS version 3.
////////////////////////////////////////////////////////////////////////
- fIdN = 6;
- fIdName = new TString[fIdN];
+
+ fIdN = 6;
+/*
+// TObjArray of TObjStrings
+ fIdName = new TObjArray(fIdN);
+ fIdName->AddAt(new TObjString("ITS1"),0);
+ fIdName->AddAt(new TObjString("ITS2"),1);
+ fIdName->AddAt(new TObjString("ITS3"),2);
+ fIdName->AddAt(new TObjString("ITS4"),3);
+ fIdName->AddAt(new TObjString("ITS5"),4);
+ fIdName->AddAt(new TObjString("ITS6"),5);
+*/
+// Array of TStrings.
+ fIdName = new TString[fIdN];
fIdName[0] = "ITS1";
fIdName[1] = "ITS2";
fIdName[2] = "ITS3";
fIdName[4] = "ITS5";
fIdName[5] = "ITS6";
fIdSens = new Int_t[fIdN];
- for (Int_t i=0;i<fIdN;i++) fIdSens[i]=fIdName[i].Length();
- fMinorVersionV3=1;
+ for (Int_t i=0;i<fIdN;i++) fIdSens[i] = 0;
+ fMajorVersion = 3;
+ fMinorVersion = 1;
}//__________________________________________________________________________
void AliITSv3::BuildGeometry(){
////////////////////////////////////////////////////////////////////////
// --- Define SSD with the 35+39 lay-out
- if (fMinorVersionV3 < 3) {
+ if (fMinorVersion < 3) {
//--- Define ghost volume containing the Strip Detectors and fill it with air
// or vacuum
// --- Define SSD with the 32+36 lay-out
- if (fMinorVersionV3 >2 && fMinorVersionV3 < 6) {
+ if (fMinorVersion >2 && fMinorVersion < 6) {
//--- Define ghost volume containing the Strip Detectors and fill it with air
// or vacuum
// GOTO 8901 ! skip outer wall
- if (fMinorVersionV3 == 0 || fMinorVersionV3 == 3) {
+ if (fMinorVersion == 0 || fMinorVersion == 3) {
dits[0] = 49.9;
dits[1] = dits[0] + .06926;
// GOTO 9012 ! skip octagonal frame
- if (fMinorVersionV3 == 1) {
+ if (fMinorVersion == 1) {
rzero = 34.;
dtra[0] = .92;
gMC->Gspos(knatra1[15], 1, "ITSV", xpos, ypos, zpos, idrotm[5115], "ONLY");
- } else if (fMinorVersionV3 == 4) {
+ } else if (fMinorVersion == 4) {
rzero = 34.;
// GOTO 9123 ! skip hexagonal frame
- if (fMinorVersionV3 == 2) {
+ if (fMinorVersion == 2) {
rzero = 33.5;
dtra2[0] = .92;
gMC->Gspos(knatra4[15], 1, "ITSV", xpos, ypos, zpos, idrotm[5225], "ONLY");
- } else if (fMinorVersionV3 == 5) {
+ } else if (fMinorVersion == 5) {
rzero = 33.5;
gMC->Gsvolu("RP04", "PGON", idtmed[274], dpgon, 10);
gMC->Gspos("RP04", 1, "ITSV", xpos, ypos, zpos, 0, "ONLY");
- if (fMinorVersionV3 < 3 ) {
+ if (fMinorVersion < 3 ) {
offset2 = 5.2;
dpgon[0] = offset2 + 360./(2.*35.);
dpgon[1] = 360.;
gMC->Gsvolu("RP06", "PGON", idtmed[274], dpgon, 10);
gMC->Gspos("RP06", 1, "ITSV", xpos, ypos, zpos, 0, "ONLY");
}
- if (fMinorVersionV3 > 2 && fMinorVersionV3 < 6) {
+ if (fMinorVersion > 2 && fMinorVersion < 6) {
offset2 = 5.2;
dpgon[0] = offset2 + 5.625;
dpgon[1] = 360.;
gMC->Gsvolu("LP04", "PGON", idtmed[274], dpgon, 10);
gMC->Gspos("LP04", 1, "ITSV", xpos, ypos, zpos, 0, "ONLY");
- if (fMinorVersionV3 < 3) {
+ if (fMinorVersion < 3) {
offset2 = 5.2;
dpgon[0] = offset2 + 360./(2.*35.);
dpgon[1] = 360.;
gMC->Gsvolu("LP06", "PGON", idtmed[274], dpgon, 10);
gMC->Gspos("LP06", 1, "ITSV", xpos, ypos, zpos, 0, "ONLY");
}
- if (fMinorVersionV3 > 2 && fMinorVersionV3 < 6) {
+ if (fMinorVersion > 2 && fMinorVersion < 6) {
offset2 = 5.2;
dpgon[0] = offset2 + 5.625;
dpgon[1] = 360.;
if (fEuclidOut) {
gMC->WriteEuclid("ITSgeometry", "ITSV", 1, 5);
- }
- fMinorVersion = fMinorVersionV3;
+ };
}
//_____________________________________________________________________________
void AliITSv3::CreateMaterials(){
AliITS::Init();
fMajorVersion = 3;
- fMinorVersion = fMinorVersionV3;
}
//_____________________________________________________________________________
void AliITSv3::StepManager(){
} // end if printit[layer][ladder][detector]
#endif
}
+/*
//____________________________________________________________________________
void AliITSv3::Streamer(TBuffer &R__b){
////////////////////////////////////////////////////////////////////////
AliITS::Streamer(R__b);
} // end if R__b.IsReading()
}
-
-
+*/
\ No newline at end of file
/*
$Log$
-Revision 1.23 2000/10/02 16:35:23 barbera
-Forward declarations added
-
Revision 1.14.4.12 2000/10/02 16:04:03 barbera
Forward declarations added
#include <TFile.h> // only required for Tracking function?
#include <TCanvas.h>
#include <TObjArray.h>
+#include <TObjString.h>
#include <TClonesArray.h>
#include <TBRIK.h>
+#include <TSystem.h>
-#include "AliRun.h"
#include "AliMC.h"
-#include "TSystem.h"
+#include "AliRun.h"
#if ALIITSPRINTGEOM==1
#include "../TGeant3/TGeant3.h"
#endif
// Standard default constructor for the ITS version 5.
////////////////////////////////////////////////////////////////////////
- fIdN = 6;
- fIdName = new TString[fIdN];
- fIdName[0] = "ITS1";
- fIdName[1] = "ITS2";
- fIdName[2] = "ITS3";
- fIdName[3] = "ITS4";
- fIdName[4] = "ITS5";
- fIdName[5] = "ITS6";
- fIdSens = new Int_t[fIdN];
- for (Int_t i=0;i<fIdN;i++) fIdSens[i]=fIdName[i].Length();
+ fIdN = 0;
+ fIdName = 0;
+ fIdSens = 0;
fMajorVersion = 5;
+ fMinorVersion = -1;
}
//____________________________________________________________________________
AliITSv5::AliITSv5(const AliITSv5 &source){
////////////////////////////////////////////////////////////////////////
// Standard constructor for the ITS version 5.
////////////////////////////////////////////////////////////////////////
- fIdN = 6;
- fIdName = new TString[fIdN];
+ fIdN = 6;
+/*
+// TObjArray of TObjStrings
+ fIdName = new TObjArray(fIdN);
+ fIdName->AddAt(new TObjString("ITS1"),0);
+ fIdName->AddAt(new TObjString("ITS2"),1);
+ fIdName->AddAt(new TObjString("ITS3"),2);
+ fIdName->AddAt(new TObjString("ITS4"),3);
+ fIdName->AddAt(new TObjString("ITS5"),4);
+ fIdName->AddAt(new TObjString("ITS6"),5);
+*/
+// Array of TStrings.
+ fIdName = new TString[fIdN];
fIdName[0] = "ITS1";
fIdName[1] = "ITS2";
fIdName[2] = "ITS3";
fIdName[4] = "ITS5";
fIdName[5] = "ITS6";
fIdSens = new Int_t[fIdN];
- for (Int_t i=0;i<fIdN;i++) fIdSens[i]=fIdName[i].Length();
+ for (Int_t i=0;i<fIdN;i++) fIdSens[i] = 0;
fMajorVersion = 5;
+ fMinorVersion = 1;
fEuclidMaterial = "$ALICE_ROOT/Euclid/ITSgeometry_5.tme";
fEuclidGeometry = "$ALICE_ROOT/Euclid/ITSgeometry_5.euc";
#endif
return;
}
+/*
//____________________________________________________________________________
void AliITSv5::Streamer(TBuffer &R__b){
////////////////////////////////////////////////////////////////////////
AliITS::Streamer(R__b);
} // end if R__b.IsReading()
}
+*/
\ No newline at end of file