CMS 3D CMS Logo

TrackerOnlyConversionProducer.cc File Reference

#include <memory>
#include <map>
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/EgammaReco/interface/BasicCluster.h"
#include "DataFormats/EgammaReco/interface/BasicClusterFwd.h"
#include "DataFormats/EgammaReco/interface/SuperCluster.h"
#include "DataFormats/EgammaReco/interface/SuperClusterFwd.h"
#include "DataFormats/CaloRecHit/interface/CaloCluster.h"
#include "Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h"
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "TrackingTools/TrajectoryState/interface/TrajectoryStateTransform.h"
#include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h"
#include "DataFormats/TrajectoryState/interface/PTrajectoryStateOnDet.h"
#include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
#include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
#include "Geometry/CommonDetUnit/interface/GeomDetUnit.h"
#include "DataFormats/GeometrySurface/interface/BoundCylinder.h"
#include "DataFormats/GeometrySurface/interface/BoundDisk.h"
#include "DataFormats/GeometrySurface/interface/SimpleCylinderBounds.h"
#include "DataFormats/GeometrySurface/interface/SimpleDiskBounds.h"
#include "MagneticField/Engine/interface/MagneticField.h"
#include "MagneticField/Records/interface/IdealMagneticFieldRecord.h"
#include "TrackingTools/GeomPropagators/interface/AnalyticalPropagator.h"
#include "TrackingTools/MaterialEffects/interface/PropagatorWithMaterial.h"
#include "DataFormats/TrackingRecHit/interface/TrackingRecHit.h"
#include "DataFormats/EcalDetId/interface/EcalSubdetector.h"
#include "TrackingTools/TransientTrack/interface/TrackTransientTrack.h"
#include "TrackingTools/TransientTrack/interface/TransientTrack.h"
#include "DataFormats/VertexReco/interface/Vertex.h"
#include "DataFormats/VertexReco/interface/VertexFwd.h"
#include "TrackingTools/TransientTrack/interface/TransientTrackBuilder.h"
#include "TrackingTools/Records/interface/TransientTrackRecord.h"
#include "DataFormats/EgammaCandidates/interface/Photon.h"
#include "DataFormats/EgammaCandidates/interface/PhotonFwd.h"
#include "DataFormats/EgammaCandidates/interface/Conversion.h"
#include "DataFormats/EgammaCandidates/interface/ConversionFwd.h"

Go to the source code of this file.

Classes

class  TrackerOnlyConversionProducer
 Description: Produces converted photon objects using default track collections. More...

Functions

 DEFINE_FWK_MODULE (TrackerOnlyConversionProducer)
double map_phi2 (double phi)
const GeomDetrecHitDet (const TrackingRecHit &hit, const TrackingGeometry *geom)
const BoundPlanerecHitSurface (const TrackingRecHit &hit, const TrackingGeometry *geom)
LocalVector toLocal (const Track::Vector &v, const Surface &s)


Function Documentation

DEFINE_FWK_MODULE ( TrackerOnlyConversionProducer   ) 

double map_phi2 ( double  phi  )  [inline]

Definition at line 107 of file TrackerOnlyConversionProducer.cc.

References Geom::pi(), HLT_VtxMuL3::result, and Geom::twoPi().

Referenced by TrackerOnlyConversionProducer::produce().

00107                                    {
00108     // map phi to [-pi,pi]
00109     double result = phi;
00110     if ( result < 1.0*Geom::pi() ) result = result + Geom::twoPi();
00111     if ( result >= Geom::pi())  result = result - Geom::twoPi();
00112     return result;
00113 }

const GeomDet* recHitDet ( const TrackingRecHit hit,
const TrackingGeometry geom 
) [inline]

Definition at line 95 of file TrackerOnlyConversionProducer.cc.

References TrackingRecHit::geographicalId(), and TrackingGeometry::idToDet().

Referenced by recHitSurface().

00095                                                                                               {
00096     return geom->idToDet( hit.geographicalId() );
00097 }

const BoundPlane& recHitSurface ( const TrackingRecHit hit,
const TrackingGeometry geom 
) [inline]

Definition at line 99 of file TrackerOnlyConversionProducer.cc.

References recHitDet(), and GeomDet::surface().

00099                                                                                                      {
00100     return recHitDet( hit, geom )->surface();
00101 }

LocalVector toLocal ( const Track::Vector v,
const Surface s 
) [inline]

Definition at line 103 of file TrackerOnlyConversionProducer.cc.

References GloballyPositioned< T >::toLocal().

Referenced by SiStripCalibLorentzAngle::algoBeginJob(), SiStripLAProfileBooker::beginJob(), MuDetRod::compatibleDets(), MuRingForwardLayer::compatibleDets(), PixelRod::compatibleDetsV(), RoadSearchCloudMakerAlgorithm::CorrectMatchedHit(), StripCPE::driftDirection(), TripletGenerator::hitTriplets(), DTChamberEfficiencyTask::interpolate(), SiStripRecHitMatcher::match(), GSRecHitMatcher::match(), DTSegmentCand::operator DTChamberRecSegment2D *(), DTSegmentCand::operator DTSLRecSegment2D *(), ClusterShapeTrajectoryFilter::processHit(), GSRecHitMatcher::project(), TrackInfoProducerAlgorithm::project(), and SiStripRecHitMatcher::project().

00103                                                                        {
00104     return s.toLocal( GlobalVector( v.x(), v.y(), v.z() ) );
00105 }


Generated on Tue Jun 9 17:55:17 2009 for CMSSW by  doxygen 1.5.4