CMS 3D CMS Logo

SurveyInputBase.h
Go to the documentation of this file.
1 #ifndef Alignment_SurveyAnalysis_SurveyInputBase_h
2 #define Alignment_SurveyAnalysis_SurveyInputBase_h
3 
14 
15 class Alignable;
16 
18  public edm::EDAnalyzer
19 {
20  public:
21 
22  ~SurveyInputBase() override;
23 
25  void beginJob() override { theFirstEvent = true; }
26 
28  void analyze(
29  const edm::Event&,
30  const edm::EventSetup&
31  ) override = 0;
32 
34  inline static Alignable* detector();
35 
38  static void addComponent(
39  Alignable*
40  );
41 
42  protected:
43 
45 
46  private:
47 
48  static Alignable* theDetector; // only one detector
49 };
50 
52 {
53  return theDetector;
54 }
55 
56 #endif
static Alignable * theDetector
void analyze(const edm::Event &, const edm::EventSetup &) override=0
Do nothing for each event.
static void addComponent(Alignable *)
static Alignable * detector()
Get alignable detector as read from input.
void beginJob() override
Read data from input.
~SurveyInputBase() override