CbmRoot
Loading...
Searching...
No Matches
CbmMuchPointInfo.cxx
Go to the documentation of this file.
1/* Copyright (C) 2007-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Evgeny Kryshen, Florian Uhlig [committer] */
4
5// -------------------------------------------------------------------------
6// ----- CbmMuchPointInfo source file -----
7// ----- Created 21/11/07 by E. Kryshen -----
8// -------------------------------------------------------------------------
9
10
11#include "CbmMuchPointInfo.h"
12
13
15
16 // -------------------------------------------------------------------------
18 : TObject()
19 , fKine(0.)
20 , fLength(0.)
21 , fPdgCode(0)
22 , fMotherPdg(0)
23 , fCharge(0)
24 , fStationId(0)
25 , fS(0.)
26 , fNPads(0)
27{
28}
29// -------------------------------------------------------------------------
30
31// -------------------------------------------------------------------------
32CbmMuchPointInfo::CbmMuchPointInfo(Int_t pdgCode, Int_t motherPdg, Double_t kine, Double_t length, Int_t stationId)
33 : TObject()
34 , fKine(kine)
35 , fLength(length)
36 , fPdgCode(pdgCode)
37 , fMotherPdg(motherPdg)
38 , fCharge(0)
39 , fStationId(stationId)
40 , fS(0)
41 , fNPads(0)
42{
43}
44// -------------------------------------------------------------------------
45
46
47// -------------------------------------------------------------------------
48void CbmMuchPointInfo::Print(Option_t*) const
49{
50 printf("PointInfo:pdg=%i,kine=%6.4f,length=%4.2f,st_id=%i,charge=%i\n", fPdgCode, fKine, fLength, fStationId,
51 fCharge);
52}
53// -------------------------------------------------------------------------
ClassImp(CbmMuchPointInfo) CbmMuchPointInfo
void Print(Option_t *="") const