CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: PreshowerDetIdAssociator.h,v 1.2 2011/04/21 10:49:56 innocent Exp $
18 //
19 //
20 
21 #include "CaloDetIdAssociator.h"
23 
25  public:
27 
29 
30  virtual const char* name() const { return "Preshower"; }
31  protected:
32 
33  virtual const std::vector<DetId>& getValidDetIds(unsigned int subDetectorIndex) const {
34  if ( subDetectorIndex != 0 ) throw cms::Exception("FatalError") << "Preshower has only one sub-detector for geometry. Abort.";
36  };
37 
38 };
39 #endif
virtual const std::vector< DetId > & getValidDetIds(unsigned int subDetectorIndex) const
virtual const char * name() const
const CaloGeometry * geometry_
std::vector< DetId > getValidDetIds() const
Get the list of all valid detector ids.
Definition: CaloGeometry.cc:90
PreshowerDetIdAssociator(const edm::ParameterSet &pSet)