ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/PollackPrograms/src/TCPrimaryVtx.cc
Revision: 1.1
Committed: Tue Jul 24 20:24:58 2012 UTC (12 years, 9 months ago) by bpollack
Content type: text/plain
Branch: MAIN
Log Message:
adding a cleaned-up analyzer for 2012

File Contents

# User Rev Content
1 bpollack 1.1 /*
2     * File: TCPrimaryVtx.cc
3     * Author: Anton A.
4     *
5     * Created on May 21, 2010, 11:16 AM
6     */
7    
8     #include "TCPrimaryVtx.h"
9    
10     TCPrimaryVtx::TCPrimaryVtx() {
11     }
12    
13     TCPrimaryVtx::~TCPrimaryVtx() {
14     }
15    
16     TVector3 TCPrimaryVtx::Position() const {
17     return _position;
18     }
19    
20     float TCPrimaryVtx::NDof() const {
21     return _nDof;
22     }
23    
24     float TCPrimaryVtx::Chi2() const {
25     return _chi2;
26     }
27    
28     bool TCPrimaryVtx::IsFake() const {
29     return _isFake;
30     }
31    
32     int TCPrimaryVtx::Ntracks() const {
33     return _nTracks;
34     }
35    
36     float TCPrimaryVtx::SumPt2Trks() const {
37     return _sumPt2Trks;
38     }
39    
40    
41     void TCPrimaryVtx::SetPosition(float x, float y, float z) {
42     TVector3 p(x, y, z);
43     _position = p;
44     }
45    
46     void TCPrimaryVtx::SetNDof(float n) {
47     _nDof = n;
48     }
49    
50     void TCPrimaryVtx::SetChi2(float chi2) {
51     _chi2 = chi2;
52     }
53    
54     void TCPrimaryVtx::SetIsFake(bool isF) {
55     _isFake = isF;
56     }
57    
58     void TCPrimaryVtx::SetNtracks(int nTrk) {
59     _nTracks = nTrk;
60     }
61    
62     void TCPrimaryVtx::SetSumPt2Trks(float sumPt2) {
63     _sumPt2Trks = sumPt2;
64     }