151 std::vector<edm::ParameterSet> seedCollectionConfigs =
152 iConfig.
getParameter<std::vector<edm::ParameterSet>>(
"seedCollections");
154 for (std::vector<edm::ParameterSet>::const_iterator scps = seedCollectionConfigs.begin();
155 scps != seedCollectionConfigs.end();
158 _seedbins.push_back(scps->getUntrackedParameter<
unsigned int>(
"nBins", 1000));
159 _seedmax.push_back(scps->getUntrackedParameter<
double>(
"maxValue", 100000.));
161 if (scps->exists(
"trackFilter")) {
169 std::vector<edm::ParameterSet> correlationConfigs =
170 iConfig.
getParameter<std::vector<edm::ParameterSet>>(
"multiplicityCorrelations");
172 for (std::vector<edm::ParameterSet>::const_iterator ps = correlationConfigs.begin(); ps != correlationConfigs.end();
177 _selections.push_back(ps->getParameter<
unsigned int>(
"detSelection"));
178 _binsmult.push_back(ps->getParameter<
unsigned int>(
"nBins"));
179 _binseta.push_back(ps->getParameter<
unsigned int>(
"nBinsEta"));
180 _maxs.push_back(ps->getParameter<
double>(
"maxValue"));
185 std::vector<unsigned int>::const_iterator nseedbins =
_seedbins.begin();
186 std::vector<double>::const_iterator seedmax =
_seedmax.begin();
189 for (std::vector<edm::ParameterSet>::const_iterator scps = seedCollectionConfigs.begin();
190 scps != seedCollectionConfigs.end();
191 ++scps, ++nseedbins, ++seedmax, ++
filter) {
197 hname.c_str(), htitle.c_str(), *nseedbins + 1, 0.5 - *seedmax / (*nseedbins), *seedmax + 0.5));
202 htitle = extendedlabel +
std::string(
" seed pseudorapidity");
203 _hseedeta.push_back(tfserv->
make<TH1F>(hname.c_str(), htitle.c_str(), 80, -4., 4.));
208 htitle = extendedlabel +
std::string(
" seed phi vs pseudorapidity");
217 htitle = extendedlabel +
std::string(
" seed SiPixelRecHit multiplicity");
218 _hpixelrhmult.push_back(tfserv->
make<TH1F>(hname.c_str(), htitle.c_str(), 5, -.5, 4.5));
222 hname = extendedlabel +
std::string(
"_bpixleneta");
223 htitle = extendedlabel +
std::string(
" seed BPIX cluster length vs pseudorapidity");
224 _hbpixclusleneta.push_back(tfserv->
make<TH2F>(hname.c_str(), htitle.c_str(), 80, -4., 4., 40, -0.5, 39.5));
228 hname = extendedlabel +
std::string(
"_fpixleneta");
229 htitle = extendedlabel +
std::string(
" seed FPIX cluster length vs pseudorapidity");
230 _hfpixclusleneta.push_back(tfserv->
make<TH2F>(hname.c_str(), htitle.c_str(), 80, -4., 4., 40, -0.5, 39.5));
234 hname = extendedlabel +
std::string(
"_bpixlenangle");
235 htitle = extendedlabel +
std::string(
" seed BPIX cluster length vs track projection");
236 _hbpixcluslenangle.push_back(tfserv->
make<TH2F>(hname.c_str(), htitle.c_str(), 200, -1., 1., 40, -0.5, 39.5));
240 hname = extendedlabel +
std::string(
"_fpixlenangle");
241 htitle = extendedlabel +
std::string(
" seed FPIX cluster length vs track projection");
242 _hfpixcluslenangle.push_back(tfserv->
make<TH2F>(hname.c_str(), htitle.c_str(), 200, -1., 1., 40, -0.5, 39.5));
249 std::string htitle2D = extendedlabel +
" seeds multiplicity";
259 0.5 - *seedmax / (*nseedbins),
266 hname2D = extendedlabel +
_labels[
i];
268 htitle2D = extendedlabel +
" seeds pseudorapidity";
273 tfserv->
make<TH2F>(hname2D.c_str(), htitle2D.c_str(),
_binseta[
i], 0.,
_maxs[
i], 80, -4., 4.));
static const std::string kSharedResource
T getParameter(std::string const &) const
std::vector< FromTrackRefSeedFilter > _seedfilters
std::vector< unsigned int > _binseta
std::vector< unsigned int > _selections
std::vector< double > _maxs
std::vector< std::string > _labels
std::vector< TH2F * > _hfpixcluslenangle
std::vector< std::vector< TH2F * > > _hseedeta2D
std::vector< TH2F * > _hfpixclusleneta
std::vector< unsigned int > _binsmult
std::vector< edm::EDGetTokenT< std::map< unsigned int, int > > > _multiplicityMapTokens
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::vector< edm::EDGetTokenT< TrajectorySeedCollection > > _seedcollTokens
std::vector< unsigned int > _seedbins
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::vector< TH1F * > _hseedeta
std::vector< TH1F * > _hseedmult
std::vector< TH2F * > _hseedphieta
std::vector< TH1F * > _hpixelrhmult
std::vector< TH2F * > _hbpixcluslenangle
std::vector< std::vector< TH2F * > > _hseedmult2D
T * make(const Args &...args) const
make new ROOT object
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > _magFieldToken
std::vector< double > _seedmax
std::vector< TH2F * > _hbpixclusleneta
edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > _TTRHBuilderToken