Fork me on GitHub

source: git/external/TrackCovariance/AcceptanceClx.h@ c41f48e

Last change on this file since c41f48e was f17e10d, checked in by michele <michele.selvaggi@…>, 4 years ago

added missing TrkCov files

  • Property mode set to 100644
File size: 1.6 KB
Line 
1//
2#ifndef G__ACCEPTANCECLX_H
3#define G__ACCEPTANCECLX_H
4//
5#include <TMath.h>
6#include <TVectorF.h>
7#include <TMatrixF.h>
8#include <TString.h>
9#include <TFile.h>
10#include <TTree.h>
11#include <TF2.h>
12#include <iostream>
13#include <vector>
14#include "SolGeom.h"
15#include "SolTrack.h"
16//
17// Class to create geometry for solenoid geometry
18
19class AcceptanceClx {
20 //
21 // Class to handle storing and retieving of tracking acceptance
22 //
23private:
24 TMatrixF fAcc; // Acceptance matrix
25 Int_t fNPtNodes; // Numer of Pt nodes
26 TVectorF fPtArray; // Array of Pt nodes
27 Int_t fNThNodes; // Numer of Theta nodes
28 TVectorF fThArray; // Array of Theta nodes (Theta in degrees)
29 //
30 // Service routines
31 void VecInsert(Int_t i, Float_t x, TVectorF& Vec);
32 void SplitPt(Int_t i, TVectorF &AccPt);
33 void SplitTh(Int_t i, TVectorF &AccTh);
34public:
35 //
36 // Constructors
37 AcceptanceClx(SolGeom *InGeo); // Initialize arrays from geometry
38 AcceptanceClx(TString InFile); // Initialize from acceptance file
39 // Destructor
40 ~AcceptanceClx();
41 //
42 // Accessors
43 TMatrixF* GetAccMatrix() { return &fAcc; }
44 Int_t GetNrPt() { return fNPtNodes; }
45 Int_t GetNrTh() { return fNThNodes; }
46
47 TVectorF* GetPtArray() { return &fPtArray; }
48 TVectorF* GetThArray() { return &fThArray; }
49 //
50 // Read and write
51 void ReadAcceptance(TString InFile); // Stand alone usage
52 void WriteAcceptance(TString OutFile); // Stand alone usage
53 void WriteAcceptance(TFile *OutFile);
54 //
55 // Function returning interpolated number of hit measurement layers
56 Double_t HitNumber(Double_t pt, Double_t Theta); // Theta in degrees
57 Double_t HitNum(Double_t *x, Double_t *p);
58};
59
60#endif
Note: See TracBrowser for help on using the repository browser.