Project
Loading...
Searching...
No Matches
Point.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
12#include "TPCSimulation/Point.h"
13#include <iostream>
14
15using std::cout;
16using std::endl;
17
18using namespace o2::tpc;
19
20void Point::Print(const Option_t* opt) const
21{
22 cout << "-I- Point: O2tpc point for track " << GetTrackID()
23 << " in detector " << GetDetectorID() << endl;
24 cout << " Position (" << GetX() << ", " << GetY() << ", " << GetZ()
25 << ") cm" << endl;
26 cout << " Time " << GetTime() << " ns, n electrons " << GetEnergyLoss() << endl;
27}
28
ClassImp(IdPath)
Class for TPC Point.
int GetTrackID() const
Definition BaseHits.h:30
float GetEnergyLoss() const
Definition BaseHits.h:103
E GetTime() const
Definition BaseHits.h:71
T GetZ() const
Definition BaseHits.h:66
T GetY() const
Definition BaseHits.h:65
T GetX() const
Definition BaseHits.h:64
short GetDetectorID() const
Definition BaseHits.h:73
Global TPC definitions and constants.
Definition SimTraits.h:167