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:
19  ~SurveyInputBase() override;
20 
22  void beginJob() override { theFirstEvent = true; }
23 
25  void analyze(const edm::Event&, const edm::EventSetup&) override = 0;
26 
28  inline static Alignable* detector();
29 
32  static void addComponent(Alignable*);
33 
34 protected:
36 
37 private:
38  static Alignable* theDetector; // only one detector
39 };
40 
42 
43 #endif
SurveyInputBase::addComponent
static void addComponent(Alignable *)
Definition: SurveyInputBase.cc:13
SurveyInputBase::theFirstEvent
bool theFirstEvent
Definition: SurveyInputBase.h:35
Alignable
Definition: Alignable.h:27
EDAnalyzer.h
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
SurveyInputBase
Definition: SurveyInputBase.h:17
edm::EventSetup
Definition: EventSetup.h:57
SurveyInputBase::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override=0
Do nothing for each event.
SurveyInputBase::theDetector
static Alignable * theDetector
Definition: SurveyInputBase.h:38
edm::Event
Definition: Event.h:73
SurveyInputBase::~SurveyInputBase
~SurveyInputBase() override
Definition: SurveyInputBase.cc:7
SurveyInputBase::beginJob
void beginJob() override
Read data from input.
Definition: SurveyInputBase.h:22
SurveyInputBase::detector
static Alignable * detector()
Get alignable detector as read from input.
Definition: SurveyInputBase.h:41