ATLAS Offline Software
Loading...
Searching...
No Matches
CaloCellPositionShift.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-.
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
13
14
15#ifndef CALOREC_CALOCELLPOSITIONSHIFT_H
16#define CALOREC_CALOCELLPOSITIONSHIFT_H
17
18
21#include <vector>
22
23namespace CaloRec {
24
31 {
32 public:
33 typedef std::vector<float> contType;
34 typedef contType::size_type size_type;
35
36 //** Default Constructor
38
39 //** Standard constructor, resize vector and set elements to 0.
41
42
43 //** access to shift in X
44 inline float deltaX(const size_type& hashID) const
45 {return m_deltaX[hashID];}
46 //** access to shift in Y
47 inline float deltaY(const size_type& hashID) const
48 {return m_deltaY[hashID];}
49 //** access to shift in Z
50 inline float deltaZ(const size_type& hashID) const
51 {return m_deltaZ[hashID];}
52
53 //** set dx shift
54 inline void set_deltaX(const size_type& hashID,float dx)
55 {if(hashID<m_deltaX.size()) m_deltaX[hashID]=dx;}
56 //** set dy shift
57 inline void set_deltaY(const size_type& hashID,float dy)
58 {if(hashID<m_deltaY.size()) m_deltaY[hashID]=dy;}
59 //** set dz shift
60 inline void set_deltaZ(const size_type& hashID,float dz)
61 {if(hashID<m_deltaZ.size()) m_deltaZ[hashID]=dz;}
62
63 //** resize underlying vector (new elements will be 1.0)
64 void resize(const size_type& size);
65
67 {return m_deltaX.size();}
68
69 private:
73
74
75 };//end class
76}// end namespace
77
79CONDCONT_DEF(CaloRec::CaloCellPositionShift,219045687);
80
81#endif
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
Container for a cell-level rescaling-factors, typically obtained by Z->ee intercalibration.
void set_deltaY(const size_type &hashID, float dy)
void set_deltaX(const size_type &hashID, float dx)
void resize(const size_type &size)
float deltaX(const size_type &hashID) const
void set_deltaZ(const size_type &hashID, float dz)
float deltaY(const size_type &hashID) const
float deltaZ(const size_type &hashID) const
Namespace for helper functions.