CbmRoot
Loading...
Searching...
No Matches
CbmRichPoint.cxx
Go to the documentation of this file.
1/* Copyright (C) 2004-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Boris Polichtchouk, Denis Bertini [committer], Florian Uhlig */
4
5// -------------------------------------------------------------------------
6// ----- CbmRichPoint source file -----
7// ----- Created 28/04/04 by B. Polichtchouk -----
8// -------------------------------------------------------------------------
9
10#include "CbmRichPoint.h"
11
12#include <FairMCPoint.h> // for FairMCPoint
13#include <Logger.h> // for Logger, LOG
14
15#include <TVector3.h> // for TVector3
16
17
18// ----- Default constructor -------------------------------------------
19CbmRichPoint::CbmRichPoint() : FairMCPoint() {}
20// -------------------------------------------------------------------------
21
22
23// ----- Standard constructor ------------------------------------------
24CbmRichPoint::CbmRichPoint(int32_t trackID, int32_t detID, TVector3 pos, TVector3 mom, double tof, double length,
25 double eLoss)
26 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss)
27{
28}
29// -------------------------------------------------------------------------
30
31
32// ----- Destructor ----------------------------------------------------
34// -------------------------------------------------------------------------
35
36
37// ----- Public method Print -------------------------------------------
38void CbmRichPoint::Print(const Option_t* /*opt*/) const
39{
40 LOG(info) << "-I- CbmRichPoint: RICH Point for track " << fTrackID << " in detector " << fDetectorID;
41 LOG(info) << " Position (" << fX << ", " << fY << ", " << fZ << ") cm";
42 LOG(info) << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV";
43 LOG(info) << " Time " << fTime << " ns, Length " << fLength << " cm, Energy loss " << fELoss * 1.0e06 << " keV";
44}
45// -------------------------------------------------------------------------
46
47
ClassImp(CbmConverterManager)
virtual ~CbmRichPoint()
virtual void Print(const Option_t *opt) const