|
static constexpr char | mvaName [] = "mtdQualMVA" |
|
◆ MTDTrackQualityMVAProducer()
MTDTrackQualityMVAProducer::MTDTrackQualityMVAProducer |
( |
const ParameterSet & |
pset | ) |
|
Definition at line 53 of file MTDTrackQualityMVAProducer.cc.
References mvaName.
66 produces<edm::ValueMap<float>>(
mvaName);
edm::EDGetTokenT< edm::ValueMap< float > > mtdTimeToken_
edm::EDGetTokenT< reco::TrackCollection > tracksToken_
std::string fullPath() const
edm::EDGetTokenT< edm::ValueMap< float > > etlMatchTimeChi2Token_
edm::EDGetTokenT< edm::ValueMap< float > > btlMatchTimeChi2Token_
edm::EDGetTokenT< edm::ValueMap< float > > btlMatchChi2Token_
edm::EDGetTokenT< edm::ValueMap< int > > npixEndcapToken_
edm::EDGetTokenT< edm::ValueMap< float > > pathLengthToken_
static constexpr char mvaName[]
edm::EDGetTokenT< edm::ValueMap< float > > etlMatchChi2Token_
edm::EDGetTokenT< edm::ValueMap< int > > npixBarrelToken_
◆ fillDescriptions()
Definition at line 70 of file MTDTrackQualityMVAProducer.cc.
References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and ProducerED_cfi::InputTag.
74 ->setComment(
"BTL Chi2 Matching value Map");
76 ->setComment(
"BTL Chi2 Matching value Map");
78 ->setComment(
"ETL Chi2 Matching value Map");
80 ->setComment(
"ETL Chi2 Matching value Map");
82 ->setComment(
"MTD TIme value Map");
84 ->setComment(
"MTD PathLength value Map");
86 ->setComment(
"# of Barrel pixel associated to refitted tracks");
88 ->setComment(
"# of Endcap pixel associated to refitted tracks");
91 ->setComment(
"Track MTD quality BDT weights");
92 descriptions.
add(
"mtdTrackQualityMVAProducer",
desc);
void add(std::string const &label, ParameterSetDescription const &psetDescription)
◆ fillValueMap()
template<class H , class T >
void MTDTrackQualityMVAProducer::fillValueMap |
( |
edm::Event & |
iEvent, |
|
|
const edm::Handle< H > & |
handle, |
|
|
const std::vector< T > & |
vec, |
|
|
const std::string & |
name |
|
) |
| const |
◆ produce()
Definition at line 107 of file MTDTrackQualityMVAProducer.cc.
References btlMatchChi2Token_, btlMatchTimeChi2Token_, etlMatchChi2Token_, etlMatchTimeChi2Token_, makeMEIFBenchmarkPlots::ev, fillValueMap(), mtdTimeToken_, mva_, mvaName, npixBarrelToken_, npixEndcapToken_, pathLengthToken_, DiMuonV_cfg::tracks, and tracksToken_.
110 const auto&
tracks = *tracksH;
121 std::vector<float> mvaOutRaw;
124 for (
unsigned int itrack = 0; itrack <
tracks.size(); ++itrack) {
126 if (pathLength[trackref] == -1.)
127 mvaOutRaw.push_back(-1.);
129 mvaOutRaw.push_back(
mva_(trackref,
edm::EDGetTokenT< edm::ValueMap< float > > mtdTimeToken_
edm::EDGetTokenT< reco::TrackCollection > tracksToken_
edm::EDGetTokenT< edm::ValueMap< float > > etlMatchTimeChi2Token_
edm::EDGetTokenT< edm::ValueMap< float > > btlMatchTimeChi2Token_
edm::EDGetTokenT< edm::ValueMap< float > > btlMatchChi2Token_
edm::EDGetTokenT< edm::ValueMap< int > > npixEndcapToken_
edm::EDGetTokenT< edm::ValueMap< float > > pathLengthToken_
static constexpr char mvaName[]
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 > > etlMatchChi2Token_
edm::EDGetTokenT< edm::ValueMap< int > > npixBarrelToken_
◆ btlMatchChi2Token_
◆ btlMatchTimeChi2Token_
◆ etlMatchChi2Token_
◆ etlMatchTimeChi2Token_
◆ mtdTimeToken_
◆ mva_
◆ mvaName
constexpr char MTDTrackQualityMVAProducer::mvaName[] = "mtdQualMVA" |
|
staticprivate |
◆ npixBarrelToken_
◆ npixEndcapToken_
◆ pathLengthToken_
◆ tracksMTDToken_
◆ tracksToken_