147 std::vector<edm::ParameterSet> seedCollectionConfigs =
148 iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"seedCollections");
150 for(std::vector<edm::ParameterSet>::const_iterator scps=seedCollectionConfigs.begin();scps!=seedCollectionConfigs.end();++scps) {
153 _seedbins.push_back(scps->getUntrackedParameter<
unsigned int>(
"nBins",1000));
154 _seedmax.push_back(scps->getUntrackedParameter<
double>(
"maxValue",100000.));
156 if(scps->exists(
"trackFilter")) {
164 std::vector<edm::ParameterSet> correlationConfigs =
165 iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"multiplicityCorrelations");
167 for(std::vector<edm::ParameterSet>::const_iterator ps=correlationConfigs.begin();ps!=correlationConfigs.end();++ps) {
171 _selections.push_back(ps->getParameter<
unsigned int>(
"detSelection"));
172 _binsmult.push_back(ps->getParameter<
unsigned int>(
"nBins"));
173 _binseta.push_back(ps->getParameter<
unsigned int>(
"nBinsEta"));
174 _maxs.push_back(ps->getParameter<
double>(
"maxValue"));
182 std::vector<unsigned int>::const_iterator nseedbins =
_seedbins.begin();
183 std::vector<double>::const_iterator seedmax =
_seedmax.begin();
186 for(std::vector<edm::ParameterSet>::const_iterator scps=seedCollectionConfigs.begin();scps!=seedCollectionConfigs.end();++scps,++nseedbins,++seedmax,++
filter) {
192 _hseedmult.push_back(tfserv->
make<TH1F>(hname.c_str(),htitle.c_str(),*nseedbins+1,0.5-*seedmax/(*nseedbins),*seedmax+0.5));
196 htitle = extendedlabel +
std::string(
" seed pseudorapidity");
197 _hseedeta.push_back(tfserv->
make<TH1F>(hname.c_str(),htitle.c_str(),80,-4.,4.));
201 htitle = extendedlabel +
std::string(
" seed phi vs pseudorapidity");
210 htitle = extendedlabel +
std::string(
" seed SiPixelRecHit multiplicity");
211 _hpixelrhmult.push_back(tfserv->
make<TH1F>(hname.c_str(),htitle.c_str(),5,-.5,4.5));
214 hname = extendedlabel +
std::string(
"_bpixleneta");
215 htitle = extendedlabel +
std::string(
" seed BPIX cluster length vs pseudorapidity");
216 _hbpixclusleneta.push_back(tfserv->
make<TH2F>(hname.c_str(),htitle.c_str(),80,-4.,4.,40,-0.5,39.5));
219 hname = extendedlabel +
std::string(
"_fpixleneta");
220 htitle = extendedlabel +
std::string(
" seed FPIX cluster length vs pseudorapidity");
221 _hfpixclusleneta.push_back(tfserv->
make<TH2F>(hname.c_str(),htitle.c_str(),80,-4.,4.,40,-0.5,39.5));
224 hname = extendedlabel +
std::string(
"_bpixlenangle");
225 htitle = extendedlabel +
std::string(
" seed BPIX cluster length vs track projection");
229 hname = extendedlabel +
std::string(
"_fpixlenangle");
230 htitle = extendedlabel +
std::string(
" seed FPIX cluster length vs track projection");
240 std::string htitle2D = extendedlabel +
" seeds multiplicity";
242 htitle2D += _labels[
i];
245 *nseedbins+1,0.5-*seedmax/(*nseedbins),*seedmax+0.5));
249 hname2D = extendedlabel + _labels[
i];
251 htitle2D = extendedlabel +
" seeds pseudorapidity";
253 htitle2D += _labels[
i];
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
T * make(const Args &...args) const
make new ROOT object
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
std::vector< double > _seedmax
std::vector< TH2F * > _hbpixclusleneta