CMS 3D CMS Logo

PreshowerDetIdAssociator.h
Go to the documentation of this file.
1 #ifndef TrackAssociator_PreshowerDetIdAssociator_h
2 #define TrackAssociator_PreshowerDetIdAssociator_h 1
3 // -*- C++ -*-
4 //
5 // Package: TrackAssociator
6 // Class: PreshowerDetIdAssociator
7 //
8 /*
9 
10  Description: <one line class summary>
11 
12  Implementation:
13  <Notes on implementation>
14 */
15 //
16 // Original Author: Dmytro Kovalskyi
17 //
18 //
19 
20 #include "CaloDetIdAssociator.h"
22 
24  public:
26 
28 
29  const char* name() const override { return "Preshower"; }
30  protected:
31 
32  void getValidDetIds(unsigned int subDetectorIndex, std::vector<DetId>& validIds) const override {
33  if ( subDetectorIndex != 0 ) throw cms::Exception("FatalError") << "Preshower has only one sub-detector for geometry. Abort.";
35  };
36 
37 };
38 #endif
const char * name() const override
void getValidDetIds(unsigned int subDetectorIndex, std::vector< DetId > &validIds) const override
const CaloGeometry * geometry_
std::vector< DetId > getValidDetIds() const
Get the list of all valid detector ids.
Definition: CaloGeometry.cc:92
PreshowerDetIdAssociator(const edm::ParameterSet &pSet)