CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
MuonSimClassifier.cc File Reference
#include <memory>
#include <set>
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DataFormats/Common/interface/Association.h"
#include "DataFormats/Common/interface/ValueMap.h"
#include "DataFormats/Common/interface/View.h"
#include "DataFormats/HepMCCandidate/interface/GenParticle.h"
#include "DataFormats/HepMCCandidate/interface/GenParticleFwd.h"
#include "DataFormats/MuonReco/interface/Muon.h"
#include "DataFormats/MuonReco/interface/MuonSimInfo.h"
#include "SimDataFormats/Associations/interface/MuonToTrackingParticleAssociator.h"
#include "SimDataFormats/TrackingAnalysis/interface/TrackingVertex.h"
#include "CommonTools/Utils/interface/StringCutObjectSelector.h"

Go to the source code of this file.

Classes

class  MuonSimClassifier
 

Functions

void dumpFormatedInfo (const reco::MuonSimInfo &simInfo)
 
static const
edm::ParameterSetDescriptionFillerPluginFactory::PMaker
< edm::ParameterSetDescriptionFiller
< MuonSimClassifier > > 
s_filler__LINE__ ("MuonSimClassifier")
 
static const
edm::MakerPluginFactory::PMaker
< edm::WorkerMaker
< MuonSimClassifier > > 
s_maker__LINE__ ("MuonSimClassifier")
 

Function Documentation

void dumpFormatedInfo ( const reco::MuonSimInfo simInfo)

Definition at line 163 of file MuonSimClassifier.cc.

References reco::MuonSimInfo::charge, reco::MuonSimInfo::g4processType, LogTrace, reco::MuonSimInfo::p4, reco::MuonSimInfo::pdgId, reco::MuonSimInfo::tpBX, reco::MuonSimInfo::tpEvent, and reco::MuonSimInfo::vertex.

Referenced by MuonSimClassifier::produce().

163  {
164  return;
165  LogTrace("MuonSimClassifier") << "\t Particle pdgId = " << simInfo.pdgId << ", (Event,Bx) = "
166  << "(" << simInfo.tpEvent << "," << simInfo.tpBX << ")"
167  << "\n\t q*p = " << simInfo.charge * simInfo.p4.P() << ", pT = " << simInfo.p4.pt()
168  << ", eta = " << simInfo.p4.eta() << ", phi = " << simInfo.p4.phi()
169  << "\n\t produced at vertex rho = " << simInfo.vertex.Rho()
170  << ", z = " << simInfo.vertex.Z() << ", (GEANT4 process = " << simInfo.g4processType
171  << ")\n";
172 }
#define LogTrace(id)
LorentzVector p4
Definition: MuonSimInfo.h:94
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< MuonSimClassifier > > s_filler__LINE__ ( "MuonSimClassifier"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< MuonSimClassifier > > s_maker__LINE__ ( "MuonSimClassifier"  )
static