* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.10 2001/04/26 22:44:34 nilsen
-Bug fix.
+/* $Id$ */
-Revision 1.9 2001/02/09 00:00:57 nilsen
-Fixed compatibility problem with HP unix {ios::fmtflags -> Int_t}. Fixed
-bugs in iostream based streamers used to read and write .det files. Fixed
-some detector sizes. Fixed bugs in some default-special constructors.
-
-Revision 1.8 2001/02/03 00:00:30 nilsen
-New version of AliITSgeom and related files. Now uses automatic streamers,
-set up for new formatted .det file which includes detector information.
-Additional smaller modifications are still to come.
-
-*/
+////////////////////////////////////////////////////////////////////////
+// This class is for the Silicon Pixel Detector, SPD, specific geometry.
+// It is being replaced by AliITSsegmentationSPD class. This file also
+// constains classes derived from AliITSgeomSPD which do nothing but
+// initilize this one with predefined values.
+////////////////////////////////////////////////////////////////////////
-#include <iostream.h>
-#include <iomanip.h>
+#include <Riostream.h>
#include <TShape.h>
#include <TMath.h>
return;
}
//______________________________________________________________________
-AliITSgeomSPD::AliITSgeomSPD(AliITSgeomSPD &source){
+AliITSgeomSPD::AliITSgeomSPD(AliITSgeomSPD &source) : TObject(source){
// Copy constructor
*this = source; // just use the = operator for now.
void AliITSgeomSPD::Print(ostream *os) const {
// Standard output format for this class
Int_t i;
+#if defined __GNUC__
+#if __GNUC__ > 2
+ ios::fmtflags fmt;
+#else
+ Int_t fmt;
+#endif
+#else
+#if defined __ICC || defined __ECC
+ ios::fmtflags fmt;
+#else
Int_t fmt;
+#endif
+#endif
fmt = os->setf(ios::scientific); // set scientific floating point output
*os << "TBRIK" << " ";
}
//=====================================================================
-/*
-$Log$
-Revision 1.10 2001/04/26 22:44:34 nilsen
-Bug fix.
-
-Revision 1.9 2001/02/09 00:00:57 nilsen
-Fixed compatibility problem with HP unix {ios::fmtflags -> Int_t}. Fixed
-bugs in iostream based streamers used to read and write .det files. Fixed
-some detector sizes. Fixed bugs in some default-special constructors.
-
-Revision 1.8 2001/02/03 00:00:30 nilsen
-New version of AliITSgeom and related files. Now uses automatic streamers,
-set up for new formatted .det file which includes detector information.
-Additional smaller modifications are still to come.
-
-Revision 1.7 2000/10/02 16:32:35 barbera
-Forward declaration added
-
-Revision 1.1.2.8 2000/10/02 15:52:05 barbera
-Forward declaration added
-
-Revision 1.6 2000/07/10 16:07:18 fca
-Release version of ITS code
-
-Revision 1.4 2000/06/10 20:34:37 nilsen
-Fixed compilation warning with HP unix.
-
-Revision 1.3 2000/06/10 10:43:04 nilsen
-Fixed bug in copy and operator =.
-
-*/
-
-//#include "AliITSgeomSPD300.h"
-
ClassImp(AliITSgeomSPD300)
AliITSgeomSPD300::AliITSgeomSPD300() : AliITSgeomSPD(){
return is;
}
//=====================================================================
-/*
-$Log$
-Revision 1.10 2001/04/26 22:44:34 nilsen
-Bug fix.
-
-Revision 1.9 2001/02/09 00:00:57 nilsen
-Fixed compatibility problem with HP unix {ios::fmtflags -> Int_t}. Fixed
-bugs in iostream based streamers used to read and write .det files. Fixed
-some detector sizes. Fixed bugs in some default-special constructors.
-
-Revision 1.8 2001/02/03 00:00:30 nilsen
-New version of AliITSgeom and related files. Now uses automatic streamers,
-set up for new formatted .det file which includes detector information.
-Additional smaller modifications are still to come.
-
-Revision 1.7 2000/10/02 16:32:35 barbera
-Forward declaration added
-
-Revision 1.1.2.8 2000/10/02 15:52:05 barbera
-Forward declaration added
-
-Revision 1.6 2000/07/10 16:07:18 fca
-Release version of ITS code
-
-Revision 1.4 2000/06/10 20:34:22 nilsen
-Fixed compilation warning with HP unix.
-
-Revision 1.3 2000/06/10 10:42:49 nilsen
-Fixed bug in copy and operator =.
-
-
-*/
-
-//#include "AliITSgeomSPD425Short.h"
ClassImp(AliITSgeomSPD425Short)
// micron pixels (large detector).
////////////////////////////////////////////////////////////////////////
- const Float_t kdx=0.6400,kdy=0.015,kdz=3.480; // cm; Standard pixel
- // detector size is 2dx
- // wide, 2dz long, and
- // 2dy thick. Geant 3.12
- // units.
+ const Float_t kdx=0.6400/*,kdy=0.015*/,kdz=3.480; // cm; Standard pixel
+ // detector size is 2dx
+ // wide, 2dz long, and
+ // 2dy thick. Geant 3.12
+ // units.
const Float_t kbinx0 = 0.0050; // cm; Standard pixel size in x direction.
const Int_t knbinx = 256; // number of pixels along x direction.
const Float_t kbinz0 = 0.0425; // cm; Standard pixel size in z direction.
for(i=0;i<knbinz;i++) dz += binSizeZ[i];
dz *= 0.5;
+ if(npar<3){
+ Error("AliITSgeomSPD425Short",
+ "npar=%d<3 array par must be at least [3] or larger",npar);
+ return;
+ } // end if
SetShape("ActiveSPD","Active volume of SPD","SPD SI DET",
par[0],par[1],par[2]);
if(TMath::Abs(dx-kdx)>1.0E-4 || TMath::Abs(dz-kdz)>1.0E-4)
}
//======================================================================
-/*
-$Log$
-Revision 1.10 2001/04/26 22:44:34 nilsen
-Bug fix.
-
-Revision 1.9 2001/02/09 00:00:57 nilsen
-Fixed compatibility problem with HP unix {ios::fmtflags -> Int_t}. Fixed
-bugs in iostream based streamers used to read and write .det files. Fixed
-some detector sizes. Fixed bugs in some default-special constructors.
-
-Revision 1.8 2001/02/03 00:00:30 nilsen
-New version of AliITSgeom and related files. Now uses automatic streamers,
-set up for new formatted .det file which includes detector information.
-Additional smaller modifications are still to come.
-
-Revision 1.7 2000/10/02 16:32:35 barbera
-Forward declaration added
-
-Revision 1.1.2.8 2000/10/02 15:52:05 barbera
-Forward declaration added
-
-Revision 1.6 2000/07/10 16:07:18 fca
-Release version of ITS code
-
-Revision 1.4 2000/06/10 20:34:22 nilsen
-Fixed compilation warning with HP unix.
-
-Revision 1.3 2000/06/10 10:42:49 nilsen
-Fixed bug in copy and operator =.
-
-
-*/
-
-//#include "AliITSgeomSPD425Long.h"
-
ClassImp(AliITSgeomSPD425Long)
AliITSgeomSPD425Long::AliITSgeomSPD425Long(){