57 produces<MtdHostCollection>();
78 descriptions.
add(
"mtdSoAProducer",
desc);
84 const auto&
tracks = *tracksH;
105 auto& MtdInfoView = MtdInfo->view();
106 for (
unsigned int iTrack = 0; iTrack <
tracks.size(); ++iTrack) {
109 if (trackAssoc[trackref] == -1) {
110 MtdInfoView.trackAsocMTD()[iTrack] = -1;
111 MtdInfoView.time0()[iTrack] = 0.f;
112 MtdInfoView.time0Err()[iTrack] = -1.f;
113 MtdInfoView.time()[iTrack] = 0.f;
114 MtdInfoView.timeErr()[iTrack] = -1.f;
115 MtdInfoView.MVAquality()[iTrack] = 0.f;
116 MtdInfoView.pathLength()[iTrack] = 0.f;
117 MtdInfoView.beta()[iTrack] = 0.f;
118 MtdInfoView.posInMTD_x()[iTrack] = 0.f;
119 MtdInfoView.posInMTD_y()[iTrack] = 0.f;
120 MtdInfoView.posInMTD_z()[iTrack] = 0.f;
121 MtdInfoView.momentumWithMTD()[iTrack] = 0.f;
122 MtdInfoView.probPi()[iTrack] = 0.f;
123 MtdInfoView.probK()[iTrack] = 0.f;
124 MtdInfoView.probP()[iTrack] = 0.f;
128 MtdInfoView.trackAsocMTD()[iTrack] = trackAssoc[trackref];
129 MtdInfoView.time0()[iTrack] =
t0[trackref];
130 MtdInfoView.time0Err()[iTrack] = sigmat0[trackref];
131 MtdInfoView.time()[iTrack] = tmtd[trackref];
132 MtdInfoView.timeErr()[iTrack] = sigmatmtd[trackref];
133 MtdInfoView.MVAquality()[iTrack] = MVAquality[trackref];
134 MtdInfoView.pathLength()[iTrack] =
path[trackref];
135 MtdInfoView.beta()[iTrack] =
beta[trackref];
136 MtdInfoView.posInMTD_x()[iTrack] = posInMTD[trackref].x();
137 MtdInfoView.posInMTD_y()[iTrack] = posInMTD[trackref].y();
138 MtdInfoView.posInMTD_z()[iTrack] = posInMTD[trackref].z();
139 MtdInfoView.momentumWithMTD()[iTrack] = momentum[trackref];
140 MtdInfoView.probPi()[iTrack] = probPi[trackref];
141 MtdInfoView.probK()[iTrack] = probK[trackref];
142 MtdInfoView.probP()[iTrack] = probP[trackref];
edm::EDGetTokenT< edm::ValueMap< GlobalPoint > > posInMtdToken_
edm::EDGetTokenT< edm::ValueMap< float > > MVAQualityToken_
std::vector< Track > TrackCollection
collection of Tracks
edm::EDGetTokenT< edm::ValueMap< float > > probPiToken_
edm::EDGetTokenT< edm::ValueMap< float > > momentumWithMTDToken_
edm::EDGetTokenT< edm::ValueMap< float > > sigmatmtdToken_
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< edm::ValueMap< float > > sigmat0Token_
edm::EDGetTokenT< edm::ValueMap< float > > t0Token_
edm::EDGetTokenT< reco::TrackCollection > tracksToken_
MTDSoAProducer(const ParameterSet &pset)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< edm::ValueMap< int > > trackAssocToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< edm::ValueMap< float > > tmtdToken_
edm::EDGetTokenT< edm::ValueMap< float > > probKToken_
void produce(edm::Event &ev, const edm::EventSetup &es) final
edm::EDGetTokenT< edm::ValueMap< float > > pathToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< edm::ValueMap< float > > probPToken_
edm::EDGetTokenT< edm::ValueMap< float > > betaToken_