ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtApollo
AtApolloPoint.cxx
Go to the documentation of this file.
1
/********************************************************************************
2
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3
* *
4
* This software is distributed under the terms of the *
5
* GNU Lesser General Public Licence version 3 (LGPL) version 3, *
6
* copied verbatim in the file "LICENSE" *
7
********************************************************************************/
8
#include "
AtApolloPoint.h
"
9
10
#include <FairMCPoint.h>
11
12
#include <TVector3.h>
13
14
#include <iostream>
15
16
using
std::cout;
17
using
std::endl;
18
19
// ----- Default constructor -------------------------------------------
20
AtApolloPoint::AtApolloPoint
() : FairMCPoint() {}
21
// -------------------------------------------------------------------------
22
23
// ----- Standard constructor ------------------------------------------
24
AtApolloPoint::AtApolloPoint
(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Int_t crystalID, Double_t tof,
25
Double_t length, Double_t eLoss)
26
: FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss), fCrystalID(crystalID)
27
{
28
}
29
30
// -------------------------------------------------------------------------
31
32
// ----- Destructor ----------------------------------------------------
33
AtApolloPoint::~AtApolloPoint
() =
default
;
34
// -------------------------------------------------------------------------
35
36
// ----- Public method Print -------------------------------------------
37
void
AtApolloPoint::Print
(
const
Option_t *opt)
const
38
{
39
cout <<
"-I- AtApolloPoint: AtApollo point for track "
<< fTrackID <<
" in detector "
<< fDetectorID
40
<<
" and crystal "
<<
fCrystalID
<< endl;
41
cout <<
" Time "
<< fTime <<
" ns, Length "
<< fLength <<
" cm, Energy loss "
<< fELoss * 1.0e06 <<
" keV"
42
<< endl;
43
}
44
// -------------------------------------------------------------------------
45
46
ClassImp
(
AtApolloPoint
)
AtApolloPoint.h
AtApolloPoint
Definition:
AtApolloPoint.h:20
ClassImp
ClassImp(AtFindVertex)
AtApolloPoint::AtApolloPoint
AtApolloPoint()
Definition:
AtApolloPoint.cxx:20
AtApolloPoint::fCrystalID
Int_t fCrystalID
Definition:
AtApolloPoint.h:57
AtApolloPoint::~AtApolloPoint
virtual ~AtApolloPoint()
AtApolloPoint::Print
virtual void Print(const Option_t *opt) const
Definition:
AtApolloPoint.cxx:37
Generated on Sat Nov 11 2023 15:30:37 for ATTPCROOT by
1.8.18