MagneticField
Layers
src
MagBSector.cc
Go to the documentation of this file.
1
// #include "Utilities/Configuration/interface/Architecture.h"
2
3
/*
4
* See header file for a description of this class.
5
*
6
* \author N. Amapane - INFN Torino
7
*/
8
9
#include "
MagneticField/Layers/interface/MagBSector.h
"
10
#include "
MagneticField/Layers/interface/MagBRod.h
"
11
12
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
13
14
#include <iostream>
15
16
using namespace
std
;
17
18
MagBSector::MagBSector
(vector<MagBRod*>& rods,
Geom::Phi<float>
phiMin
) : theRods(rods), thePhiMin(
phiMin
) {}
19
20
MagBSector::~MagBSector
() {
21
for
(vector<MagBRod*>::const_iterator irod =
theRods
.begin(); irod !=
theRods
.end(); ++irod) {
22
delete
(*irod);
23
}
24
}
25
26
const
MagVolume
*
MagBSector::findVolume
(
const
GlobalPoint
&
gp
,
double
tolerance
)
const
{
27
const
MagVolume
*
result
=
nullptr
;
28
Geom::Phi<float>
phi
=
gp
.phi();
29
30
// FIXME : use a binfinder
31
for
(vector<MagBRod*>::const_iterator irod =
theRods
.begin(); irod !=
theRods
.end(); ++irod) {
32
LogTrace
(
"MagGeometry"
) <<
" Trying rod at phi "
<< (*irod)->minPhi() <<
" "
<<
phi
<< endl;
33
result
= (*irod)->findVolume(
gp
,
tolerance
);
34
if
(
result
!=
nullptr
)
35
return
result
;
36
}
37
38
return
nullptr
;
39
}
MessageLogger.h
MagBSector::~MagBSector
virtual ~MagBSector()
Destructor.
Definition:
MagBSector.cc:20
AlignmentTrackSelector_cfi.phiMin
phiMin
Definition:
AlignmentTrackSelector_cfi.py:18
Point3DBase< float, GlobalTag >
MagBSector::MagBSector
MagBSector(std::vector< MagBRod * > &rods, Geom::Phi< float > phiMin)
Constructor.
Definition:
MagBSector.cc:18
runTauDisplay.gp
gp
Definition:
runTauDisplay.py:431
MagVolume
Definition:
MagVolume.h:13
tolerance
const double tolerance
Definition:
HGCalGeomParameters.cc:29
Geom::Phi< float >
DDAxes::phi
MagBSector::theRods
std::vector< MagBRod * > theRods
Definition:
MagBSector.h:39
std
Definition:
JetResolutionObject.h:76
MagBSector.h
MagBRod.h
MagBSector::findVolume
const MagVolume * findVolume(const GlobalPoint &gp, double tolerance) const
Find the volume containing a point, with a given tolerance.
Definition:
MagBSector.cc:26
mps_fire.result
result
Definition:
mps_fire.py:311
LogTrace
#define LogTrace(id)
Definition:
MessageLogger.h:234
Generated for CMSSW Reference Manual by
1.8.16