CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/RecoLocalTracker/SiStripRecHitConverter/interface/StripCPEfromTemplate.h

Go to the documentation of this file.
00001 #ifndef RecoLocalTracker_SiStripRecHitConverter_StripCPEfromTemplate_H
00002 #define RecoLocalTracker_SiStripRecHitConverter_StripCPEfromTemplate_H
00003 
00004 #include "RecoLocalTracker/SiStripRecHitConverter/interface/StripCPE.h"
00005 
00006 #include "RecoLocalTracker/SiStripRecHitConverter/interface/SiStripTemplate.h"
00007 #include "RecoLocalTracker/SiStripRecHitConverter/interface/SiStripTemplateReco.h"
00008 
00009 
00010 class StripCPEfromTemplate : public StripCPE 
00011 {
00012 
00013  public:
00014   
00015 
00016   StripClusterParameterEstimator::LocalValues 
00017     localParameters( const SiStripCluster&, const GeomDetUnit&, const LocalTrajectoryParameters&) const;
00018 
00019   StripCPEfromTemplate( edm::ParameterSet & conf, 
00020                           const MagneticField& mag, 
00021                           const TrackerGeometry& geom, 
00022                           const SiStripLorentzAngle& lorentz,
00023                           const SiStripBackPlaneCorrection& backplaneCorrections,
00024                           const SiStripConfObject& confObj,
00025                           const SiStripLatency& latency) 
00026     : StripCPE(conf, mag, geom, lorentz, backplaneCorrections, confObj, latency ),
00027     use_template_reco( conf.getParameter<bool>("UseTemplateReco") ),
00028     template_reco_speed( conf.getParameter<int>("TemplateRecoSpeed") ),
00029     use_strip_split_cluster_errors( conf.getParameter<bool>("UseStripSplitClusterErrors") )
00030     {
00031       templ.pushfile( 11 );
00032       templ.pushfile( 12 );
00033       templ.pushfile( 13 );
00034       templ.pushfile( 14 );
00035       templ.pushfile( 15 );
00036       templ.pushfile( 16 );
00037 
00038       //cout << "STRIPS: (int)use_template_reco = " << (int)use_template_reco << endl;
00039       //cout << "template_reco_speed    = " << template_reco_speed    << endl;
00040       //cout << "(int)use_strip_split_cluster_errors = " << (int)use_strip_split_cluster_errors << endl;
00041     }
00042   
00043  private:
00044 
00045   mutable SiStripTemplate templ;
00046  
00047   bool use_template_reco;
00048   int template_reco_speed;
00049   bool use_strip_split_cluster_errors;
00050 
00051 };
00052 #endif