ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtApolloCrystalCalData.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 
10 
11 #include <FairMultiLinkedData.h>
12 
13 #include <iostream>
14 
15 using std::cout;
16 using std::endl;
17 using std::flush;
18 
19 AtApolloCrystalCalData::AtApolloCrystalCalData() : FairMultiLinkedData(), fEnergy(-1.), fTime(0), fCrystalId(-1) {}
20 
21 AtApolloCrystalCalData::AtApolloCrystalCalData(Int_t ident, Double_t energy, ULong64_t time)
22  : FairMultiLinkedData(), fEnergy(energy), fTime(time), fCrystalId(ident)
23 {
24 }
25 
27 
28  = default;
29 
30 void AtApolloCrystalCalData::Print(const Option_t *opt) const
31 {
32  cout << "-I- AtApolloCrystalCalData: a crystalCalData level hit in crystal identifier " << fCrystalId << endl;
33  cout << " Energy = " << fEnergy << " (GeV in sim)" << endl;
34  cout << " Time =" << fTime << " ns " << endl;
35 }
AtApolloCrystalCalData::fCrystalId
Int_t fCrystalId
Definition: AtApolloCrystalCalData.h:56
AtApolloCrystalCalData::Print
virtual void Print(const Option_t *opt) const
Definition: AtApolloCrystalCalData.cxx:30
AtApolloCrystalCalData::fTime
ULong64_t fTime
Definition: AtApolloCrystalCalData.h:55
AtApolloCrystalCalData.h
AtApolloCrystalCalData
Definition: AtApolloCrystalCalData.h:20
AtApolloCrystalCalData::fEnergy
Double32_t fEnergy
Definition: AtApolloCrystalCalData.h:54
AtApolloCrystalCalData::AtApolloCrystalCalData
AtApolloCrystalCalData()
Definition: AtApolloCrystalCalData.cxx:19