ATLAS Offline Software
Loading...
Searching...
No Matches
HTcalculator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef INDETTRT_HTCALCULATOR
5#define INDETTRT_HTCALCULATOR
6
8// HTcalculater.h, (c) ATLAS Detector software
10
11/****************************************************************************************\
12
13 This class is instantiated in TRTHTCondAlg and put on CondStore
14
15 Original creator: Simon Heisterkamp (simon.heisterkamp@cern.ch)
16 Author: Troels Petersen (petersen@nbi.dk)
17 Peter Hansen (phansen@nbi.dk)
18
19\****************************************************************************************/
23#include "GaudiKernel/StatusCode.h"
26
28 public:
29 HTcalculator() = default;
30 virtual ~HTcalculator() = default;
31
33 // no-op
34 }
35 static float Limit(float prob);
36 // set constants to hard coded defaults
38
39 StatusCode ReadVectorDB(const CondAttrListVec* channel_values);
40
41 float getProbHT(float pTrk, Trk::ParticleHypothesis hypothesis, int TrtPart,
42 int GasType, int StrawLayer, float ZR, float rTrkAnode,
43 float Occupancy, bool hasTrackPars) const;
44
45 float pHTvsPGOG(int TrtPart, int GasType, float p, float mass,
46 float occ) const;
47
48 private:
49 static constexpr int N_GAS = 3;
50 static constexpr int N_DET = 3;
51 static constexpr int N_PAR2 = 10;
53 m_par_pHTvsPGOG_new[N_GAS][N_DET]; // New approach (useOccupancy = true)
54
55 // Store in a compact way all the corrections
58
61
64
67
68 static constexpr int SIZE_OF_HEADER = sizeof(float) * 4;
69 static constexpr int SIZE_OF_BLOB = sizeof(float) * ((N_PAR2 * N_DET));
70};
71
72CLASS_DEF(HTcalculator, 241669896, 1)
74#endif
A CondAttrListVec is an Athena DataObject holding a vector of CORAL AttributeLists,...
Hold mappings of ranges to condition objects.
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
float getProbHT(float pTrk, Trk::ParticleHypothesis hypothesis, int TrtPart, int GasType, int StrawLayer, float ZR, float rTrkAnode, float Occupancy, bool hasTrackPars) const
HTcalculator()=default
static float Limit(float prob)
static constexpr int N_DET
StorePIDinfo m_CpHT_B_Zee_SL_new[N_GAS][N_DET]
StorePIDinfo m_CpHT_B_Zmm_SL_new[N_GAS][N_DET]
StorePIDinfo m_CpHT_B_Zee_ZR_new[N_GAS][N_DET]
void setDefaultCalibrationConstants()
StorePIDinfo m_CpHT_B_Zmm_OR_new[N_GAS][N_DET]
StorePIDinfo m_CpHT_B_Zee_TW_new[N_GAS][N_DET]
static constexpr int SIZE_OF_BLOB
void checkInitialization()
float pHTvsPGOG(int TrtPart, int GasType, float p, float mass, float occ) const
StorePIDinfo m_CpHT_B_Zee_OR_new[N_GAS][N_DET]
static constexpr int N_PAR2
StorePIDinfo m_par_pHTvsPGOG_new[N_GAS][N_DET]
virtual ~HTcalculator()=default
StorePIDinfo m_CpHT_B_Zmm_TW_new[N_GAS][N_DET]
static constexpr int SIZE_OF_HEADER
static constexpr int N_GAS
StatusCode ReadVectorDB(const CondAttrListVec *channel_values)
StorePIDinfo m_CpHT_B_Zmm_ZR_new[N_GAS][N_DET]
ParticleHypothesis
Enumeration for Particle hypothesis respecting the interaction with material.