test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes
FastTimeGeometry Class Referencefinal

#include <FastTimeGeometry.h>

Inheritance diagram for FastTimeGeometry:
CaloSubdetectorGeometry

Public Types

enum  { k_NumberOfParametersPerShape = 12 }
 
enum  { k_NumberOfShapes = 50 }
 
typedef FastTimeGeometryRecord AlignedRecord
 
typedef CaloCellGeometry::CCGFloat CCGFloat
 
typedef std::vector< FlatTrdCellVec
 
typedef std::vector< GlobalPointCornersVec
 
typedef std::set< DetIdDetIdSet
 
typedef PFastTimeRcd PGeometryRecord
 
typedef CaloCellGeometry::Pt3D Pt3D
 
typedef CaloCellGeometry::Pt3DVec Pt3DVec
 
- Public Types inherited from CaloSubdetectorGeometry
typedef CaloCellGeometry::CCGFloat CCGFloat
 
typedef std::vector
< CaloCellGeometry const * > 
CellSet
 
typedef std::set< DetIdDetIdSet
 
typedef std::vector< CCGFloatDimVec
 
typedef std::vector< unsigned int > IVec
 
typedef CaloCellGeometry::ParMgr ParMgr
 
typedef CaloCellGeometry::ParVec ParVec
 
typedef CaloCellGeometry::ParVecVec ParVecVec
 
typedef std::vector< CCGFloatTrVec
 

Public Member Functions

std::string cellElement () const
 
 FastTimeGeometry (const FastTimeTopology &topology)
 
virtual void fillNamedParams (DDFilteredView fv)
 
virtual DetIdSet getCells (const GlobalPoint &r, double dR) const override
 Get a list of all cells within a dR of the given cell. More...
 
virtual DetId getClosestCell (const GlobalPoint &r) const override
 
CornersVec getCorners (const DetId &id) const
 Returns the corner points of this cell's volume. More...
 
virtual const CaloCellGeometrygetGeometry (const DetId &id) const override
 Get the cell geometry of a given detector id. Should return false if not found. More...
 
GlobalPoint getPosition (const DetId &id) const
 
virtual void getSummary (CaloSubdetectorGeometry::TrVec &trVector, CaloSubdetectorGeometry::IVec &iVector, CaloSubdetectorGeometry::DimVec &dimVector, CaloSubdetectorGeometry::IVec &dinsVector) const override
 
virtual const std::vector
< DetId > & 
getValidDetIds (DetId::Detector det=DetId::Detector(0), int subdet=0) const override
 Get a list of valid detector ids (for the given subdetector) More...
 
const std::vector< DetId > & getValidGeomDetIds (void) const
 
virtual void initializeParms () override
 
void localCorners (Pt3DVec &lc, const CCGFloat *pv, unsigned int i, Pt3D &ref)
 
virtual void newCell (const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId) override
 
void sortDetIds ()
 
const FastTimeTopologytopology () const
 
virtual ~FastTimeGeometry ()
 
- Public Member Functions inherited from CaloSubdetectorGeometry
void allocateCorners (CaloCellGeometry::CornersVec::size_type n)
 
void allocatePar (ParVec::size_type n, unsigned int m)
 
 CaloSubdetectorGeometry ()
 
CaloCellGeometry::CornersMgrcornersMgr ()
 
CCGFloat deltaEta (const DetId &detId) const
 
CCGFloat deltaPhi (const DetId &detId) const
 
virtual void fillDefaultNamedParameters () const
 
virtual CellSet getCellSet (const GlobalPoint &r, double dR) const
 
virtual unsigned int numberOfParametersPerShape () const
 
virtual unsigned int numberOfShapes () const
 
virtual unsigned int numberOfTransformParms () const
 
ParMgrparMgr ()
 
const ParMgrparMgrConst () const
 
ParVecVecparVecVec ()
 
const ParVecVecparVecVec () const
 
virtual bool present (const DetId &id) const
 is this detid present in the geometry? More...
 
virtual ~CaloSubdetectorGeometry ()
 The base class DOES assume that it owns the CaloCellGeometry objects. More...
 

Static Public Member Functions

static std::string dbString ()
 
static std::string producerTag ()
 

Protected Member Functions

void addValidID (const DetId &id)
 
virtual const CaloCellGeometrycellGeomPtr (uint32_t index) const override
 
virtual unsigned int indexFor (const DetId &id) const override
 
unsigned int sizeForDenseIndex () const
 
- Protected Member Functions inherited from CaloSubdetectorGeometry
void addValidID (const DetId &id)
 
virtual unsigned int sizeForDenseIndex (const DetId &id) const
 

Private Attributes

CellVec m_cellVec
 
ForwardSubdetector m_subdet
 
const FastTimeTopologym_topology
 
int m_Type
 
std::vector< DetIdm_validGeomIds
 

Additional Inherited Members

- Static Protected Member Functions inherited from CaloSubdetectorGeometry
static CCGFloat deltaR (const GlobalPoint &p1, const GlobalPoint &p2)
 
- Protected Attributes inherited from CaloSubdetectorGeometry
ParVecVec m_parVecVec
 
std::vector< DetIdm_validIds
 

Detailed Description

Definition at line 26 of file FastTimeGeometry.h.

Member Typedef Documentation

Definition at line 39 of file FastTimeGeometry.h.

Definition at line 32 of file FastTimeGeometry.h.

typedef std::vector<FlatTrd> FastTimeGeometry::CellVec

Definition at line 30 of file FastTimeGeometry.h.

Definition at line 37 of file FastTimeGeometry.h.

typedef std::set<DetId> FastTimeGeometry::DetIdSet

Definition at line 36 of file FastTimeGeometry.h.

Definition at line 40 of file FastTimeGeometry.h.

Definition at line 33 of file FastTimeGeometry.h.

Definition at line 34 of file FastTimeGeometry.h.

Member Enumeration Documentation

anonymous enum
Enumerator
k_NumberOfParametersPerShape 

Definition at line 42 of file FastTimeGeometry.h.

anonymous enum
Enumerator
k_NumberOfShapes 

Definition at line 43 of file FastTimeGeometry.h.

Constructor & Destructor Documentation

FastTimeGeometry::FastTimeGeometry ( const FastTimeTopology topology)

Definition at line 17 of file FastTimeGeometry.cc.

References gather_cfg::cout, CaloSubdetectorGeometry::m_validIds, topology(), and FastTimeTopology::totalGeomModules().

18  : m_topology(topology_),
19  m_cellVec(topology_.totalGeomModules()),
20  m_validGeomIds(topology_.totalGeomModules()),
21  m_Type(topology_.detectorType()),
22  m_subdet(topology_.subDetector()) {
23 
24  m_validIds.reserve(topology().totalModules());
25 #ifdef EDM_ML_DEBUG
26  std::cout << "Expected total # of Geometry Modules "
27  << topology().totalGeomModules() << std::endl;
28 #endif
29 }
unsigned int totalGeomModules() const
const FastTimeTopology & topology() const
std::vector< DetId > m_validIds
tuple cout
Definition: gather_cfg.py:145
ForwardSubdetector m_subdet
std::vector< DetId > m_validGeomIds
const FastTimeTopology & m_topology
FastTimeGeometry::~FastTimeGeometry ( )
virtual

Definition at line 31 of file FastTimeGeometry.cc.

31 { }

Member Function Documentation

void FastTimeGeometry::addValidID ( const DetId id)
protected

Definition at line 168 of file FastTimeGeometry.cc.

168  {
169  edm::LogError("FastTimeGeom") << "FastTimeGeometry::addValidID is not implemented";
170 }
std::string FastTimeGeometry::cellElement ( ) const

Definition at line 134 of file FastTimeGeometry.cc.

References m_Type.

134  {
135  if (m_Type == 1) return "FastTimeBarrel";
136  else if (m_Type == 2) return "FastTimeEndcap";
137  else return "Unknown";
138 }
const CaloCellGeometry * FastTimeGeometry::cellGeomPtr ( uint32_t  index) const
overrideprotectedvirtual

Implements CaloSubdetectorGeometry.

Definition at line 157 of file FastTimeGeometry.cc.

References m_cellVec, m_validGeomIds, and CaloCellGeometry::param().

Referenced by getGeometry(), and getSummary().

157  {
158  if ((index >= m_cellVec.size()) || (m_validGeomIds[index].rawId() == 0))
159  return 0;
160  const CaloCellGeometry* cell ( &m_cellVec[ index ] ) ;
161 #ifdef EDM_ML_DEBUG
162  // std::cout << "cellGeomPtr " << m_cellVec[index];
163 #endif
164  if (0 == cell->param()) return 0;
165  return cell;
166 }
std::vector< DetId > m_validGeomIds
static std::string FastTimeGeometry::dbString ( )
inlinestatic

Definition at line 45 of file FastTimeGeometry.h.

45 { return "PFastTimeRcd" ; }
void FastTimeGeometry::fillNamedParams ( DDFilteredView  fv)
virtual

Definition at line 33 of file FastTimeGeometry.cc.

33 {}
FastTimeGeometry::DetIdSet FastTimeGeometry::getCells ( const GlobalPoint r,
double  dR 
) const
overridevirtual

Get a list of all cells within a dR of the given cell.

The default implementation makes a loop over all cell geometries. Cleverer implementations are suggested to use rough conversions between eta/phi and ieta/iphi and test on the boundaries.

Reimplemented from CaloSubdetectorGeometry.

Definition at line 129 of file FastTimeGeometry.cc.

129  {
131  return dss;
132 }
std::set< DetId > DetIdSet
DetId FastTimeGeometry::getClosestCell ( const GlobalPoint r) const
overridevirtual

Reimplemented from CaloSubdetectorGeometry.

Definition at line 109 of file FastTimeGeometry.cc.

References gather_cfg::cout, FastTimeTopology::dddConstants(), FastTimeDDDConstants::getEtaPhi(), FastTimeDDDConstants::getZPhi(), m_Type, PV3DBase< T, PVType, FrameType >::perp(), phi, PV3DBase< T, PVType, FrameType >::phi(), topology(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), PV3DBase< T, PVType, FrameType >::z(), and ecaldqm::zside().

109  {
110  int zside = (r.z() > 0) ? 1 : -1;
111  std::pair<int,int> etaZPhi;
112  if (m_Type == 1) {
113  double zz = (zside > 0) ? r.z() : -r.z();
114  etaZPhi = topology().dddConstants().getZPhi(zz,r.phi());
115  } else {
116  double phi = (zside > 0) ? r.phi() : atan2(r.y(),-r.x());
117  etaZPhi = topology().dddConstants().getEtaPhi(r.perp(),phi);
118  }
119  FastTimeDetId id = FastTimeDetId(m_Type,etaZPhi.first,etaZPhi.second,zside);
120 #ifdef EDM_ML_DEBUG
121  std::cout << "getClosestCell: for (" << r.x() << ", " << r.y() << ", "
122  << r.z() << ") Id " << id.type() << ":" << id.zside() << ":"
123  << id.ieta() << ":" << id.iphi() << std::endl;
124 #endif
125 
126  return (topology().valid(id) ? DetId(id) : DetId());
127 }
T perp() const
Definition: PV3DBase.h:72
std::pair< int, int > getEtaPhi(double r, double phi) const
Geom::Phi< T > phi() const
Definition: PV3DBase.h:69
const FastTimeTopology & topology() const
T y() const
Definition: PV3DBase.h:63
int zside(DetId const &)
std::pair< int, int > getZPhi(double z, double phi) const
T z() const
Definition: PV3DBase.h:64
Definition: DetId.h:18
tuple cout
Definition: gather_cfg.py:145
T x() const
Definition: PV3DBase.h:62
const FastTimeDDDConstants & dddConstants() const
FastTimeGeometry::CornersVec FastTimeGeometry::getCorners ( const DetId id) const

Returns the corner points of this cell's volume.

Definition at line 103 of file FastTimeGeometry.cc.

References FastTimeTopology::dddConstants(), FastTimeDDDConstants::getCorners(), FastTimeDetId::ieta(), FastTimeDetId::iphi(), m_Type, topology(), and FastTimeDetId::zside().

103  {
104 
105  FastTimeDetId id_ = FastTimeDetId(id);
106  return topology().dddConstants().getCorners(m_Type,id_.ieta(),id_.iphi(),id_.zside());
107 }
int ieta() const
get the absolute value of the cell #&#39;s along x-axis (EC) | z-axis (Barel)
Definition: FastTimeDetId.h:42
const FastTimeTopology & topology() const
int iphi() const
get the absolute value of the cell #&#39;s along y-axis (EC) | phi (Barrel)
Definition: FastTimeDetId.h:46
int zside() const
get the z-side of the cell (1/-1)
Definition: FastTimeDetId.h:49
std::vector< GlobalPoint > getCorners(int type, int izeta, int iphi, int zside) const
const FastTimeDDDConstants & dddConstants() const
const CaloCellGeometry * FastTimeGeometry::getGeometry ( const DetId id) const
overridevirtual

Get the cell geometry of a given detector id. Should return false if not found.

Reimplemented from CaloSubdetectorGeometry.

Definition at line 89 of file FastTimeGeometry.cc.

References cellGeomPtr(), FastTimeDetId::geometryCell(), and topology().

89  {
90 
91  if (id == DetId()) return 0; // nothing to get
92  DetId geoId = (DetId)(FastTimeDetId(id).geometryCell());
93  const uint32_t cellIndex (topology().detId2denseGeomId(geoId));
94  return cellGeomPtr (cellIndex);
95 }
FastTimeDetId geometryCell() const
Definition: FastTimeDetId.h:33
const FastTimeTopology & topology() const
virtual const CaloCellGeometry * cellGeomPtr(uint32_t index) const override
Definition: DetId.h:18
GlobalPoint FastTimeGeometry::getPosition ( const DetId id) const

Definition at line 97 of file FastTimeGeometry.cc.

References FastTimeTopology::dddConstants(), FastTimeDDDConstants::getPosition(), FastTimeDetId::ieta(), FastTimeDetId::iphi(), m_Type, topology(), and FastTimeDetId::zside().

97  {
98 
99  FastTimeDetId id_ = FastTimeDetId(id);
100  return topology().dddConstants().getPosition(m_Type,id_.ieta(),id_.iphi(),id_.zside());
101 }
int ieta() const
get the absolute value of the cell #&#39;s along x-axis (EC) | z-axis (Barel)
Definition: FastTimeDetId.h:42
const FastTimeTopology & topology() const
int iphi() const
get the absolute value of the cell #&#39;s along y-axis (EC) | phi (Barrel)
Definition: FastTimeDetId.h:46
int zside() const
get the z-side of the cell (1/-1)
Definition: FastTimeDetId.h:49
GlobalPoint getPosition(int type, int izeta, int iphi, int zside) const
const FastTimeDDDConstants & dddConstants() const
void FastTimeGeometry::getSummary ( CaloSubdetectorGeometry::TrVec trVector,
CaloSubdetectorGeometry::IVec iVector,
CaloSubdetectorGeometry::DimVec dimVector,
CaloSubdetectorGeometry::IVec dinsVector 
) const
overridevirtual

Reimplemented from CaloSubdetectorGeometry.

Definition at line 187 of file FastTimeGeometry.cc.

References cellGeomPtr(), FastTimeTopology::dddConstants(), CaloCellGeometry::getPosition(), FastTimeDDDConstants::getRin(), FastTimeDDDConstants::getRout(), CaloCellGeometry::getTransform(), FastTimeDDDConstants::getZHalf(), runTauDisplay::gp, i, relval_2017::k, k_NumberOfParametersPerShape, k_NumberOfShapes, m_Type, m_validGeomIds, CaloSubdetectorGeometry::numberOfParametersPerShape(), CaloSubdetectorGeometry::numberOfShapes(), CaloSubdetectorGeometry::numberOfTransformParms(), findQualityFiles::rr, topology(), FastTimeTopology::totalGeomModules(), and groupFilesInBlocks::tt.

190  {
191 
192  unsigned int numberOfCells = topology().totalGeomModules(); // total Geom Modules both sides
195 
196  trVector.reserve( numberOfCells * numberOfTransformParms());
197  iVector.reserve( numberOfCells );
198  dimVector.reserve( numberOfShapes * numberOfParametersPerShape );
199  dinsVector.reserve( numberOfCells );
200 
201  for (unsigned int k=0; k <topology().totalGeomModules(); ++k) {
203  params[0] = topology().dddConstants().getZHalf(m_Type);
204  params[1] = params[2] = 0;
205  params[3] = params[7] = topology().dddConstants().getRin(m_Type);
206  params[4] = params[8] = topology().dddConstants().getRout(m_Type);
207  params[5] = params[9] = topology().dddConstants().getRout(m_Type);
208  params[6] = params[10]= 0;
209  params[11]= (k == 0) ? 1.0 : -1.0;
210  dimVector.insert( dimVector.end(), params.begin(), params.end());
211  }
212 
213  for (unsigned int i( 0 ); i < numberOfCells; ++i) {
214  DetId detId = m_validGeomIds[i];
215  dinsVector.push_back( topology().detId2denseGeomId( detId ));
216  iVector.push_back(1);
217 
218  Tr3D tr;
219  const CaloCellGeometry* ptr( cellGeomPtr( i ));
220  if ( 0 != ptr ) {
221  ptr->getTransform( tr, ( Pt3DVec* ) 0 );
222 
223  if( Tr3D() == tr ) { // there is no rotation
224  const GlobalPoint& gp( ptr->getPosition());
225  tr = HepGeom::Translate3D( gp.x(), gp.y(), gp.z());
226  }
227 
228  const CLHEP::Hep3Vector tt( tr.getTranslation());
229  trVector.push_back( tt.x());
230  trVector.push_back( tt.y());
231  trVector.push_back( tt.z());
232  if (6 == numberOfTransformParms()) {
233  const CLHEP::HepRotation rr( tr.getRotation());
234  const ROOT::Math::Transform3D rtr( rr.xx(), rr.xy(), rr.xz(), tt.x(),
235  rr.yx(), rr.yy(), rr.yz(), tt.y(),
236  rr.zx(), rr.zy(), rr.zz(), tt.z());
238  rtr.GetRotation( ea );
239  trVector.push_back( ea.Phi());
240  trVector.push_back( ea.Theta());
241  trVector.push_back( ea.Psi());
242  }
243  }
244  }
245 }
int i
Definition: DBlmapReader.cc:9
unsigned int totalGeomModules() const
virtual unsigned int numberOfParametersPerShape() const
const FastTimeTopology & topology() const
std::vector< float > ParmVec
virtual unsigned int numberOfShapes() const
virtual const CaloCellGeometry * cellGeomPtr(uint32_t index) const override
Definition: DetId.h:18
AlgebraicVector EulerAngles
Definition: Definitions.h:36
double getRin(int type) const
CaloCellGeometry::Pt3DVec Pt3DVec
CaloCellGeometry::Tr3D Tr3D
double getRout(int type) const
double getZHalf(int type) const
virtual unsigned int numberOfTransformParms() const
const FastTimeDDDConstants & dddConstants() const
std::vector< DetId > m_validGeomIds
virtual const std::vector<DetId>& FastTimeGeometry::getValidDetIds ( DetId::Detector  det = DetId::Detector(0),
int  subdet = 0 
) const
inlineoverridevirtual

Get a list of valid detector ids (for the given subdetector)

Note
The implementation in this class is relevant for SubdetectorGeometries which handle only a single subdetector at a time. It does not look at the det and subdet arguments.

Reimplemented from CaloSubdetectorGeometry.

Definition at line 76 of file FastTimeGeometry.h.

References CaloSubdetectorGeometry::m_validIds.

76 { return m_validIds; }
std::vector< DetId > m_validIds
const std::vector<DetId>& FastTimeGeometry::getValidGeomDetIds ( void  ) const
inline

Definition at line 77 of file FastTimeGeometry.h.

References m_validGeomIds.

77 { return m_validGeomIds; }
std::vector< DetId > m_validGeomIds
unsigned int FastTimeGeometry::indexFor ( const DetId id) const
overrideprotectedvirtual

Reimplemented from CaloSubdetectorGeometry.

Definition at line 140 of file FastTimeGeometry.cc.

References gather_cfg::cout, TauDecayModes::dec, FastTimeTopology::detId2denseGeomId(), FastTimeDetId::geometryCell(), m_cellVec, DetId::rawId(), and topology().

140  {
141  unsigned int cellIndex = m_cellVec.size();
142  if (id != DetId()) {
143  DetId geoId = (DetId)(FastTimeDetId(id).geometryCell());
144  cellIndex = topology().detId2denseGeomId(geoId);
145 #ifdef EDM_ML_DEBUG
146  std::cout << "indexFor " << std::hex << id.rawId() << ":" << geoId.rawId()
147  << std::dec << " index " << cellIndex << std::endl;
148 #endif
149  }
150  return cellIndex;
151 }
FastTimeDetId geometryCell() const
Definition: FastTimeDetId.h:33
const FastTimeTopology & topology() const
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
virtual uint32_t detId2denseGeomId(const DetId &id) const
Definition: DetId.h:18
tuple cout
Definition: gather_cfg.py:145
void FastTimeGeometry::initializeParms ( )
overridevirtual

Reimplemented from CaloSubdetectorGeometry.

Definition at line 35 of file FastTimeGeometry.cc.

35  {
36 }
void FastTimeGeometry::localCorners ( Pt3DVec lc,
const CCGFloat pv,
unsigned int  i,
Pt3D ref 
)

Definition at line 38 of file FastTimeGeometry.cc.

References FlatTrd::localCorners().

41  {
42  FlatTrd::localCorners( lc, pv, ref ) ;
43 }
static void localCorners(Pt3DVec &vec, const CCGFloat *pv, Pt3D &ref)
Definition: FlatTrd.cc:159
void FastTimeGeometry::newCell ( const GlobalPoint f1,
const GlobalPoint f2,
const GlobalPoint f3,
const CCGFloat parm,
const DetId detId 
)
overridevirtual

Implements CaloSubdetectorGeometry.

Definition at line 45 of file FastTimeGeometry.cc.

References CaloSubdetectorGeometry::cornersMgr(), gather_cfg::cout, FastTimeTopology::dddConstants(), TauDecayModes::dec, FastTimeTopology::decode(), FastTimeTopology::encode(), FastTimeDetId::geometryCell(), m_cellVec, m_Type, m_validGeomIds, CaloSubdetectorGeometry::m_validIds, HLT_25ns10e33_v2_cff::nPhi, FastTimeDDDConstants::numberEtaZ(), FastTimeDDDConstants::numberPhi(), phi, DetId::rawId(), topology(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

Referenced by FastTimeGeometryLoader::buildGeom().

49  {
50 
52  DetId geomId = (DetId)(FastTimeDetId(detId).geometryCell());
53  int nEtaZ = topology().dddConstants().numberEtaZ(m_Type);
55 
56  const uint32_t cellIndex (topology().detId2denseGeomId(detId));
57 
58  m_cellVec.at( cellIndex ) = FlatTrd( cornersMgr(), f1, f2, f3, parm ) ;
59  m_validGeomIds.at( cellIndex ) = geomId ;
60 
61 #ifdef EDM_ML_DEBUG
62  unsigned int nOld = m_validIds.size();
63 #endif
64  for (int etaZ = 1; etaZ <= nEtaZ; ++etaZ) {
65  id.iEtaZ = etaZ;
66  for (int phi = 1; phi <= nPhi; ++phi) {
67  id.iPhi = phi;
68  DetId idc = topology().encode(id);
69  if (topology().valid(idc)) {
70  m_validIds.push_back(idc);
71  }
72  }
73  }
74 
75 #ifdef EDM_ML_DEBUG
76  std::cout << "FastTimeGeometry::newCell-> [" << cellIndex << "]"
77  << " front:" << f1.x() << '/' << f1.y() << '/' << f1.z()
78  << " back:" << f2.x() << '/' << f2.y() << '/' << f2.z()
79  << " eta|phi " << m_cellVec[cellIndex].etaPos() << ":"
80  << m_cellVec[cellIndex].phiPos() << " id:" << FastTimeDetId(detId)
81  << " with valid DetId from " << nOld << " to " << m_validIds.size()
82  << std::endl;
83  std::cout << "Cell[" << cellIndex << "] " << std::hex << geomId.rawId()
84  << ":" << m_validGeomIds[cellIndex].rawId() << std::dec
85  << std::endl;
86 #endif
87 }
DecodedDetId decode(const DetId &id) const
A base class to handle the particular shape of HGCal volumes.
Definition: FlatTrd.h:19
int numberEtaZ(int type) const
FastTimeDetId geometryCell() const
Definition: FastTimeDetId.h:33
const FastTimeTopology & topology() const
T y() const
Definition: PV3DBase.h:63
int numberPhi(int type) const
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
std::vector< DetId > m_validIds
T z() const
Definition: PV3DBase.h:64
Definition: DetId.h:18
CaloCellGeometry::CornersMgr * cornersMgr()
DetId encode(const DecodedDetId &id_) const
tuple cout
Definition: gather_cfg.py:145
T x() const
Definition: PV3DBase.h:62
const FastTimeDDDConstants & dddConstants() const
std::vector< DetId > m_validGeomIds
static std::string FastTimeGeometry::producerTag ( )
inlinestatic

Definition at line 93 of file FastTimeGeometry.h.

93 { return "FastTime" ; }
unsigned int FastTimeGeometry::sizeForDenseIndex ( ) const
protected

Definition at line 153 of file FastTimeGeometry.cc.

References topology(), and FastTimeTopology::totalGeomModules().

153  {
154  return topology().totalGeomModules();
155 }
unsigned int totalGeomModules() const
const FastTimeTopology & topology() const
void FastTimeGeometry::sortDetIds ( void  )

Definition at line 182 of file FastTimeGeometry.cc.

References CaloSubdetectorGeometry::m_validIds.

Referenced by FastTimeGeometryLoader::build().

182  {
183  m_validIds.shrink_to_fit();
184  std::sort( m_validIds.begin(), m_validIds.end(), rawIdSort());
185 }
std::vector< DetId > m_validIds
const FastTimeTopology& FastTimeGeometry::topology ( ) const
inline

Definition at line 96 of file FastTimeGeometry.h.

References m_topology.

Referenced by FastTimeGeometry(), getClosestCell(), getCorners(), getGeometry(), getPosition(), getSummary(), indexFor(), newCell(), and sizeForDenseIndex().

96 {return m_topology;}
const FastTimeTopology & m_topology

Member Data Documentation

CellVec FastTimeGeometry::m_cellVec
private

Definition at line 112 of file FastTimeGeometry.h.

Referenced by cellGeomPtr(), indexFor(), and newCell().

ForwardSubdetector FastTimeGeometry::m_subdet
private

Definition at line 115 of file FastTimeGeometry.h.

const FastTimeTopology& FastTimeGeometry::m_topology
private

Definition at line 110 of file FastTimeGeometry.h.

Referenced by topology().

int FastTimeGeometry::m_Type
private
std::vector<DetId> FastTimeGeometry::m_validGeomIds
private

Definition at line 113 of file FastTimeGeometry.h.

Referenced by cellGeomPtr(), getSummary(), getValidGeomDetIds(), and newCell().