15 Suffix( conf.getParameter<std::
string>(
"Suffix") ),
16 trackingParticles_tag( conf.getParameter<edm::InputTag>(
"TrackingParticles")),
17 associator_tag( conf.getParameter<edm::
ESInputTag>(
"Associator")),
18 tracks_tag( conf.getParameter<edm::InputTag>(
"Tracks"))
20 produces <std::vector<unsigned> > (
Prefix +
"multi" +
Suffix );
21 produces <std::vector<int> > (
Prefix +
"type" +
Suffix );
22 produces <std::vector<float> > (
Prefix +
"charge" +
Suffix );
23 produces <std::vector<float> > (
Prefix +
"momentum" +
Suffix );
24 produces <std::vector<float> > (
Prefix +
"pt" +
Suffix );
25 produces <std::vector<double> > (
Prefix +
"theta" +
Suffix );
26 produces <std::vector<double> > (
Prefix +
"phi" +
Suffix );
27 produces <std::vector<double> > (
Prefix +
"eta" +
Suffix );
28 produces <std::vector<double> > (
Prefix +
"qoverp" +
Suffix );
29 produces <std::vector<double> > (
Prefix +
"vx" +
Suffix );
30 produces <std::vector<double> > (
Prefix +
"vy" +
Suffix );
31 produces <std::vector<double> > (
Prefix +
"vz" +
Suffix );
42 unsigned size = tracks->size();
43 std::auto_ptr<std::vector<unsigned> >
multi (
new std::vector<unsigned>(size, 0));
44 std::auto_ptr<std::vector<int> >
type (
new std::vector<int> (size, 0));
45 std::auto_ptr<std::vector<float> >
charge (
new std::vector<float> (size, 0));
46 std::auto_ptr<std::vector<float> > momentum (
new std::vector<float> (size, -1));
47 std::auto_ptr<std::vector<float> >
pt (
new std::vector<float> (size, -1));
48 std::auto_ptr<std::vector<double> >
theta (
new std::vector<double> (size,-1000));
49 std::auto_ptr<std::vector<double> >
phi (
new std::vector<double> (size,-1000));
50 std::auto_ptr<std::vector<double> >
eta (
new std::vector<double> (size,-1000));
51 std::auto_ptr<std::vector<double> > dxy (
new std::vector<double> (size,-1000));
52 std::auto_ptr<std::vector<double> > dsz (
new std::vector<double> (size,-1000));
53 std::auto_ptr<std::vector<double> > qoverp (
new std::vector<double> (size,-1000));
54 std::auto_ptr<std::vector<double> > vx (
new std::vector<double> (size,-1000));
55 std::auto_ptr<std::vector<double> > vy (
new std::vector<double> (size,-1000));
56 std::auto_ptr<std::vector<double> > vz (
new std::vector<double> (size,-1000));
61 association != associations.
end(); association++) {
64 const int matches = association->val.size();
69 multi->at(i) = matches;
70 type->at(i) = tparticle->
pdgId();
71 charge->at(i)= tparticle->
charge();
72 momentum->at(i)=tparticle->
p() ;
73 pt->at(i) = tparticle->
pt() ;
74 theta->at(i) = tparticle->
theta() ;
75 phi->at(i) = tparticle->
phi() ;
76 eta->at(i) = tparticle->
eta() ;
77 qoverp->at(i)= tparticle->
charge()/tparticle->
p();
const edm::ESInputTag associator_tag
friend struct const_iterator
const_iterator end() const
last iterator over the map (read only)
int findTrackIndex(const edm::Handle< edm::View< reco::Track > > &h, const reco::Track *t)
int pdgId() const
PDG ID.
ShallowSimTracksProducer(const edm::ParameterSet &)
Geom::Theta< T > theta() const
double pt() const
Transverse momentum. Note this is taken from the first SimTrack only.
double p() const
Magnitude of momentum vector. Note this is taken from the first SimTrack only.
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
const edm::InputTag tracks_tag
double eta() const
Momentum pseudorapidity. Note this is taken from the first SimTrack only.
const edm::InputTag trackingParticles_tag
const TrackingVertexRef & parentVertex() const
void produce(edm::Event &, const edm::EventSetup &)
Monte Carlo truth information used for tracking validation.
int charge() const
Electric charge. Note this is taken from the first SimTrack only.
const_iterator begin() const
first iterator over the map (read only)
T const * get() const
Returns C++ pointer to the item.
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
tuple size
Write out results.
double phi() const
Momentum azimuthal angle. Note this is taken from the first SimTrack only.
double theta() const
Momentum polar angle. Note this is taken from the first SimTrack only.
const LorentzVector & position() const