ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileEvent
src
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
10
#include "
TileEvent/TileCosmicMuon.h
"
11
12
#include <iostream>
13
#include <sstream>
14
#include <iomanip>
15
16
double
TileCosmicMuon::GetFullPath
()
const
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
28
double
TileCosmicMuon::GetFullEnergy
()
const
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
}
length
double length(const pvec &v)
Definition
FPGATrackSimLLPDoubletHoughTransformTool.cxx:26
TileCosmicMuon.h
TileCosmicMuon::m_positionZ
double m_positionZ
Z coordinate of point in track at selected plane (y=0 for cosmics z=0 for beam).
Definition
TileCosmicMuon.h:130
TileCosmicMuon::m_positionX
double m_positionX
X coordinate of point in track at selected plane (y=0 for cosmics z=0 for beam).
Definition
TileCosmicMuon.h:128
TileCosmicMuon::GetFullPath
double GetFullPath() const
Sum up components of m_pathTop and m_pathBottom: full path in Tile.
Definition
TileCosmicMuon.cxx:16
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::m_time
double m_time
Time of track at selected plane (y=0 for cosmics z=0 for beam).
Definition
TileCosmicMuon.h:127
TileCosmicMuon::m_positionY
double m_positionY
Y coordinate of point in track at selected plane (y=0 for cosmics z=0 for beam).
Definition
TileCosmicMuon.h:129
TileCosmicMuon::m_fitQuality
double m_fitQuality
Fit parameter: 0= no fit; (Hough) 1=fit ok; (Minuit) >0 chi-square.
Definition
TileCosmicMuon.h:133
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::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_directionTheta
double m_directionTheta
Theta angle of track direction.
Definition
TileCosmicMuon.h:132
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
TileCosmicMuon::m_fitNCells
int m_fitNCells
Number of cells used in fit.
Definition
TileCosmicMuon.h:134
TileCosmicMuon::whoami
std::string whoami(void) const
Definition
TileCosmicMuon.h:44
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::m_directionPhi
double m_directionPhi
Phi angle of track direction.
Definition
TileCosmicMuon.h:131
Generated on
for ATLAS Offline Software by
1.17.0