test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  virtual ~SurveyInputBase();
23 
25  virtual void beginJob() { theFirstEvent = true; }
26 
28  virtual void analyze(
29  const edm::Event&,
30  const edm::EventSetup&
31  ) = 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
static void addComponent(Alignable *)
virtual ~SurveyInputBase()
static Alignable * detector()
Get alignable detector as read from input.
virtual void analyze(const edm::Event &, const edm::EventSetup &)=0
Do nothing for each event.
virtual void beginJob()
Read data from input.