1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#ifndef GEOMETRY_HCALEVENTSETUP_HCALALIGNMENTEP_H
#define GEOMETRY_HCALEVENTSETUP_HCALALIGNMENTEP_H 1
// System
#include <memory>
// Framework
#include "FWCore/Framework/interface/ModuleFactory.h"
#include "FWCore/Framework/interface/ESProducer.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
// Alignment
#include "CondFormats/Alignment/interface/Alignments.h"
#include "CondFormats/Alignment/interface/AlignmentErrors.h"
#include "Geometry/HcalTowerAlgo/interface/HcalGeometry.h"
#include "CondFormats/AlignmentRecord/interface/HcalAlignmentRcd.h"
#include "CondFormats/AlignmentRecord/interface/HcalAlignmentErrorExtendedRcd.h"
class HcalAlignmentEP : public edm::ESProducer {
public:
using ReturnAli = std::unique_ptr<Alignments>;
typedef AlignTransform::Translation Trl;
typedef AlignTransform::Rotation Rot;
HcalAlignmentEP(const edm::ParameterSet&);
~HcalAlignmentEP() override;
//-------------------------------------------------------------------
ReturnAli produceHcalAli(const HcalAlignmentRcd& iRecord);
private:
edm::ESGetToken<Alignments, HBAlignmentRcd> hbToken_;
edm::ESGetToken<Alignments, HEAlignmentRcd> heToken_;
edm::ESGetToken<Alignments, HFAlignmentRcd> hfToken_;
edm::ESGetToken<Alignments, HOAlignmentRcd> hoToken_;
};
#endif
|