Project
Loading...
Searching...
No Matches
LadderSegmentation.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_LADDERSEGMENTATION_H_
18#define ALICEO2_MFT_LADDERSEGMENTATION_H_
19
20#include "TClonesArray.h"
21#include "TXMLEngine.h"
22
25
26namespace o2
27{
28namespace mft
29{
30
32{
33
34 public:
36 LadderSegmentation(UInt_t uniqueID);
38
40 {
41 if (mChips) {
42 mChips->Delete();
43 delete mChips;
44 mChips = nullptr;
45 }
46 }
47 void print(Option_t* opt = "");
48 void Clear(const Option_t* /*opt*/) override
49 {
50 if (mChips) {
51 mChips->Clear();
52 }
53 }
54
55 ChipSegmentation* getSensor(Int_t sensor) const;
56
57 void createSensors(TXMLEngine* xml, XMLNodePointer_t node);
58
60 Int_t getNSensors() const { return mNSensors; };
62 void setNSensors(Int_t val) { mNSensors = val; };
63
64 ChipSegmentation* getChip(Int_t chipNumber) const { return getSensor(chipNumber); };
65
66 private:
67 Int_t mNSensors;
68 TClonesArray* mChips;
69
70 ClassDefOverride(LadderSegmentation, 1);
71};
72} // namespace mft
73} // namespace o2
74
75#endif
Chip (sensor) segmentation description.
void print() const
Abstract base class for MFT Segmentation description.
Int_t getNSensors() const
Returns number of Sensor on the ladder.
void Clear(const Option_t *) override
ChipSegmentation * getChip(Int_t chipNumber) const
void createSensors(TXMLEngine *xml, XMLNodePointer_t node)
Creates the Sensors Segmentation array on the Ladder.
LadderSegmentation()
Default constructor.
ChipSegmentation * getSensor(Int_t sensor) const
void setNSensors(Int_t val)
Set number of Sensor on the ladder.
GLuint GLfloat * val
Definition glcorearb.h:1582
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...