Project
Loading...
Searching...
No Matches
HalfSegmentation.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_HALFSEGMENTATION_H_
18#define ALICEO2_MFT_HALFSEGMENTATION_H_
19
20#include "TNamed.h"
21#include "TXMLEngine.h"
22
25
26namespace o2
27{
28namespace mft
29{
30class HalfDiskSegmentation;
31}
32} // namespace o2
33
34namespace o2
35{
36namespace mft
37{
38
40{
41
42 public:
44 HalfSegmentation(const Char_t* initFile, const Short_t id);
46
47 ~HalfSegmentation() override;
48 void Clear(const Option_t* /*opt*/) override;
49
50 // Bool_t getID() const { return (GetUniqueID() >> 12); };
51
52 Int_t getNHalfDisks() const { return mHalfDisks->GetEntries(); }
53
55 {
56 if (iDisk >= 0 && iDisk < mHalfDisks->GetEntries()) {
57 return (HalfDiskSegmentation*)mHalfDisks->At(iDisk);
58 } else {
59 return nullptr;
60 }
61 }
62
63 private:
64 void findHalf(TXMLEngine* xml, XMLNodePointer_t node, XMLNodePointer_t& retnode);
65 void createHalfDisks(TXMLEngine* xml, XMLNodePointer_t node);
66
67 TClonesArray* mHalfDisks;
68
69 ClassDefOverride(HalfSegmentation, 1);
70};
71} // namespace mft
72} // namespace o2
73
74#endif
Class for the virtual segmentation of the ALICE Muon Forward Tracker.
Abstract base class for MFT Segmentation description.
HalfDiskSegmentation * getHalfDisk(Int_t iDisk) const
void Clear(const Option_t *) override
Clear the TClonesArray holding the HalfDiskSegmentation objects.
HalfSegmentation()
Default constructor.
GLsizei GLsizei GLchar * source
Definition glcorearb.h:798
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...