ATLAS Offline Software
muCombUtil.h
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 //
7 // NAME: muCombUtil.h
8 // PACKAGE: Trigger/TrigAlgorithms/TrigmuComb
9 //
10 // AUTHOR: S. Giagu <stefano.giagu@cern.ch>
11 //
12 // PURPOSE: Utility namespace for LVL2 Combined Muon Reco FEX Algorithm
13 // *********************************************************************
14 
15 #ifndef TRIGMUCOMB_MUCOMBUTIL_H
16 #define TRIGMUCOMB_MUCOMBUTIL_H
17 
18 #include <vector>
19 
20 class MuonFeature;
21 class TrigInDetTrack;
22 
23 namespace muCombUtil {
24 
26  void setMuFastRes(std::vector<double>&, double,double,double,double,double,double);
28  void setIDSCANRes(std::vector<double>&,double,double);
30  double getMuFastRes(std::vector<double>, const MuonFeature*);
31 
33  int whichECRegion(const float, const float);
34 
36  double getIDSCANRes(std::vector<double>, std::vector<double>, std::vector<double>, std::vector<double>, std::vector<double>, double, double);
37 
39  double getMuFastEtaRes(const MuonFeature*);
41  double getMuFastPhiRes(const MuonFeature*);
43  double getG4ExtEtaRes(double, double);
45  double getG4ExtPhiRes(double, double);
46 
48  double getDeltaPhi(double, double);
50  double getDeltaEta(double, double);
52  double getDeltaR(double, double, double, double);
54  double getCombinedAverage(double, double, double, double);
56  double getCombinedAverageSigma(double, double);
58  double getChi2(int&, double,
59  double, double, double, double, double, double,
60  double, double, double, double, double, double, bool);
62  double getStdChi2(int&,
63  double, double, double, double, double, double,
64  double, double, double, double, double, double, bool);
65 }
66 #endif
muCombUtil::getDeltaEta
double getDeltaEta(double eta1, double eta2)
Get DeltaEta.
Definition: muCombUtil.cxx:352
muCombUtil::getG4ExtPhiRes
double getG4ExtPhiRes(double pt, double eta)
Get parametrized Geant4 Phi resolution (extrapolated)
Definition: muCombUtil.cxx:317
muCombUtil::getMuFastPhiRes
double getMuFastPhiRes(const MuonFeature *feature)
Get parametrized muFast Phi resolution (extrapolated)
Definition: muCombUtil.cxx:250
muCombUtil::getMuFastEtaRes
double getMuFastEtaRes(const MuonFeature *feature)
Get parametrized muFast Eta resolution (extrapolated)
Definition: muCombUtil.cxx:211
muCombUtil::getDeltaPhi
double getDeltaPhi(double phi1, double phi2)
Get DeltaPhi.
Definition: muCombUtil.cxx:345
TrigInDetTrack
Definition: TrigInDetTrack.h:34
muCombUtil::getG4ExtEtaRes
double getG4ExtEtaRes(double pt, double eta)
Get parametrized Geant4 Eta resolution (extrapolated)
Definition: muCombUtil.cxx:288
muCombUtil::getMuFastRes
double getMuFastRes(const std::vector< double > &vec, const MuonFeature *feature)
Definition: muCombUtil.cxx:42
muCombUtil::whichECRegion
int whichECRegion(const float eta, const float phi)
utility function for getMuFastRes
Definition: muCombUtil.cxx:117
muCombUtil::getCombinedAverage
double getCombinedAverage(double p1, double sp1, double p2, double sp2)
Get weighted mean.
Definition: muCombUtil.cxx:362
muCombUtil::setIDSCANRes
void setIDSCANRes(std::vector< double > &vec, double p1, double p2)
utility vector set
Definition: muCombUtil.cxx:35
muCombUtil::getIDSCANRes
double getIDSCANRes(std::vector< double > barrelvec, std::vector< double > ec1vec, std::vector< double > ec2vec, std::vector< double > ec3vec, std::vector< double > ec4vec, double pt_id, double eta_id)
Get parametrized IDSCAN 1/pt resolution.
Definition: muCombUtil.cxx:190
muCombUtil::getDeltaR
double getDeltaR(double eta1, double phi1, double eta2, double phi2)
Get DeltaR.
Definition: muCombUtil.cxx:356
muCombUtil
Definition: muCombUtil.cxx:22
muCombUtil::setMuFastRes
void setMuFastRes(std::vector< double > &vec, double p1, double p2, double p3, double p4, double p5, double p6)
utility vector set
Definition: muCombUtil.cxx:24
muCombUtil::getStdChi2
double getStdChi2(int &ndof, double eta1, double seta1, double phi1, double sphi1, double qOvpt1, double sqOvpt1, double eta2, double seta2, double phi2, double sphi2, double qOvpt2, double sqOvpt2, bool useAbsPt)
Get Std Chi2.
Definition: muCombUtil.cxx:401
MuonFeature
Definition: MuonFeature.h:21
muCombUtil::getCombinedAverageSigma
double getCombinedAverageSigma(double sp1, double sp2)
Get sigma of weighted mean.
Definition: muCombUtil.cxx:369
muCombUtil::getChi2
double getChi2(int &ndof, double ipt, double eta1, double seta1, double phi1, double sphi1, double ipt1, double sipt1, double eta2, double seta2, double phi2, double sphi2, double ipt2, double sipt2, bool useAbsPt)
Get OLD style (i.e. muFast time) Chi2.
Definition: muCombUtil.cxx:374