File indexing completed on 2024-04-06 11:57:22
0001 #ifndef Alignment_SurveyAnalysis_SurveyInputBase_h
0002 #define Alignment_SurveyAnalysis_SurveyInputBase_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0014
0015 class Alignable;
0016
0017 class SurveyInputBase : public edm::one::EDAnalyzer<> {
0018 public:
0019 ~SurveyInputBase() override;
0020
0021
0022 void beginJob() override { theFirstEvent = true; }
0023
0024
0025 void analyze(const edm::Event&, const edm::EventSetup&) override = 0;
0026
0027
0028 inline static Alignable* detector();
0029
0030
0031
0032 static void addComponent(Alignable*);
0033
0034 protected:
0035 bool theFirstEvent;
0036
0037 private:
0038 static Alignable* theDetector;
0039 };
0040
0041 Alignable* SurveyInputBase::detector() { return theDetector; }
0042
0043 #endif