CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/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 SiStripConfObject& confObj,
00024                           const SiStripLatency& latency) 
00025     : StripCPE(conf, mag, geom, lorentz, confObj, latency ),
00026     use_template_reco( conf.getParameter<bool>("UseTemplateReco") ),
00027     template_reco_speed( conf.getParameter<int>("TemplateRecoSpeed") ),
00028     use_strip_split_cluster_errors( conf.getParameter<bool>("UseStripSplitClusterErrors") )
00029     {
00030       templ.pushfile( 11 );
00031       templ.pushfile( 12 );
00032       templ.pushfile( 13 );
00033       templ.pushfile( 14 );
00034       templ.pushfile( 15 );
00035       templ.pushfile( 16 );
00036 
00037       //cout << "STRIPS: (int)use_template_reco = " << (int)use_template_reco << endl;
00038       //cout << "template_reco_speed    = " << template_reco_speed    << endl;
00039       //cout << "(int)use_strip_split_cluster_errors = " << (int)use_strip_split_cluster_errors << endl;
00040     }
00041   
00042  private:
00043 
00044   mutable SiStripTemplate templ;
00045  
00046   bool use_template_reco;
00047   int template_reco_speed;
00048   bool use_strip_split_cluster_errors;
00049 
00050 };
00051 #endif