20 theAlignRecordName(
"TrackerAlignmentRcd" ),
21 theErrorRecordName(
"TrackerAlignmentErrorRcd" )
50 for ( align::Alignables::const_iterator iter = thePixelEndCapsAlignables.begin();
51 iter != thePixelEndCapsAlignables.end(); ++iter )
55 int id = (*iter)->geomDetId().rawId();
61 align::LocalVector lvector( local_displacements.at(0), local_displacements.at(1), local_displacements.at(2));
65 (*iter)->move( gvector );
68 (*iter)->rotateAroundLocalX( local_rotations.at(0) );
69 (*iter)->rotateAroundLocalY( local_rotations.at(1) );
70 (*iter)->rotateAroundLocalZ( local_rotations.at(2) );
81 for ( align::Alignables::const_iterator iter = theEndCapsAlignables.begin();
82 iter != theEndCapsAlignables.end(); ++iter ){
85 int id = (*iter)->geomDetId().rawId();
91 align::LocalVector lvector( local_displacements.at(0), local_displacements.at(1), local_displacements.at(2));
95 (*iter)->move( gvector );
98 (*iter)->rotateAroundLocalX( local_rotations.at(0) );
99 (*iter)->rotateAroundLocalY( local_rotations.at(1) );
100 (*iter)->rotateAroundLocalZ( local_rotations.at(2) );
111 for ( align::Alignables::const_iterator iter = thePixelHalfBarrelsAlignables.begin();
112 iter != thePixelHalfBarrelsAlignables.end(); ++iter ){
115 int id = (*iter)->geomDetId().rawId();
121 align::LocalVector lvector( local_displacements.at(0), local_displacements.at(1), local_displacements.at(2));
125 (*iter)->move( gvector );
128 (*iter)->rotateAroundLocalX( local_rotations.at(0) );
129 (*iter)->rotateAroundLocalY( local_rotations.at(1) );
130 (*iter)->rotateAroundLocalZ( local_rotations.at(2) );
141 for ( align::Alignables::const_iterator iter = theOuterHalfBarrelsAlignables.begin();
142 iter != theOuterHalfBarrelsAlignables.end(); ++iter ){
145 int id = (*iter)->geomDetId().rawId();
151 align::LocalVector lvector( local_displacements.at(0), local_displacements.at(1), local_displacements.at(2));
155 (*iter)->move( gvector );
158 (*iter)->rotateAroundLocalX( local_rotations.at(0) );
159 (*iter)->rotateAroundLocalY( local_rotations.at(1) );
160 (*iter)->rotateAroundLocalZ( local_rotations.at(2) );
171 for ( align::Alignables::const_iterator iter = theInnerHalfBarrelsAlignables.begin();
172 iter != theInnerHalfBarrelsAlignables.end(); ++iter ){
175 int id = (*iter)->geomDetId().rawId();
181 align::LocalVector lvector( local_displacements.at(0), local_displacements.at(1), local_displacements.at(2));
185 (*iter)->move( gvector );
188 (*iter)->rotateAroundLocalX( local_rotations.at(0) );
189 (*iter)->rotateAroundLocalY( local_rotations.at(1) );
190 (*iter)->rotateAroundLocalZ( local_rotations.at(2) );
201 for ( align::Alignables::const_iterator iter = theTIDsAlignables.begin();
202 iter != theTIDsAlignables.end(); ++iter ){
205 int id = (*iter)->geomDetId().rawId();
211 align::LocalVector lvector( local_displacements.at(0), local_displacements.at(1), local_displacements.at(2));
215 (*iter)->move( gvector );
218 (*iter)->rotateAroundLocalX( local_rotations.at(0) );
219 (*iter)->rotateAroundLocalY( local_rotations.at(1) );
220 (*iter)->rotateAroundLocalZ( local_rotations.at(2) );
232 for ( align::Alignables::const_iterator iter = theTIBTIDAlignables.begin();
233 iter != theTIBTIDAlignables.end(); ++iter )
237 int id = (*iter)->geomDetId().rawId();
243 align::GlobalVector gvector (globalDisplacements.at(0), globalDisplacements.at(1), globalDisplacements.at(2));
244 (*iter)->move( gvector );
249 (*iter)->rotateInGlobalFrame( theResultRotation );
251 (*iter)->rotateInGlobalFrame( backwardRotation );
265 throw cms::Exception(
"NotAvailable") <<
"PoolDBOutputService not available";
Alignables & pixelHalfBarrelGeomDets()
Return pixel barrel GeomDets.
void moveAlignableTIDs(int rawId, const align::Scalars &localDisplacements, const align::Scalars &localRotations)
void moveAlignablePixelEndCaps(int rawId, const align::Scalars &localDisplacements, const align::Scalars &localRotations)
void moveAlignableInnerHalfBarrels(int rawId, const align::Scalars &localDisplacements, const align::Scalars &localRotations)
void moveAlignablePixelHalfBarrels(int rawId, const align::Scalars &localDisplacements, const align::Scalars &localRotations)
std::string theAlignRecordName
Alignables TIBTIDGeomDets()
Return inner barrel and TID GeomDets together.
Alignables & innerBarrelGeomDets()
Return inner barrel GeomDets.
std::vector< Scalar > Scalars
Alignables & TIDGeomDets()
Return TID GeomDets.
AlignmentErrors * alignmentErrors() const
Return alignment errors, sorted by DetId.
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
TrackerAlignment(const edm::EventSetup &setup)
void moveAlignableOuterHalfBarrels(int rawId, const align::Scalars &localDisplacements, const align::Scalars &localRotations)
void moveAlignableTIBTIDs(int rawId, const align::Scalars &globalDisplacements, const align::RotationType &backwardRotation, const align::RotationType &forwardRotation, bool toAndFro)
std::string theErrorRecordName
Alignables & endcapGeomDets()
Return endcap GeomDets.
Alignables & pixelEndcapGeomDets()
Return pixel endcap GeomDets.
Alignables & outerBarrelGeomDets()
Return outer barrel GeomDets.
void moveAlignableEndCaps(int rawId, const align::Scalars &localDisplacements, const align::Scalars &localRotations)
std::vector< Alignable * > Alignables
cond::Time_t currentTime() const
TkRotation transposed() const
AlignableTracker * theAlignableTracker
Alignments * alignments() const
Return alignments, sorted by DetId.
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")