71 : verbosity_(ps.getUntrackedParameter<unsigned
int>(
"verbosity", 0)),
73 tagUVPatternsStrip_(ps.getParameter<
edm::
InputTag>(
"tagUVPatternsStrip")),
74 tagDiamondHits_(ps.getParameter<
edm::
InputTag>(
"tagDiamondHits")),
75 tagPixelHits_(ps.getParameter<
edm::
InputTag>(
"tagPixelHits")),
76 tagPixelLocalTracks_(ps.getParameter<
edm::
InputTag>(
"tagPixelLocalTracks")),
87 worker_initialized_(
false),
91 <<
"Both tagPixelHits and tagPixelLocalTracks are not empty - most likely this not what you want.";
100 throw cms::Exception(
"PPS") <<
"PPSStraightTrackAligner can't cope with changing geometry - change in event " 101 <<
event.id() << endl;
110 worker_.
begin(hRealAlignment, hRealGeometry, hMisalignedGeometry);
120 pStripUVPatterns = &(*inputStripUVPatterns);
128 pDiamondHits = &(*inputDiamondHits);
136 pPixelHits = &(*inputPixelHits);
144 pPixelLocalTracks = &(*inputPixelLocalTracks);
StraightTrackAlignment worker_
An EDAnalyzer that runs StraightTrackAlignment.
Reconstructed hit in diamond detectors.
#define DEFINE_FWK_MODULE(type)
virtual void finish()
performs analyses and fill results variable
edm::InputTag tagUVPatternsStrip_
edm::ESGetToken< CTPPSGeometry, VeryForwardMisalignedGeometryRecord > esTokenMisalignedGeometry_
edm::EDGetTokenT< edm::DetSetVector< CTPPSDiamondRecHit > > tokenDiamondHits_
edm::EDGetTokenT< edm::DetSetVector< TotemRPUVPattern > > tokenUVPatternsStrip_
Track-based alignment using straight tracks.
edm::InputTag tagPixelLocalTracks_
edm::EDGetTokenT< edm::DetSetVector< CTPPSPixelRecHit > > tokenPixelHits_
edm::InputTag tagDiamondHits_
edm::ESGetToken< CTPPSGeometry, VeryForwardRealGeometryRecord > esTokenRealGeometry_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
virtual void processEvent(const edm::EventID &eventId, const edm::DetSetVector< TotemRPUVPattern > &uvPatternsStrip, const edm::DetSetVector< CTPPSDiamondRecHit > &hitsDiamond, const edm::DetSetVector< CTPPSPixelRecHit > &hitsPixel, const edm::DetSetVector< CTPPSPixelLocalTrack > &tracksPixel)
PPSStraightTrackAligner(const edm::ParameterSet &ps)
A linear pattern in U or V projection. The intercept b is taken at the middle of a RP: (geometry->Get...
virtual void begin(edm::ESHandle< CTPPSRPAlignmentCorrectionsData > hRealAlignment, edm::ESHandle< CTPPSGeometry > hRealGeometry, edm::ESHandle< CTPPSGeometry > hMisalignedGeometry)
void analyze(const edm::Event &e, const edm::EventSetup &es) override
~PPSStraightTrackAligner() override
edm::EDGetTokenT< edm::DetSetVector< CTPPSPixelLocalTrack > > tokenPixelLocalTracks_
bool check(const edm::EventSetup &iSetup)
edm::ESWatcher< VeryForwardRealGeometryRecord > geometryWatcher_
Log< level::Warning, false > LogWarning
edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, RPRealAlignmentRecord > esTokenRealAlignment_
edm::InputTag tagPixelHits_