17 std::ostream& out = cerr;
19 out <<
" DDL | Board | Altro | Channel |" 20 <<
" Detector | Ring | Sector | Base-Strip | Phi |" 21 <<
" X | Y | Z " << std::endl;
22 for (UShort_t ddl = 0; ddl < 3; ddl++) {
23 out <<
"------+-------+-------+---------+" 24 <<
"----------+------+--------+------------+------+" 25 <<
"---------+---------+---------" << std::endl;
26 for (UShort_t ib = 0; ib < 4; ib++) {
27 if (ddl == 0 && (ib == 1 || ib == 3))
continue;
28 UShort_t board = ib + (ib < 0x2 ? 0 : 0x10-2);
29 for (UShort_t altro = 0; altro < 3; altro++) {
30 UShort_t nCh = (altro == 1 ? 8 : 16);
31 for (UShort_t chan = 0; chan < nCh; chan++) {
42 Double_t phi = TMath::ATan2(y,x) * 180 / TMath::Pi();
43 if (phi < 0) phi += 360;
45 out <<
" " << std::setprecision(4)
46 << std::setw(4) << (3072) + ddl <<
" | " 47 << std::setw(5) << board <<
" | " 48 << std::setw(5) << altro <<
" | " 49 << std::setw(7) << chan <<
" | " 50 << std::setw(8) << det <<
" | " 51 << std::setw(4) << ring <<
" | " 52 << std::setw(6) << sec <<
" | " 53 << std::setw(10) << baseStr <<
" | " 54 << std::setw(4) << phi <<
" | " 55 << std::setw(7) << x <<
" | " 56 << std::setw(7) << y <<
" | " 57 << std::setw(7) << z << std::endl;
virtual void InitTransformations(Bool_t force=kFALSE)
Short_t DDL2Detector(UInt_t ddl) const
This class is a singleton that handles various parameters of the FMD detectors. This class reads from...
AliFMDAltroMapping * GetAltroMap() const
Singleton object of FMD geometry descriptions and parameters. This class is a singleton that handles ...
Bool_t Channel2StripBase(UShort_t board, UShort_t altro, UShort_t chan, Char_t &ring, UShort_t &sec, Short_t &str) const
Class that encodes a map to/from ALTRO hardware address to FMD detector coordinates.
static AliFMDParameters * Instance()
void Detector2XYZ(UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip, Double_t &x, Double_t &y, Double_t &z) const
void SetDefaultStorage(const char *dbString)
static AliCDBManager * Instance(TMap *entryCache=NULL, Int_t run=-1)
static AliFMDGeometry * Instance()
static void LoadGeometry(const char *geomFileName=NULL)
UShort_t Init(Bool_t forceReInit=kFALSE, UInt_t what=kAll)