20 #include "CLHEP/Random/RandGauss.h"
36 : theAlignableTracker(0),
57 if (m_radialEpsilon > -990.0){
60 if (m_telescopeEpsilon > -990.0){
63 if (m_layerRotEpsilon > -990.0){
66 if (m_bowingEpsilon > -990.0){
69 if (m_zExpEpsilon > -990.0){
72 if (m_twistEpsilon > -990.0){
75 if (m_ellipticalEpsilon > -990.0){
78 if (m_skewEpsilon > -990.0){
81 if (m_sagittaEpsilon > -990.0){
89 edm::LogWarning(
"MisalignedTracker") <<
"Blind movements suppressed (TIB/TOB in z, TID/TEC in r)";
147 std::string theAlignRecordName =
"TrackerAlignmentRcd";
148 std::string theErrorRecordName =
"TrackerAlignmentErrorExtendedRcd";
152 throw cms::Exception(
"NotAvailable") <<
"PoolDBOutputService not available";
162 unsigned int nComp = comp.size();
165 bool usecomps =
true;
167 for (
unsigned int i = 0;
i < nComp; ++
i){
172 bool blindToZ(
false), blindToR(
false);
194 if ((level == 1)||(level == 2)){
208 const double oldX = globalPos.
x();
209 const double oldY = globalPos.
y();
210 const double oldZ = globalPos.
z();
211 const double oldPhi = globalPos.
phi();
212 const double oldR =
sqrt(globalPos.
x()*globalPos.
x() + globalPos.
y()*globalPos.
y());
224 const double Roffset = 57.0;
227 deltaX += (xP - oldX);
228 deltaY += (yP - oldY);
231 const double trackeredgePlusZ=271.846;
232 const double bowfactor=
m_bowingEpsilon*(trackeredgePlusZ*trackeredgePlusZ-oldZ*oldZ);
233 deltaX += oldX*bowfactor;
234 deltaY += oldY*bowfactor;
242 deltaX += (xP - oldX);
243 deltaY += (yP - oldY);
void applySystematicMisalignment(Alignable *)
T getUntrackedParameter(std::string const &, T const &) const
AlignmentErrorsExtended * alignmentErrors() const
Return alignment errors, sorted by DetId.
Class to update a given geometry with a set of alignments.
#define DEFINE_FWK_MODULE(type)
TrackerGeometry * build(const GeometricDet *gd, const edm::ParameterSet &pSet)
Sin< T >::type sin(const T &t)
Geom::Phi< T > phi() const
virtual void move(const GlobalVector &displacement)=0
Movement with respect to the global reference frame.
const edm::ParameterSet theParameterSet
virtual Alignables components() const =0
Return vector of all direct components.
AlignableTracker * theAlignableTracker
double m_telescopeEpsilon
cond::Time_t beginOfTime() const
align::GlobalVector findSystematicMis(const align::PositionType &, const bool blindToZ, const bool blindToR)
Cos< T >::type cos(const T &t)
TrackerSystematicMisalignments(const edm::ParameterSet &)
virtual StructureType alignableObjectId() const =0
Return the alignable type identifier.
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
virtual void beginJob()
Read ideal tracker geometry from DB.
void applyAlignments(C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
T const * product() const
double m_ellipticalEpsilon
std::vector< Alignable * > Alignables
const PositionType & globalPosition() const
Return the global position of the object.
Alignments * alignments() const
Return alignments, sorted by DetId.
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
const DetId & geomDetId() const
virtual void analyze(const edm::Event &, const edm::EventSetup &)