X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITSv5.cxx;h=a4b7ee7726444eebff87226bbd59ad508d14a3f7;hb=fe71ba6bc79b3cfccefad93186b9ed3919af339d;hp=6f08ae3eba3bb09159387d470fc3399e15835c15;hpb=481937a6d5a3f293bb914f5231f2ca4e6e3d6853;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSv5.cxx b/ITS/AliITSv5.cxx index 6f08ae3eba3..a4b7ee77264 100644 --- a/ITS/AliITSv5.cxx +++ b/ITS/AliITSv5.cxx @@ -15,15 +15,14 @@ /* $Log$ -Revision 1.14.4.9 2000/06/12 19:14:51 barbera -Remove partical transision to new Config.C calling convension. Bug Found. +Revision 1.23 2000/10/02 16:35:23 barbera +Forward declarations added -Revision 1.14.4.8 2000/06/12 18:15:52 barbera -fixed posible compilation errors on HP unix. Modifided default constructor -for use with new calling requirements. +Revision 1.14.4.12 2000/10/02 16:04:03 barbera +Forward declarations added -Revision 1.14.4.7 2000/06/11 20:37:59 barbera -coding convenstion update. +Revision 1.22 2000/07/10 16:07:19 fca +Release version of ITS code Revision 1.14.4.4 2000/05/19 10:10:21 nilsen fix for bug with HP and Sun unix + fix for event display in ITS-working branch @@ -77,8 +76,10 @@ Introduction of the Copyright and cvs Log #include #include #include +#include #include "AliRun.h" +#include "AliMC.h" #include "TSystem.h" #if ALIITSPRINTGEOM==1 #include "../TGeant3/TGeant3.h" @@ -91,22 +92,22 @@ Introduction of the Copyright and cvs Log ClassImp(AliITSv5) //_____________________________________________________________________________ - AliITSv5::AliITSv5()/*:AliITS("ITS","TDR version")*/{ +AliITSv5::AliITSv5() { //////////////////////////////////////////////////////////////////////// // Standard default constructor for the ITS version 5. //////////////////////////////////////////////////////////////////////// - fId5N = 6; - fId5Name = new char*[fId5N]; - fId5Name[0] = "ITS1"; - fId5Name[1] = "ITS2"; - fId5Name[2] = "ITS3"; - fId5Name[3] = "ITS4"; - fId5Name[4] = "ITS5"; - fId5Name[5] = "ITS6"; - fEuclidMaterial = "$ALICE_ROOT/Euclid/ITSgeometry_5.tme"; - fEuclidGeometry = "$ALICE_ROOT/Euclid/ITSgeometry_5.euc"; - printf("Created ITS TDR Detailed version reading geometry from file\n"); + 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;ifId5N = source.fId5N; - this->fId5Name = new char*[fId5N]; - Int_t i; - for(i=0;i<6;i++) strcpy(this->fId5Name[i],source.fId5Name[i]); + printf("Not allowed to copy AliITSv5\n"); return; } //_____________________________________________________________________________ @@ -125,37 +123,37 @@ AliITSv5& AliITSv5::operator=(const AliITSv5 &source){ //////////////////////////////////////////////////////////////////////// // Assignment operator for the ITS version 1. //////////////////////////////////////////////////////////////////////// - if(&source == this) return *this; - this->fId5N = source.fId5N; - this->fId5Name = new char*[fId5N]; - Int_t i; - for(i=0;i<6;i++) strcpy(this->fId5Name[i],source.fId5Name[i]); - return *this; + + if(&source == this) return *this; + printf("Not allowed to copy AliITSv3\n"); + return *this; + } //_____________________________________________________________________________ AliITSv5::~AliITSv5() { //////////////////////////////////////////////////////////////////////// // Standard destructor for the ITS version 5. //////////////////////////////////////////////////////////////////////// - delete [] fId5Name; } //_____________________________________________________________________________ AliITSv5::AliITSv5(const char *name, const char *title) : AliITS(name, title){ //////////////////////////////////////////////////////////////////////// // Standard constructor for the ITS version 5. //////////////////////////////////////////////////////////////////////// - fId5N = 6; - fId5Name = new char*[fId5N]; - fId5Name[0] = "ITS1"; - fId5Name[1] = "ITS2"; - fId5Name[2] = "ITS3"; - fId5Name[3] = "ITS4"; - fId5Name[4] = "ITS5"; - fId5Name[5] = "ITS6"; + 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;iGetGeometry()->GetNode("alice"); AliITSgeom *gm = this->GetITSgeom(); @@ -583,17 +581,6 @@ void AliITSv5::Init(){ //////////////////////////////////////////////////////////////////////// // Initialise the ITS after it has been created. //////////////////////////////////////////////////////////////////////// - Int_t i,j,l; - - fIdN = fId5N; - fIdName = new char*[fId5N]; - fIdSens = new Int_t[fId5N]; - for(i=0;i> fId5N; - //R__b.ReadArray(fId5Name); }else{ + AliITS::Streamer(R__b); } // end if R__v==1 } else { R__b.WriteVersion(AliITSv5::IsA()); AliITS::Streamer(R__b); - // This information does not need to be saved. It is "hard wired" - // into this class via its creators. - //R__b << fId5N; - //R__b.WriteArray(fId5Name, __COUNTER__); } // end if R__b.IsReading() - // printf("AliITSv5Streamer Finishing\n"); } -