126 _loworbit(iConfig.getUntrackedParameter<
int>(
"lowedgeOrbit")),
127 _highorbit(iConfig.getUntrackedParameter<
int>(
"highedgeOrbit")),
128 _mindbx(iConfig.getUntrackedParameter<
int>(
"minDBX")),
131 _dbxbins(iConfig.getUntrackedParameter<
std::vector<
int> >(
"dbxBins"))
140 std::vector<int> dbxrange;
142 dbxrange.push_back(-1);
146 std::vector<int> dbxtrpltrange;
148 dbxtrpltrange.push_back(-1);
160 std::vector<edm::ParameterSet> wantedsubds(iConfig.
getUntrackedParameter<std::vector<edm::ParameterSet> >(
"wantedSubDets"));
162 for(std::vector<edm::ParameterSet>::iterator ps=wantedsubds.begin();ps!=wantedsubds.end();++ps) {
163 _subdets[ps->getParameter<
unsigned int>(
"detSelection")] = ps->getParameter<
std::string>(
"detLabel");
164 _binmax[ps->getParameter<
unsigned int>(
"detSelection")] = ps->getParameter<
int>(
"binMax");
166 std::map<int,std::string>
labels;
168 for(std::map<unsigned int,std::string>::const_iterator subd=
_subdets.begin();subd!=
_subdets.end();++subd) {
169 labels[
int(subd->first)] = subd->second;
179 char hname[200];
char htitle[200];
181 edm::LogInfo(
"DBXHistosBinMaxValue") <<
"Setting bin max values";
183 for(std::map<unsigned int, std::string>::const_iterator subd=
_subdets.begin();subd!=
_subdets.end();++subd) {
185 edm::LogVerbatim(
"DBXHistosNotConfiguredBinMax") <<
"Bin max for " << subd->second
186 <<
" not configured: " <<
_trnumb.
nstrips(
int(subd->first)) <<
" used";
194 sprintf(hname,
"sumn%sdigi_%d",subd->second.c_str(),*
bin);
195 sprintf(htitle,
"%s digi multiplicity at DBX = %d",subd->second.c_str(),*
bin);
196 LogDebug(
"DBXDebug") <<
"creating histogram " << hname <<
" " << htitle;
198 _dbxhistos[*
bin][subd->first]->GetXaxis()->SetTitle(
"Number of Digis");
286 std::map<int,int> digimap;
287 for(std::map<unsigned int, int>::const_iterator mult=mults->begin();mult!=mults->end();++mult) {
288 if(
_subdets.find(mult->first)!=
_subdets.end()) digimap[
int(mult->first)] = mult->second;
300 for(std::map<unsigned int,int>::const_iterator ndigi=mults->begin();ndigi!=mults->end();++ndigi) {
301 _dbxhistos[dbx][ndigi->first]->Fill(ndigi->second);
305 for(std::map<unsigned int,int>::const_iterator ndigi=mults->begin();ndigi!=mults->end();++ndigi) {
306 _dbxhistos[-1][ndigi->first]->Fill(ndigi->second);
354 LogDebug(
"IntegerDebug") <<
" int max and min " << INT_MIN <<
" " << INT_MAX;
355 LogDebug(
"IntegerDebug") <<
" uint max and min " << UINT_MAX;
356 LogDebug(
"IntegerDebug") <<
" long max and min " << LONG_MIN <<
" " << LONG_MAX;
357 LogDebug(
"IntegerDebug") <<
" ulong max and min " << ULONG_MAX;
358 LogDebug(
"IntegerDebug") <<
" long long max and min " << LLONG_MIN <<
" " << LLONG_MAX;
359 LogDebug(
"IntegerDebug") <<
" u long long max and min " << ULLONG_MAX;
unsigned int depth() const
void beginRun(const edm::Run &, const edm::EventSetup &) override
EventWithHistoryFilter _evfilter
T getUntrackedParameter(std::string const &, T const &) const
long long deltaBX(const unsigned int ev2, const unsigned int ev1) const
~MultiplicityTimeCorrelations() override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MultiplicityTimeCorrelations(const edm::ParameterSet &)
std::map< unsigned int, int > _binmax
DigiBXCorrHistogramMaker< EventWithHistory > _digibxcorrhmevent
std::map< unsigned int, std::string > _subdets
std::map< int, std::map< unsigned int, TH1F * > > _dbxhistos
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
void set(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
void book(const char *dirname, const std::map< int, std::string > &labels)
#define DEFINE_FWK_MODULE(type)
int nstrips(const DetId &detid) const
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
edm::EDGetTokenT< EventWithHistory > _hecollectionToken
T * make(const Args &...args) const
make new ROOT object
const bool selected(const EventWithHistory &he, const edm::EventSetup &iSetup) const
void analyze(const edm::Event &, const edm::EventSetup &) override
bin
set the eta bin as selection string.
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
edm::EDGetTokenT< std::map< unsigned int, int > > _multiplicityMapToken
void addUntrackedParameter(std::string const &name, T const &value)
edm::EDGetTokenT< APVCyclePhaseCollection > _apvphasecollToken
void fill(const T &he, const std::map< int, int > &ndigi, const edm::Handle< APVCyclePhaseCollection > &phase)
edm::InputTag _hecollection
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
std::vector< int > _dbxbins
void beginRun(const unsigned int nrun)