60 tok_respCorr_ = esConsumes<HcalRespCorrs, HcalRespCorrsRcd>();
61 tok_l1gt_ = esConsumes<L1GtTriggerMenu, L1GtTriggerMenuRcd>();
66 for (
int i = 0;
i < 73;
i++) {
67 for (
int j = 0;
j < 43;
j++) {
123 fs->
make<TH2F>(
"hHBHEsize_vs_run",
"hHBHEsize_vs_run", 500, 111500., 112000., 6101, -100.5, 6000.5);
124 hHFsize_vs_run =
fs->
make<TH2F>(
"hHFsize_vs_run",
"hHFsize_vs_run", 500, 111500., 112000., 6101, -100.5, 6000.5);
126 for (
int i = 1;
i < 73;
i++) {
127 for (
int j = 1;
j < 43;
j++) {
132 sprintf(str0,
"mpl%d", k);
133 sprintf(str1,
"mmin%d", k);
135 sprintf(str10,
"vpl%d", k);
136 sprintf(str11,
"vmin%d", k);
168 hfNoiseE =
fs->
make<TH1F>(
"hfNoiseE",
"hfNoiseE", 320, -10., 10.);
181 for (
int i = 0;
i < 5;
i++) {
182 for (
int j = 0;
j < 5;
j++) {
183 for (
int k = 0; k < 73; k++) {
184 for (
int l = 0;
l < 43;
l++) {
224 for (
int i = 1;
i < 5;
i++) {
225 for (
int j = 1;
j < 5;
j++) {
226 for (
int k = 1;
k < 73;
k++) {
227 for (
int l = 1;
l < 43;
l++) {
281 for (
int i = 1;
i < 73;
i++) {
282 for (
int j = 1;
j < 43;
j++) {
305 float rnnum = (float)iEvent.
run();
307 std::vector<edm::StableProvenance const*> theProvenance;
310 for (
auto const& provenance : theProvenance) {
311 edm::LogVerbatim(
"AnalyzerMB") <<
" Print all process/modulelabel/product names " << provenance->processName()
312 <<
" , " << provenance->moduleLabel() <<
" , "
313 << provenance->productInstanceName();
322 double tmpNSFillDetMapPl1[5][5][73][43];
323 double tmpNSFillDetMapMin1[5][5][73][43];
325 for (
int i = 0;
i < 5;
i++) {
326 for (
int j = 0;
j < 5;
j++) {
327 for (
int k = 0;
k < 73;
k++) {
328 for (
int l = 0;
l < 43;
l++) {
329 tmpNSFillDetMapPl1[
i][
j][
k][
l] = 0.;
330 tmpNSFillDetMapMin1[
i][
j][
k][
l] = 0.;
341 edm::LogVerbatim(
"AnalyzerMB") <<
" The size of the normal collection " << hbheNormal->size();
348 edm::LogWarning(
"AnalyzerMB") <<
"HcalCalibAlgos: Error! can't get hbhe"
349 <<
" product! No HBHE MS ";
357 if (HithbheNS.
size() != 5184) {
364 edm::LogWarning(
"AnalyzerMB") <<
"HcalCalibAlgos: Error! can't get hbhe"
365 <<
" product! No HBHE MB";
370 if (HithbheMB.
size() != 5184) {
379 <<
" product! No HF NS ";
385 if (HithfNS.
size() != 1728) {
394 <<
" product! No HF MB";
399 if (HithfMB.
size() != 1728) {
405 float icalconst = 1.;
410 HBHERecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
412 double energyhit = aHit.
energy();
414 DetId id = (*hbheItr).detid();
417 int mysu = ((hid).rawId() >> 25) & 0x7;
418 if (hid.
ieta() > 0) {
428 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
440 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
443 if (hid.
depth() == 1) {
458 float icalconst = 1.;
463 HBHERecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
465 double energyhit = aHit.
energy();
467 DetId id = (*hbheItr).detid();
470 int mysu = ((hid).rawId() >> 25) & 0x7;
471 if (hid.
ieta() > 0) {
476 float mydiff = energyhit - tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
492 float mydiff = energyhit - tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
499 if (hid.
depth() == 1) {
502 if (hid.
ieta() > 0) {
518 float icalconst = 1.;
523 HFRecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
525 double energyhit = aHit.
energy();
529 DetId id = (*hbheItr).detid();
532 if (fabs(energyhit) > 40.)
536 if (hid.
ieta() > 0) {
546 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
558 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
561 if (hid.
depth() == 1) {
572 float icalconst = 1.;
577 HFRecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
579 double energyhit = aHit.
energy();
583 if (fabs(energyhit) > 40.)
586 DetId id = (*hbheItr).detid();
589 int mysu = ((hid).rawId() >> 25) & 0x7;
590 if (hid.
ieta() > 0) {
602 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
605 pow((energyhit - tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()]), 2);
618 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
621 pow((energyhit - tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()]), 2);
624 if (hid.
depth() == 1) {
627 if (hid.
ieta() > 0) {
constexpr float energy() const
static const std::string kSharedResource
double theMBFillDetMapMin0[5][5][73][43]
double theMBFillDetMapMin2[5][5][73][43]
Log< level::Info, true > LogVerbatim
T getUntrackedParameter(std::string const &, T const &) const
double theDFFillDetMapPl2[5][5][73][43]
double theMBFillDetMapMin1[5][5][73][43]
std::string fOutputFileName
edm::Service< TFileService > fs
double theNSFillDetMapPl4[5][5][73][43]
void analyze(edm::Event const &, edm::EventSetup const &) override
double theNSFillDetMapPl0[5][5][73][43]
double theNSFillDetMapMin0[5][5][73][43]
double theMBFillDetMapPl0[5][5][73][43]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
TH1F * hCalo2mom2[73][43]
edm::EDGetTokenT< HORecHitCollection > tok_hoNoise_
constexpr uint32_t rawId() const
get the raw id
std::vector< T >::const_iterator const_iterator
double theDFFillDetMapPl1[5][5][73][43]
std::ofstream * myout_hcal
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
T * make(const Args &...args) const
make new ROOT object
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > tok_gtRec_
const Item * getValues(DetId fId, bool throwOnFail=true) const
double meannoise_pl[73][43]
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNoise_
double theNSFillDetMapPl2[5][5][73][43]
double theDFFillDetMapMin2[5][5][73][43]
TH1F * hCalo1mom2[73][43]
edm::EDGetTokenT< HFRecHitCollection > tok_hfNoise_
double theNSFillDetMapPl1[5][5][73][43]
bool getData(T &iHolder) const
double theMBFillDetMapPl1[5][5][73][43]
Analyzer_minbias(const edm::ParameterSet &)
void beginRun(edm::Run const &, edm::EventSetup const &) override
constexpr int iphi() const
get the cell iphi
edm::ESGetToken< HcalRespCorrs, HcalRespCorrsRcd > tok_respCorr_
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
double theDFFillDetMapPl0[5][5][73][43]
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
Abs< T >::type abs(const T &t)
constexpr int ieta() const
get the cell ieta
double theMBFillDetMapPl4[5][5][73][43]
double theNSFillDetMapMin1[5][5][73][43]
double theNSFillDetMapMin4[5][5][73][43]
~Analyzer_minbias() override
double theDFFillDetMapMin0[5][5][73][43]
void endRun(edm::Run const &, edm::EventSetup const &) override
double theMBFillDetMapPl2[5][5][73][43]
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNorm_
const_iterator end() const
T const * product() const
edm::EDGetTokenT< FEDRawDataCollection > tok_data_
T getParameter(std::string const &) const
double theMBFillDetMapMin4[5][5][73][43]
double meannoise_min[73][43]
edm::EDGetTokenT< HORecHitCollection > tok_ho_
constexpr int depth() const
get the tower depth
Log< level::Warning, false > LogWarning
edm::ESGetToken< L1GtTriggerMenu, L1GtTriggerMenuRcd > tok_l1gt_
double theNSFillDetMapMin2[5][5][73][43]
double theDFFillDetMapMin1[5][5][73][43]
Power< A, B >::type pow(const A &a, const B &b)
const_iterator begin() const
void getAllStableProvenance(std::vector< StableProvenance const * > &provenances) const