Project
Loading...
Searching...
No Matches
Segmentation.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_SEGMENTATION_H_
18#define ALICEO2_MFT_SEGMENTATION_H_
19
20#include "TNamed.h"
21#include "TClonesArray.h"
22
23namespace o2
24{
25namespace mft
26{
27class HalfSegmentation;
28}
29} // namespace o2
30
31namespace o2
32{
33namespace mft
34{
35
37{
38
39 public:
40 enum { Bottom,
41 Top };
42
44 Segmentation(const Char_t* nameGeomFile);
45
47 void Clear(const Option_t* /*opt*/);
48
52 HalfSegmentation* getHalf(Int_t iHalf) const;
53
54 Int_t getDetElemLocalID(Int_t half, Int_t disk, Int_t ladder, Int_t sensor) const;
55
56 Bool_t hitToPixelID(Double_t xHit, Double_t yHit, Double_t zHit, Int_t half, Int_t disk, Int_t ladder, Int_t sensor,
57 Int_t& xPixel, Int_t& yPixel);
58
59 static constexpr Int_t NumberOfHalves = 2;
60
61 private:
62 TClonesArray* mHalves;
63
64 ClassDefNV(Segmentation, 1);
65};
66} // namespace mft
67} // namespace o2
68
69#endif
HalfSegmentation * getHalf(Int_t iHalf) const
Returns pointer to the segmentation of the half-MFT.
void Clear(const Option_t *)
Clear the TClonesArray holding the HalfSegmentation objects.
static constexpr Int_t NumberOfHalves
Number of detector halves.
Int_t getDetElemLocalID(Int_t half, Int_t disk, Int_t ladder, Int_t sensor) const
Bool_t hitToPixelID(Double_t xHit, Double_t yHit, Double_t zHit, Int_t half, Int_t disk, Int_t ladder, Int_t sensor, Int_t &xPixel, Int_t &yPixel)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...