Project
Loading...
Searching...
No Matches
HalfDiskSegmentation.h
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
16
17#ifndef ALICEO2_MFT_HALFDISKSEGMENTATION_H_
18#define ALICEO2_MFT_HALFDISKSEGMENTATION_H_
19
20#include "TXMLEngine.h"
21
24
25class TClonesArray;
26
27namespace o2
28{
29namespace mft
30{
31
33{
34
35 public:
37 HalfDiskSegmentation(UInt_t uniqueID);
39
40 ~HalfDiskSegmentation() override;
41
42 void Clear(const Option_t* /*opt*/) override;
43
44 void print(Option_t* opt = "");
45
46 void createLadders(TXMLEngine* xml, XMLNodePointer_t node);
47
49 Int_t getNLaddersBuild() const { return mLadders->GetEntriesFast(); };
50
52 Int_t getNLadders() const { return mNLadders; };
53
55 void setNLadders(Int_t val) { mNLadders = val; };
56
60 {
61 return ((iLadder >= 0 && iLadder < getNLadders()) ? (LadderSegmentation*)mLadders->At(iLadder) : nullptr);
62 }
63
65 Double_t getZ() const
66 {
67 const Double_t* pos = getTransformation()->GetTranslation();
68 return pos[2];
69 };
70
71 Int_t getNChips();
72
73 private:
74 Int_t mNLadders;
75
76 TClonesArray* mLadders;
77
78 ClassDefOverride(HalfDiskSegmentation, 1);
79};
80} // namespace mft
81} // namespace o2
82
83#endif
void print() const
Description of the virtual segmentation of a ladder.
uint16_t pos
Definition RawData.h:3
Abstract base class for MFT Segmentation description.
void createLadders(TXMLEngine *xml, XMLNodePointer_t node)
Creates the Ladders on this half-Disk based on the information contained in the XML file.
void setNLadders(Int_t val)
Set the number of Ladder on the Half-Disk.
Int_t getNLadders() const
Get the number of Ladder on the Half-Disk.
LadderSegmentation * getLadder(Int_t iLadder)
Returns pointer to the ladder segmentation object.
void Clear(const Option_t *) override
Clear the TClonesArray holding the ladder segmentations.
HalfDiskSegmentation()
Default constructor.
Int_t getNLaddersBuild() const
Get the number of Ladder on the Half-Disk really constructed.
Double_t getZ() const
Returns the Z position of the half-disk.
Int_t getNChips()
Returns the number of sensors on the Half-Disk.
TGeoCombiTrans * getTransformation() const
Returns the Transformation Combining a Rotation followed by a Translation.
GLuint GLfloat * val
Definition glcorearb.h:1582
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...