Project
Loading...
Searching...
No Matches
ChipSegmentation.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
15
16#include <fairlogger/Logger.h>
17
20#include "MFTBase/Geometry.h"
21#include "MFTBase/GeometryTGeo.h"
22
23using namespace o2::mft;
24using namespace o2::itsmft;
25
27
29
30//_____________________________________________________________________________
32
34//_____________________________________________________________________________
36{
37 // constructor
38 Geometry* mftGeom = Geometry::instance();
39
40 SetUniqueID(uniqueID);
41
42 SetName(Form("%s_%d_%d_%d_%d", GeometryTGeo::getMFTChipPattern(), mftGeom->getHalfID(GetUniqueID()),
43 mftGeom->getDiskID(GetUniqueID()), mftGeom->getLadderID(GetUniqueID()),
44 mftGeom->getSensorID(GetUniqueID())));
45
46 // Double_t pos[3];
47 // pos[0] = mftGeom->getSensorID(GetUniqueID())*
48 // (SegmentationAlpide::SensorSizeCols + Geometry::sSensorInterspace) + Geometry::sSensorSideOffset;
49 // pos[1] = Geometry::sSensorTopOffset;
50 // pos[2] = Geometry::sFlexThickness;
51 // setPosition(pos);
52}
53
55//_____________________________________________________________________________
56void ChipSegmentation::print(Option_t* /*option*/) { getTransformation()->Print(); }
ClassImp(ChipSegmentation)
Chip (sensor) segmentation description.
Class handling both virtual segmentation and real volumes.
Definition of the SegmentationAlpide class.
ChipSegmentation()
Default constructor.
void print(Option_t *)
Print out Sensor information (Name, ID, position, orientation)
static const Char_t * getMFTChipPattern()
Int_t getSensorID(UInt_t uniqueID) const
Returns Sensor ID based on Unique ID provided.
Definition Geometry.h:115
Int_t getDiskID(UInt_t uniqueID) const
Returns Half-Disk ID based on Unique ID provided.
Definition Geometry.h:106
Int_t getLadderID(UInt_t uniqueID) const
Returns Ladder ID based on Unique ID provided.
Definition Geometry.h:112
Int_t getHalfID(UInt_t uniqueID) const
Returns Half-MFT ID based on Unique ID provided.
Definition Geometry.h:103
static Geometry * instance()
Singleton access.
Definition Geometry.cxx:98
TGeoCombiTrans * getTransformation() const
Returns the Transformation Combining a Rotation followed by a Translation.