CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes
TOFPIDProducer Class Reference
Inheritance diagram for TOFPIDProducer:
edm::stream::EDProducer<>

Public Member Functions

template<class H , class T >
void fillValueMap (edm::Event &iEvent, const edm::Handle< H > &handle, const std::vector< T > &vec, const std::string &name) const
 
void produce (edm::Event &ev, const edm::EventSetup &es) final
 
 TOFPIDProducer (const ParameterSet &pset)
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Attributes

const double fixedT0Error_
 
const double maxDtSignificance_
 
const double maxDz_
 
const double minProbHeavy_
 
const double minTrackTimeQuality_
 
const bool MVASel_
 
const double probKaon_
 
const double probPion_
 
const double probProton_
 
edm::EDGetTokenT< edm::ValueMap< float > > sigmat0Token_
 
edm::EDGetTokenT< edm::ValueMap< float > > sigmatmtdToken_
 
edm::EDGetTokenT< edm::ValueMap< float > > sigmatofkToken_
 
edm::EDGetTokenT< edm::ValueMap< float > > sigmatofpiToken_
 
edm::EDGetTokenT< edm::ValueMap< float > > sigmatofpToken_
 
edm::EDGetTokenT< edm::ValueMap< float > > t0Token_
 
edm::EDGetTokenT< edm::ValueMap< float > > tmtdToken_
 
edm::EDGetTokenT< edm::ValueMap< float > > tofkToken_
 
edm::EDGetTokenT< edm::ValueMap< float > > tofpToken_
 
edm::EDGetTokenT< edm::ValueMap< float > > trackMTDTimeQualityToken_
 
edm::EDGetTokenT< reco::TrackCollectiontracksToken_
 
const bool vertexReassignment_
 
const double vtxMaxSigmaT_
 
edm::EDGetTokenT< reco::VertexCollectionvtxsToken_
 

Static Private Attributes

static constexpr char probKName [] = "probK"
 
static constexpr char probPiName [] = "probPi"
 
static constexpr char probPName [] = "probP"
 
static constexpr char sigmat0Name [] = "sigmat0"
 
static constexpr char sigmat0safeName [] = "sigmat0safe"
 
static constexpr char t0Name [] = "t0"
 
static constexpr char t0safeName [] = "t0safe"
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

Definition at line 21 of file TOFPIDProducer.cc.

Constructor & Destructor Documentation

◆ TOFPIDProducer()

TOFPIDProducer::TOFPIDProducer ( const ParameterSet pset)

Definition at line 69 of file TOFPIDProducer.cc.

References probKName, probPiName, probPName, sigmat0Name, sigmat0safeName, t0Name, and t0safeName.

70  : tracksToken_(consumes<reco::TrackCollection>(iConfig.getParameter<edm::InputTag>("tracksSrc"))),
71  t0Token_(consumes<edm::ValueMap<float>>(iConfig.getParameter<edm::InputTag>("t0Src"))),
72  tmtdToken_(consumes<edm::ValueMap<float>>(iConfig.getParameter<edm::InputTag>("tmtdSrc"))),
73  sigmat0Token_(consumes<edm::ValueMap<float>>(iConfig.getParameter<edm::InputTag>("sigmat0Src"))),
74  sigmatmtdToken_(consumes<edm::ValueMap<float>>(iConfig.getParameter<edm::InputTag>("sigmatmtdSrc"))),
75  tofkToken_(consumes<edm::ValueMap<float>>(iConfig.getParameter<edm::InputTag>("tofkSrc"))),
76  tofpToken_(consumes<edm::ValueMap<float>>(iConfig.getParameter<edm::InputTag>("tofpSrc"))),
77  sigmatofpiToken_(consumes<edm::ValueMap<float>>(iConfig.getParameter<edm::InputTag>("sigmatofpiSrc"))),
78  sigmatofkToken_(consumes<edm::ValueMap<float>>(iConfig.getParameter<edm::InputTag>("sigmatofkSrc"))),
79  sigmatofpToken_(consumes<edm::ValueMap<float>>(iConfig.getParameter<edm::InputTag>("sigmatofpSrc"))),
80  vtxsToken_(consumes<reco::VertexCollection>(iConfig.getParameter<edm::InputTag>("vtxsSrc"))),
82  consumes<edm::ValueMap<float>>(iConfig.getParameter<edm::InputTag>("trackMTDTimeQualityVMapTag"))),
83  vtxMaxSigmaT_(iConfig.getParameter<double>("vtxMaxSigmaT")),
84  maxDz_(iConfig.getParameter<double>("maxDz")),
85  maxDtSignificance_(iConfig.getParameter<double>("maxDtSignificance")),
86  minProbHeavy_(iConfig.getParameter<double>("minProbHeavy")),
87  fixedT0Error_(iConfig.getParameter<double>("fixedT0Error")),
88  probPion_(iConfig.getParameter<double>("probPion")),
89  probKaon_(iConfig.getParameter<double>("probKaon")),
90  probProton_(iConfig.getParameter<double>("probProton")),
91  minTrackTimeQuality_(iConfig.getParameter<double>("minTrackTimeQuality")),
92  MVASel_(iConfig.getParameter<bool>("MVASel")),
93  vertexReassignment_(iConfig.getParameter<bool>("vertexReassignment")) {
94  produces<edm::ValueMap<float>>(t0Name);
95  produces<edm::ValueMap<float>>(sigmat0Name);
96  produces<edm::ValueMap<float>>(t0safeName);
97  produces<edm::ValueMap<float>>(sigmat0safeName);
98  produces<edm::ValueMap<float>>(probPiName);
99  produces<edm::ValueMap<float>>(probKName);
100  produces<edm::ValueMap<float>>(probPName);
101 }
const bool MVASel_
edm::EDGetTokenT< reco::VertexCollection > vtxsToken_
edm::EDGetTokenT< edm::ValueMap< float > > sigmat0Token_
const double minProbHeavy_
const double probPion_
const double fixedT0Error_
edm::EDGetTokenT< edm::ValueMap< float > > tofkToken_
static constexpr char t0Name[]
static constexpr char t0safeName[]
edm::EDGetTokenT< edm::ValueMap< float > > trackMTDTimeQualityToken_
const double vtxMaxSigmaT_
static constexpr char sigmat0safeName[]
const double probProton_
edm::EDGetTokenT< edm::ValueMap< float > > sigmatofpToken_
edm::EDGetTokenT< edm::ValueMap< float > > tmtdToken_
edm::EDGetTokenT< edm::ValueMap< float > > tofpToken_
edm::EDGetTokenT< edm::ValueMap< float > > sigmatofpiToken_
const bool vertexReassignment_
static constexpr char sigmat0Name[]
static constexpr char probKName[]
static constexpr char probPName[]
const double minTrackTimeQuality_
edm::EDGetTokenT< edm::ValueMap< float > > t0Token_
edm::EDGetTokenT< edm::ValueMap< float > > sigmatofkToken_
edm::EDGetTokenT< edm::ValueMap< float > > sigmatmtdToken_
const double probKaon_
const double maxDz_
const double maxDtSignificance_
static constexpr char probPiName[]
edm::EDGetTokenT< reco::TrackCollection > tracksToken_

Member Function Documentation

◆ fillDescriptions()

void TOFPIDProducer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 104 of file TOFPIDProducer.cc.

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and ProducerED_cfi::InputTag.

104  {
106  desc.add<edm::InputTag>("tracksSrc", edm::InputTag("generalTracks"))->setComment("Input tracks collection");
107  desc.add<edm::InputTag>("t0Src", edm::InputTag("trackExtenderWithMTD:generalTrackt0"))
108  ->setComment("Input ValueMap for track time at beamline");
109  desc.add<edm::InputTag>("tmtdSrc", edm::InputTag("trackExtenderWithMTD:generalTracktmtd"))
110  ->setComment("Input ValueMap for track time at MTD");
111  desc.add<edm::InputTag>("sigmat0Src", edm::InputTag("trackExtenderWithMTD:generalTracksigmat0"))
112  ->setComment("Input ValueMap for track time uncertainty at beamline");
113  desc.add<edm::InputTag>("sigmatmtdSrc", edm::InputTag("trackExtenderWithMTD:generalTracksigmatmtd"))
114  ->setComment("Input ValueMap for track time uncertainty at MTD");
115  desc.add<edm::InputTag>("tofkSrc", edm::InputTag("trackExtenderWithMTD:generalTrackTofK"))
116  ->setComment("Input ValueMap for track tof as kaon");
117  desc.add<edm::InputTag>("tofpSrc", edm::InputTag("trackExtenderWithMTD:generalTrackTofP"))
118  ->setComment("Input ValueMap for track tof as proton");
119  desc.add<edm::InputTag>("sigmatofpiSrc", edm::InputTag("trackExtenderWithMTD:generalTrackSigmaTofPi"))
120  ->setComment("Input ValueMap for track sigma(tof) as pion");
121  desc.add<edm::InputTag>("sigmatofkSrc", edm::InputTag("trackExtenderWithMTD:generalTrackSigmaTofK"))
122  ->setComment("Input ValueMap for track sigma(tof) as kaon");
123  desc.add<edm::InputTag>("sigmatofpSrc", edm::InputTag("trackExtenderWithMTD:generalTrackSigmaTofP"))
124  ->setComment("Input ValueMap for track sigma(tof) as proton");
125  desc.add<edm::InputTag>("vtxsSrc", edm::InputTag("unsortedOfflinePrimaryVertices4DwithPID"))
126  ->setComment("Input primary vertex collection");
127  desc.add<edm::InputTag>("trackMTDTimeQualityVMapTag", edm::InputTag("mtdTrackQualityMVA:mtdQualMVA"))
128  ->setComment("Track MVA quality value");
129  desc.add<double>("vtxMaxSigmaT", 0.025)
130  ->setComment("Maximum primary vertex time uncertainty for use in particle id [ns]");
131  desc.add<double>("maxDz", 0.1)
132  ->setComment("Maximum distance in z for track-primary vertex association for particle id [cm]");
133  desc.add<double>("maxDtSignificance", 5.0)
134  ->setComment(
135  "Maximum distance in time (normalized by uncertainty) for track-primary vertex association for particle id");
136  desc.add<double>("minProbHeavy", 0.75)
137  ->setComment("Minimum probability for a particle to be a kaon or proton before reassigning the timestamp");
138  desc.add<double>("fixedT0Error", 0.)->setComment("Use a fixed T0 uncertainty [ns]");
139  desc.add<double>("probPion", 1.)->setComment("A priori probability pions");
140  desc.add<double>("probKaon", 1.)->setComment("A priori probability kaons");
141  desc.add<double>("probProton", 1.)->setComment("A priori probability for protons");
142  desc.add<double>("minTrackTimeQuality", 0.8)->setComment("Minimum MVA Quality selection on tracks");
143  desc.add<bool>("MVASel", false)->setComment("Use MVA Quality selection");
144  desc.add<bool>("vertexReassignment", true)->setComment("Track-vertex reassignment");
145 
146  descriptions.add("tofPIDProducer", desc);
147 }
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ fillValueMap()

template<class H , class T >
void TOFPIDProducer::fillValueMap ( edm::Event iEvent,
const edm::Handle< H > &  handle,
const std::vector< T > &  vec,
const std::string &  name 
) const

Definition at line 150 of file TOFPIDProducer.cc.

References trigObjTnPSource_cfi::filler, patZpeak::handle, iEvent, eostools::move(), Skims_PA_cff::name, and MillePedeFileConverter_cfg::out.

Referenced by produce().

153  {
154  auto out = std::make_unique<edm::ValueMap<T>>();
156  filler.insert(handle, vec.begin(), vec.end());
157  filler.fill();
158  iEvent.put(std::move(out), name);
159 }
int iEvent
Definition: GenABIO.cc:224
def move(src, dest)
Definition: eostools.py:511

◆ produce()

void TOFPIDProducer::produce ( edm::Event ev,
const edm::EventSetup es 
)
final

Definition at line 161 of file TOFPIDProducer.cc.

References funct::abs(), dt, PVValHelper::dz, makeMEIFBenchmarkPlots::ev, JetChargeProducer_cfi::exp, fillValueMap(), fixedT0Error_, SiStripPI::max, maxDtSignificance_, maxDz_, minProbHeavy_, minTrackTimeQuality_, MVASel_, reco::Vertex::position(), probKaon_, probKName, probPiName, probPion_, probPName, probProton_, sigmat0Name, sigmat0safeName, sigmat0Token_, sigmatmtdToken_, sigmatofkToken_, sigmatofpiToken_, sigmatofpToken_, mathSSE::sqrt(), reco::Vertex::t(), FrontierCondition_GT_autoExpress_cfi::t0, t0Name, t0safeName, t0Token_, tmtdToken_, tofkToken_, tofpToken_, HLT_2024v13_cff::track, trackMTDTimeQualityToken_, DiMuonV_cfg::tracks, tracksToken_, vertexReassignment_, L1BJetProducer_cff::vtx, vtxMaxSigmaT_, vtxsToken_, and w().

161  {
163  ev.getByToken(tracksToken_, tracksH);
164  const auto& tracks = *tracksH;
165 
166  const auto& t0In = ev.get(t0Token_);
167 
168  const auto& tmtdIn = ev.get(tmtdToken_);
169 
170  const auto& sigmat0In = ev.get(sigmat0Token_);
171 
172  const auto& sigmatmtdIn = ev.get(sigmatmtdToken_);
173 
174  const auto& tofkIn = ev.get(tofkToken_);
175 
176  const auto& tofpIn = ev.get(tofpToken_);
177 
178  const auto& sigmatofpiIn = ev.get(sigmatofpiToken_);
179 
180  const auto& sigmatofkIn = ev.get(sigmatofkToken_);
181 
182  const auto& sigmatofpIn = ev.get(sigmatofpToken_);
183 
184  const auto& vtxs = ev.get(vtxsToken_);
185 
186  const auto& trackMVAQualIn = ev.get(trackMTDTimeQualityToken_);
187 
188  //output value maps (PID probabilities and recalculated time at beamline)
189  std::vector<float> t0OutRaw;
190  std::vector<float> sigmat0OutRaw;
191  std::vector<float> t0safeOutRaw;
192  std::vector<float> sigmat0safeOutRaw;
193  std::vector<float> probPiOutRaw;
194  std::vector<float> probKOutRaw;
195  std::vector<float> probPOutRaw;
196 
197  //Do work here
198  for (unsigned int itrack = 0; itrack < tracks.size(); ++itrack) {
199  const reco::Track& track = tracks[itrack];
200  const reco::TrackRef trackref(tracksH, itrack);
201  float t0 = t0In[trackref];
202  float t0safe = t0;
203  float sigmat0safe = sigmat0In[trackref];
204  float sigmatmtd = (sigmatmtdIn[trackref] > 0. && fixedT0Error_ > 0.) ? fixedT0Error_ : sigmatmtdIn[trackref];
205  float sigmat0 = sigmatmtd;
206  float sigmatofpi = sigmatofpiIn[trackref];
207  float sigmatofk = sigmatofkIn[trackref];
208  float sigmatofp = sigmatofpIn[trackref];
209 
210  float prob_pi = -1.;
211  float prob_k = -1.;
212  float prob_p = -1.;
213 
214  float trackMVAQual = trackMVAQualIn[trackref];
215 
216  if (sigmat0 > 0. && (!MVASel_ || (MVASel_ && trackMVAQual >= minTrackTimeQuality_))) {
217  double rsigmazsq = 1. / track.dzError() / track.dzError();
218  std::array<double, 3> rsigmat = {{1. / std::sqrt(sigmatmtd * sigmatmtd + sigmatofpi * sigmatofpi),
219  1. / std::sqrt(sigmatmtd * sigmatmtd + sigmatofk * sigmatofk),
220  1. / std::sqrt(sigmatmtd * sigmatmtd + sigmatofp * sigmatofp)}};
221 
222  //find associated vertex
223  int vtxidx = -1;
224  int vtxidxmindz = -1;
225  int vtxidxminchisq = -1;
226  double mindz = maxDz_;
227  double minchisq = std::numeric_limits<double>::max();
228  //first try based on association weights, but keep track of closest in z and z-t as well
229  for (unsigned int ivtx = 0; ivtx < vtxs.size(); ++ivtx) {
230  const reco::Vertex& vtx = vtxs[ivtx];
231  float w = vtx.trackWeight(trackref);
232  if (w > 0.5) {
233  vtxidx = ivtx;
234  break;
235  }
236  double dz = std::abs(track.dz(vtx.position()));
237  if (dz < mindz) {
238  mindz = dz;
239  vtxidxmindz = ivtx;
240  }
241  if (vtx.tError() > 0. && vtx.tError() < vtxMaxSigmaT_) {
242  double dt = std::abs(t0 - vtx.t());
243  double dtsig = dt * rsigmat[0]; //pion hp. uncertainty
244  double chisq = dz * dz * rsigmazsq + dtsig * dtsig;
245  if (dz < maxDz_ && dtsig < maxDtSignificance_ && chisq < minchisq) {
246  minchisq = chisq;
247  vtxidxminchisq = ivtx;
248  }
249  }
250  }
251 
252  //if no vertex found based on association weights, fall back to closest in z or z-t
253  if (vtxidx < 0) {
254  //if closest vertex in z does not have valid time information, just use it,
255  //otherwise use the closest vertex in z-t plane with timing info, with a fallback to the closest in z
256  if (vtxidxmindz >= 0 && !(vtxs[vtxidxmindz].tError() > 0. && vtxs[vtxidxmindz].tError() < vtxMaxSigmaT_)) {
257  vtxidx = vtxidxmindz;
258  } else if (vtxidxminchisq >= 0) {
259  vtxidx = vtxidxminchisq;
260  } else if (vtxidxmindz >= 0) {
261  vtxidx = vtxidxmindz;
262  }
263  }
264 
265  //testing mass hypotheses only possible if there is an associated vertex with time information
266  if (vtxidx >= 0 && vtxs[vtxidx].tError() > 0. && vtxs[vtxidx].tError() < vtxMaxSigmaT_) {
267  //compute chisq in z-t plane for nominal vertex and mass hypothesis (pion)
268  const reco::Vertex& vtxnom = vtxs[vtxidx];
269  double dznom = std::abs(track.dz(vtxnom.position()));
270  double dtnom = std::abs(t0 - vtxnom.t());
271  double dtsignom = dtnom * rsigmat[0];
272  double chisqnom = dznom * dznom * rsigmazsq + dtsignom * dtsignom;
273 
274  //recompute t0 for alternate mass hypotheses
275  double t0_best = t0;
276 
277  //reliable match, revert to raw mtd time uncertainty + tof uncertainty for pion hp
278  if (dtsignom < maxDtSignificance_) {
279  sigmat0safe = 1. / rsigmat[0];
280  sigmat0 = sigmat0safe;
281  }
282 
283  double tmtd = tmtdIn[trackref];
284  double t0_k = tmtd - tofkIn[trackref];
285  double t0_p = tmtd - tofpIn[trackref];
286 
287  double chisqmin = chisqnom;
288 
289  double chisqmin_pi = chisqnom;
290  double chisqmin_k = std::numeric_limits<double>::max();
291  double chisqmin_p = std::numeric_limits<double>::max();
292  //loop through vertices and check for better matches
293  for (unsigned int ivtx = 0; ivtx < vtxs.size(); ++ivtx) {
294  const reco::Vertex& vtx = vtxs[ivtx];
295  if (!vertexReassignment_) {
296  if (ivtx != (unsigned int)vtxidx)
297  continue;
298  }
299  if (!(vtx.tError() > 0. && vtx.tError() < vtxMaxSigmaT_)) {
300  continue;
301  }
302 
303  double dz = std::abs(track.dz(vtx.position()));
304  if (dz >= maxDz_) {
305  continue;
306  }
307 
308  double chisqdz = dz * dz * rsigmazsq;
309 
310  double dt_k = std::abs(t0_k - vtx.t());
311  double dtsig_k = dt_k * rsigmat[1];
312  double chisq_k = chisqdz + dtsig_k * dtsig_k;
313 
314  if (dtsig_k < maxDtSignificance_ && chisq_k < chisqmin_k) {
315  chisqmin_k = chisq_k;
316  }
317 
318  double dt_p = std::abs(t0_p - vtx.t());
319  double dtsig_p = dt_p * rsigmat[2];
320  double chisq_p = chisqdz + dtsig_p * dtsig_p;
321 
322  if (dtsig_p < maxDtSignificance_ && chisq_p < chisqmin_p) {
323  chisqmin_p = chisq_p;
324  }
325 
326  if (dtsig_k < maxDtSignificance_ && chisq_k < chisqmin) {
327  chisqmin = chisq_k;
328  t0_best = t0_k;
329  t0safe = t0_k;
330  sigmat0safe = 1. / rsigmat[1];
331  sigmat0 = sigmat0safe;
332  }
333  if (dtsig_p < maxDtSignificance_ && chisq_p < chisqmin) {
334  chisqmin = chisq_p;
335  t0_best = t0_p;
336  t0safe = t0_p;
337  sigmat0safe = 1. / rsigmat[2];
338  sigmat0 = sigmat0safe;
339  }
340  }
341 
342  //compute PID probabilities
343  //*TODO* deal with heavier nucleons and/or BSM case here?
344  double rawprob_pi = probPion_ * exp(-0.5 * chisqmin_pi);
345  double rawprob_k = probKaon_ * exp(-0.5 * chisqmin_k);
346  double rawprob_p = probProton_ * exp(-0.5 * chisqmin_p);
347 
348  double normprob = 1. / (rawprob_pi + rawprob_k + rawprob_p);
349 
350  prob_pi = rawprob_pi * normprob;
351  prob_k = rawprob_k * normprob;
352  prob_p = rawprob_p * normprob;
353 
354  double prob_heavy = 1. - prob_pi;
355 
356  if (prob_heavy > minProbHeavy_) {
357  t0 = t0_best;
358  }
359  }
360  }
361 
362  t0OutRaw.push_back(t0);
363  sigmat0OutRaw.push_back(sigmat0);
364  t0safeOutRaw.push_back(t0safe);
365  sigmat0safeOutRaw.push_back(sigmat0safe);
366  probPiOutRaw.push_back(prob_pi);
367  probKOutRaw.push_back(prob_k);
368  probPOutRaw.push_back(prob_p);
369  }
370 
371  fillValueMap(ev, tracksH, t0OutRaw, t0Name);
372  fillValueMap(ev, tracksH, sigmat0OutRaw, sigmat0Name);
373  fillValueMap(ev, tracksH, t0safeOutRaw, t0safeName);
374  fillValueMap(ev, tracksH, sigmat0safeOutRaw, sigmat0safeName);
375  fillValueMap(ev, tracksH, probPiOutRaw, probPiName);
376  fillValueMap(ev, tracksH, probKOutRaw, probKName);
377  fillValueMap(ev, tracksH, probPOutRaw, probPName);
378 }
float dt
Definition: AMPTWrapper.h:136
const bool MVASel_
edm::EDGetTokenT< reco::VertexCollection > vtxsToken_
T w() const
const Point & position() const
position
Definition: Vertex.h:128
edm::EDGetTokenT< edm::ValueMap< float > > sigmat0Token_
const double minProbHeavy_
const double probPion_
const double fixedT0Error_
edm::EDGetTokenT< edm::ValueMap< float > > tofkToken_
static constexpr char t0Name[]
static constexpr char t0safeName[]
edm::EDGetTokenT< edm::ValueMap< float > > trackMTDTimeQualityToken_
T sqrt(T t)
Definition: SSEVec.h:23
const double vtxMaxSigmaT_
static constexpr char sigmat0safeName[]
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const double probProton_
void fillValueMap(edm::Event &iEvent, const edm::Handle< H > &handle, const std::vector< T > &vec, const std::string &name) const
edm::EDGetTokenT< edm::ValueMap< float > > sigmatofpToken_
edm::EDGetTokenT< edm::ValueMap< float > > tmtdToken_
edm::EDGetTokenT< edm::ValueMap< float > > tofpToken_
edm::EDGetTokenT< edm::ValueMap< float > > sigmatofpiToken_
const bool vertexReassignment_
static constexpr char sigmat0Name[]
static constexpr char probKName[]
static constexpr char probPName[]
const double minTrackTimeQuality_
double t() const
t coordinate
Definition: Vertex.h:136
edm::EDGetTokenT< edm::ValueMap< float > > t0Token_
edm::EDGetTokenT< edm::ValueMap< float > > sigmatofkToken_
edm::EDGetTokenT< edm::ValueMap< float > > sigmatmtdToken_
const double probKaon_
const double maxDz_
const double maxDtSignificance_
static constexpr char probPiName[]
edm::EDGetTokenT< reco::TrackCollection > tracksToken_

Member Data Documentation

◆ fixedT0Error_

const double TOFPIDProducer::fixedT0Error_
private

Definition at line 60 of file TOFPIDProducer.cc.

Referenced by produce().

◆ maxDtSignificance_

const double TOFPIDProducer::maxDtSignificance_
private

Definition at line 58 of file TOFPIDProducer.cc.

Referenced by produce().

◆ maxDz_

const double TOFPIDProducer::maxDz_
private

Definition at line 57 of file TOFPIDProducer.cc.

Referenced by produce().

◆ minProbHeavy_

const double TOFPIDProducer::minProbHeavy_
private

Definition at line 59 of file TOFPIDProducer.cc.

Referenced by produce().

◆ minTrackTimeQuality_

const double TOFPIDProducer::minTrackTimeQuality_
private

Definition at line 64 of file TOFPIDProducer.cc.

Referenced by produce().

◆ MVASel_

const bool TOFPIDProducer::MVASel_
private

Definition at line 65 of file TOFPIDProducer.cc.

Referenced by produce().

◆ probKaon_

const double TOFPIDProducer::probKaon_
private

Definition at line 62 of file TOFPIDProducer.cc.

Referenced by produce().

◆ probKName

constexpr char TOFPIDProducer::probKName[] = "probK"
staticprivate

Definition at line 41 of file TOFPIDProducer.cc.

Referenced by produce(), and TOFPIDProducer().

◆ probPiName

constexpr char TOFPIDProducer::probPiName[] = "probPi"
staticprivate

Definition at line 40 of file TOFPIDProducer.cc.

Referenced by produce(), and TOFPIDProducer().

◆ probPion_

const double TOFPIDProducer::probPion_
private

Definition at line 61 of file TOFPIDProducer.cc.

Referenced by produce().

◆ probPName

constexpr char TOFPIDProducer::probPName[] = "probP"
staticprivate

Definition at line 42 of file TOFPIDProducer.cc.

Referenced by produce(), and TOFPIDProducer().

◆ probProton_

const double TOFPIDProducer::probProton_
private

Definition at line 63 of file TOFPIDProducer.cc.

Referenced by produce().

◆ sigmat0Name

constexpr char TOFPIDProducer::sigmat0Name[] = "sigmat0"
staticprivate

Definition at line 37 of file TOFPIDProducer.cc.

Referenced by produce(), and TOFPIDProducer().

◆ sigmat0safeName

constexpr char TOFPIDProducer::sigmat0safeName[] = "sigmat0safe"
staticprivate

Definition at line 39 of file TOFPIDProducer.cc.

Referenced by produce(), and TOFPIDProducer().

◆ sigmat0Token_

edm::EDGetTokenT<edm::ValueMap<float> > TOFPIDProducer::sigmat0Token_
private

Definition at line 47 of file TOFPIDProducer.cc.

Referenced by produce().

◆ sigmatmtdToken_

edm::EDGetTokenT<edm::ValueMap<float> > TOFPIDProducer::sigmatmtdToken_
private

Definition at line 48 of file TOFPIDProducer.cc.

Referenced by produce().

◆ sigmatofkToken_

edm::EDGetTokenT<edm::ValueMap<float> > TOFPIDProducer::sigmatofkToken_
private

Definition at line 52 of file TOFPIDProducer.cc.

Referenced by produce().

◆ sigmatofpiToken_

edm::EDGetTokenT<edm::ValueMap<float> > TOFPIDProducer::sigmatofpiToken_
private

Definition at line 51 of file TOFPIDProducer.cc.

Referenced by produce().

◆ sigmatofpToken_

edm::EDGetTokenT<edm::ValueMap<float> > TOFPIDProducer::sigmatofpToken_
private

Definition at line 53 of file TOFPIDProducer.cc.

Referenced by produce().

◆ t0Name

constexpr char TOFPIDProducer::t0Name[] = "t0"
staticprivate

Definition at line 36 of file TOFPIDProducer.cc.

Referenced by produce(), and TOFPIDProducer().

◆ t0safeName

constexpr char TOFPIDProducer::t0safeName[] = "t0safe"
staticprivate

Definition at line 38 of file TOFPIDProducer.cc.

Referenced by produce(), and TOFPIDProducer().

◆ t0Token_

edm::EDGetTokenT<edm::ValueMap<float> > TOFPIDProducer::t0Token_
private

Definition at line 45 of file TOFPIDProducer.cc.

Referenced by produce().

◆ tmtdToken_

edm::EDGetTokenT<edm::ValueMap<float> > TOFPIDProducer::tmtdToken_
private

Definition at line 46 of file TOFPIDProducer.cc.

Referenced by produce().

◆ tofkToken_

edm::EDGetTokenT<edm::ValueMap<float> > TOFPIDProducer::tofkToken_
private

Definition at line 49 of file TOFPIDProducer.cc.

Referenced by produce().

◆ tofpToken_

edm::EDGetTokenT<edm::ValueMap<float> > TOFPIDProducer::tofpToken_
private

Definition at line 50 of file TOFPIDProducer.cc.

Referenced by produce().

◆ trackMTDTimeQualityToken_

edm::EDGetTokenT<edm::ValueMap<float> > TOFPIDProducer::trackMTDTimeQualityToken_
private

Definition at line 55 of file TOFPIDProducer.cc.

Referenced by produce().

◆ tracksToken_

edm::EDGetTokenT<reco::TrackCollection> TOFPIDProducer::tracksToken_
private

Definition at line 44 of file TOFPIDProducer.cc.

Referenced by produce().

◆ vertexReassignment_

const bool TOFPIDProducer::vertexReassignment_
private

Definition at line 66 of file TOFPIDProducer.cc.

Referenced by produce().

◆ vtxMaxSigmaT_

const double TOFPIDProducer::vtxMaxSigmaT_
private

Definition at line 56 of file TOFPIDProducer.cc.

Referenced by produce().

◆ vtxsToken_

edm::EDGetTokenT<reco::VertexCollection> TOFPIDProducer::vtxsToken_
private

Definition at line 54 of file TOFPIDProducer.cc.

Referenced by produce().