CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/TrackingTools/TrackAssociator/plugins/HODetIdAssociator.h

Go to the documentation of this file.
00001 #ifndef TrackAssociator_HODetIdAssociator_h
00002 #define TrackAssociator_HODetIdAssociator_h 1
00003 // -*- C++ -*-
00004 //
00005 // Package:    TrackAssociator
00006 // Class:      HODetIdAssociator
00007 // 
00008 /*
00009 
00010  Description: <one line class summary>
00011 
00012  Implementation:
00013      <Notes on implementation>
00014 */
00015 //
00016 // Original Author:  Dmytro Kovalskyi
00017 //         Created:  Fri Apr 21 10:59:41 PDT 2006
00018 // $Id: HODetIdAssociator.h,v 1.2 2011/04/21 10:49:56 innocent Exp $
00019 //
00020 //
00021 
00022 #include "CaloDetIdAssociator.h"
00023 #include "DataFormats/HcalDetId/interface/HcalSubdetector.h"
00024 class HODetIdAssociator: public CaloDetIdAssociator{
00025  public:
00026    HODetIdAssociator():CaloDetIdAssociator(72,30,0.087){};
00027 
00028    HODetIdAssociator(const edm::ParameterSet& pSet):CaloDetIdAssociator(pSet){};
00029 
00030    virtual const char* name() const { return "HO"; }
00031 
00032  protected:
00033 
00034    const std::vector<DetId>& getValidDetIds(unsigned int subDectorIndex) const
00035      {
00036        if ( subDectorIndex!=0 ) cms::Exception("FatalError") << 
00037          "HO sub-dectors are all handle as one sub-system, but subDetectorIndex is not zero.\n";
00038        return geometry_->getValidDetIds(DetId::Hcal, HcalOuter);
00039      }
00040 };
00041 #endif