ATLAS Offline Software
TileCosmicMuon.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //========================================
6 // file TileCosmicMuon.cxx
7 //
8 //========================================
9 
11 
12 #include <iostream>
13 #include <sstream>
14 #include <iomanip>
15 
17 {
18  double length = 0.;
19  if (m_pathTop.size() == (unsigned int)3){
20  for (unsigned int is = 0; is<m_pathTop.size(); is++) length+=m_pathTop[is];
21  }
22  if (m_pathBottom.size() == (unsigned int)3){
23  for (unsigned int is = 0; is<m_pathBottom.size(); is++) length+=m_pathBottom[is];
24  }
25  return length;
26 }
27 
29 {
30  double energy = 0.;
31  if (m_energyTop.size() == (unsigned int)3){
32  for (unsigned int is = 0; is<m_energyTop.size(); is++) energy += m_energyTop[is];
33  }
34  if (m_energyBottom.size() == (unsigned int)3){
35  for (unsigned int is = 0; is<m_energyBottom.size(); is++) energy += m_energyBottom[is];
36  }
37  return energy;
38 }
39 
40 TileCosmicMuon::operator std::string() const
41 {
42  std::ostringstream text(std::ostringstream::out);
43 
44  text << whoami();
45  text << " Time = " << m_time;
46  text << " PositionX = " << m_positionX;
47  text << " PositionY = " << m_positionY;
48  text << " PositionZ = " << m_positionZ;
49  text << " DirectionPhi = " << m_directionPhi;
50  text << " DirectionTheta = " << m_directionTheta;
51  text << " FitQuality = " << m_fitQuality;
52  text << " FitNCells = " << m_fitNCells;
53 
54  return text.str();
55 }
TileCosmicMuon::m_energyBottom
std::vector< double > m_energyBottom
Vector with sum energy of cells close to track on bottom modules [0]:sampling A; [1]: BC; [2]: D.
Definition: TileCosmicMuon.h:143
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
TileCosmicMuon::m_pathTop
std::vector< double > m_pathTop
Vector with length of track within Tile on top modules [0]:sampling A; [1]: BC; [2]: D.
Definition: TileCosmicMuon.h:137
TileCosmicMuon.h
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
TileCosmicMuon::m_pathBottom
std::vector< double > m_pathBottom
Vector with length of track within Tile on bottom modules [0]:sampling A; [1]: BC; [2]: D.
Definition: TileCosmicMuon.h:139
TileCosmicMuon::m_energyTop
std::vector< double > m_energyTop
Vector with sum energy of cells close to track on top modules [0]:sampling A; [1]: BC; [2]: D.
Definition: TileCosmicMuon.h:141
TileCosmicMuon::GetFullEnergy
double GetFullEnergy() const
Sum up components of m_energyTop and m_energyBottom: full energy in track in Tile.
Definition: TileCosmicMuon.cxx:28
TileCosmicMuon::GetFullPath
double GetFullPath() const
Sum up components of m_pathTop and m_pathBottom: full path in Tile.
Definition: TileCosmicMuon.cxx:16
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11
length
double length(const pvec &v)
Definition: FPGATrackSimLLPDoubletHoughTransformTool.cxx:26