CMS 3D CMS Logo

AbsHFPhase1Algo.h
Go to the documentation of this file.
1 #ifndef RecoLocalCalo_HcalRecAlgos_AbsHFPhase1Algo_h_
2 #define RecoLocalCalo_HcalRecAlgos_AbsHFPhase1Algo_h_
3 
7 
8 class AbsHcalAlgoData;
9 
10 //
11 // It is assumed that the HF Phase 1 algorithms will be developed
12 // utilizing pairs of classes: a DB class with relevant calibration
13 // constants and configuration parameters, derived from AbsHcalAlgoData,
14 // and the algo class, derived from AbsHFPhase1Algo, utilizing that DB class.
15 //
16 // We can expect that the same calibration constants might be utilized
17 // by different reco algorithms.
18 //
19 // In principle, of course, the configuration objects do not have to be
20 // actually stored in the database. It is expected that, at the early
21 // stages of our understanding of energy reconstruction with dual-anode
22 // PMTs, these objects will be created from the module configuration
23 // parameters.
24 //
26 {
27 public:
28  inline virtual ~AbsHFPhase1Algo() {}
29 
30  // Does this class expect to receive its configuration from the database?
31  virtual bool isConfigurable() const = 0;
32 
33  // If using DB, expect that the configuration will be updated
34  // once per run. We will not manage the pointer here. "true"
35  // should be returned on success (typically, automatic cast
36  // from the pointer checked by the appropriate dynamic cast).
37  inline virtual bool configure(const AbsHcalAlgoData*) {return false;}
38 
39  // Convention: if we do not want to use the given HFPreRecHit
40  // at all (i.e., it is to be discarded), the returned HFRecHit
41  // should have its id (of type HcalDetId) set to 0.
42  virtual HFRecHit reconstruct(const HFPreRecHit& prehit,
43  const HcalCalibrations& calibs,
44  const bool flaggedBadInDB[2],
45  bool expectSingleAnodePMT) = 0;
46 };
47 
48 #endif // RecoLocalCalo_HcalRecAlgos_AbsHFPhase1Algo_h_
virtual ~AbsHFPhase1Algo()
virtual HFRecHit reconstruct(const HFPreRecHit &prehit, const HcalCalibrations &calibs, const bool flaggedBadInDB[2], bool expectSingleAnodePMT)=0
virtual bool isConfigurable() const =0
virtual bool configure(const AbsHcalAlgoData *)