ATLAS Offline Software
Loading...
Searching...
No Matches
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
40TileCosmicMuon::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}
double length(const pvec &v)
double m_positionZ
Z coordinate of point in track at selected plane (y=0 for cosmics z=0 for beam)
double m_positionX
X coordinate of point in track at selected plane (y=0 for cosmics z=0 for beam)
double GetFullPath() const
Sum up components of m_pathTop and m_pathBottom: full path in Tile.
double GetFullEnergy() const
Sum up components of m_energyTop and m_energyBottom: full energy in track in Tile.
double m_time
Time of track at selected plane (y=0 for cosmics z=0 for beam)
double m_positionY
Y coordinate of point in track at selected plane (y=0 for cosmics z=0 for beam)
double m_fitQuality
Fit parameter: 0= no fit; (Hough) 1=fit ok; (Minuit) >0 chi-square.
std::vector< double > m_energyTop
Vector with sum energy of cells close to track on top modules [0]:sampling A; [1]: BC; [2]: D.
std::vector< double > m_pathBottom
Vector with length of track within Tile on bottom modules [0]:sampling A; [1]: BC; [2]: D.
double m_directionTheta
Theta angle of track direction.
std::vector< double > m_energyBottom
Vector with sum energy of cells close to track on bottom modules [0]:sampling A; [1]: BC; [2]: D.
int m_fitNCells
Number of cells used in fit.
std::string whoami(void) const
std::vector< double > m_pathTop
Vector with length of track within Tile on top modules [0]:sampling A; [1]: BC; [2]: D.
double m_directionPhi
Phi angle of track direction.