168 : fOutputFileName_(iConfig.getUntrackedParameter<std::
string>(
"HistOutFile")),
169 theRecalib_(iConfig.getParameter<bool>(
"Recalib")),
186 for (
int i = 0;
i < 73;
i++) {
187 for (
int j = 0;
j < 43;
j++) {
206 myTree = fs->
make<TTree>(
"RecJet",
"RecJet Tree");
244 fs->
make<TH2F>(
"hHBHEsize_vs_run",
"hHBHEsize_vs_run", 500, 111500., 112000., 6101, -100.5, 6000.5);
245 hHFsize_vs_run = fs->
make<TH2F>(
"hHFsize_vs_run",
"hHFsize_vs_run", 500, 111500., 112000., 6101, -100.5, 6000.5);
247 for (
int i = 1;
i < 73;
i++) {
248 for (
int j = 1;
j < 43;
j++) {
253 sprintf(str0,
"mpl%d", k);
254 sprintf(str1,
"mmin%d", k);
256 sprintf(str10,
"vpl%d", k);
257 sprintf(str11,
"vmin%d", k);
260 hCalo1[
i][
j] = fs->
make<TH1F>(str0,
"h0", 320, -10., 10.);
261 hCalo2[
i][
j] = fs->
make<TH1F>(str1,
"h1", 320, -10., 10.);
270 hCalo1[
i][
j] = fs->
make<TH1F>(str0,
"h0", 320, -10., 10.);
271 hCalo2[
i][
j] = fs->
make<TH1F>(str1,
"h1", 320, -10., 10.);
277 hCalo1[
i][
j] = fs->
make<TH1F>(str0,
"h0", 320, -10., 10.);
278 hCalo2[
i][
j] = fs->
make<TH1F>(str1,
"h1", 320, -10., 10.);
288 hbheNoiseE = fs->
make<TH1F>(
"hbheNoiseE",
"hbheNoiseE", 320, -10., 10.);
289 hfNoiseE = fs->
make<TH1F>(
"hfNoiseE",
"hfNoiseE", 320, -10., 10.);
290 hbheSignalE = fs->
make<TH1F>(
"hbheSignalE",
"hbheSignalE", 320, -10., 10.);
291 hfSignalE = fs->
make<TH1F>(
"hfSignalE",
"hfSignalE", 320, -10., 10.);
302 for (
int i = 0;
i < 5;
i++) {
303 for (
int j = 0;
j < 5;
j++) {
304 for (
int k = 0; k < 73; k++) {
305 for (
int l = 0;
l < 43;
l++) {
345 for (
int i = 1;
i < 5;
i++) {
346 for (
int j = 1;
j < 5;
j++) {
347 for (
int k = 1;
k < 73;
k++) {
348 for (
int l = 1;
l < 43;
l++) {
402 for (
int i = 1;
i < 73;
i++) {
403 for (
int j = 1;
j < 43;
j++) {
426 float rnnum = (float)iEvent.
run();
428 std::vector<edm::StableProvenance const*> theProvenance;
431 for (
auto const& provenance : theProvenance) {
432 edm::LogVerbatim(
"AnalyzerMB") <<
" Print all process/modulelabel/product names " << provenance->processName()
433 <<
" , " << provenance->moduleLabel() <<
" , "
434 << provenance->productInstanceName();
443 double tmpNSFillDetMapPl1[5][5][73][43];
444 double tmpNSFillDetMapMin1[5][5][73][43];
446 for (
int i = 0;
i < 5;
i++) {
447 for (
int j = 0;
j < 5;
j++) {
448 for (
int k = 0;
k < 73;
k++) {
449 for (
int l = 0;
l < 43;
l++) {
450 tmpNSFillDetMapPl1[
i][
j][
k][
l] = 0.;
451 tmpNSFillDetMapMin1[
i][
j][
k][
l] = 0.;
461 edm::LogVerbatim(
"AnalyzerMB") <<
" The size of the normal collection " << hbheNormal->size();
467 edm::LogWarning(
"AnalyzerMB") <<
"HcalCalibAlgos: Error! can't get hbhe"
468 <<
" product! No HBHE MS ";
476 if (HithbheNS.
size() != 5184) {
482 edm::LogWarning(
"AnalyzerMB") <<
"HcalCalibAlgos: Error! can't get hbhe"
483 <<
" product! No HBHE MB";
488 if (HithbheMB.
size() != 5184) {
496 <<
" product! No HF NS ";
502 if (HithfNS.
size() != 1728) {
510 <<
" product! No HF MB";
515 if (HithfMB.
size() != 1728) {
521 float icalconst = 1.;
526 HBHERecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
528 double energyhit = aHit.
energy();
530 DetId id = (*hbheItr).detid();
533 int mysu = ((hid).rawId() >> 25) & 0x7;
534 if (hid.
ieta() > 0) {
544 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
556 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
559 if (hid.
depth() == 1) {
574 float icalconst = 1.;
579 HBHERecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
581 double energyhit = aHit.
energy();
583 DetId id = (*hbheItr).detid();
586 int mysu = ((hid).rawId() >> 25) & 0x7;
587 if (hid.
ieta() > 0) {
592 float mydiff = energyhit - tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
608 float mydiff = energyhit - tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
615 if (hid.
depth() == 1) {
618 if (hid.
ieta() > 0) {
634 float icalconst = 1.;
639 HFRecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
641 double energyhit = aHit.
energy();
645 DetId id = (*hbheItr).detid();
648 if (fabs(energyhit) > 40.)
652 if (hid.
ieta() > 0) {
662 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
674 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
677 if (hid.
depth() == 1) {
688 float icalconst = 1.;
693 HFRecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
695 double energyhit = aHit.
energy();
699 if (fabs(energyhit) > 40.)
702 DetId id = (*hbheItr).detid();
705 int mysu = ((hid).rawId() >> 25) & 0x7;
706 if (hid.
ieta() > 0) {
718 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
721 pow((energyhit - tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()]), 2);
734 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
737 pow((energyhit - tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()]), 2);
740 if (hid.
depth() == 1) {
743 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
double theDFFillDetMapPl2[5][5][73][43]
const edm::EDGetTokenT< HFRecHitCollection > tok_hfNoise_
double theMBFillDetMapMin1[5][5][73][43]
const edm::ESGetToken< L1GtTriggerMenu, L1GtTriggerMenuRcd > tok_l1gt_
const edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNorm_
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]
#define DEFINE_FWK_MODULE(type)
TH1F * hCalo2mom2[73][43]
const edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNoise_
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
const edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > tok_gtRec_
T * make(const Args &...args) const
make new ROOT object
const Item * getValues(DetId fId, bool throwOnFail=true) const
double meannoise_pl[73][43]
double theNSFillDetMapPl2[5][5][73][43]
double theDFFillDetMapMin2[5][5][73][43]
TH1F * hCalo1mom2[73][43]
const edm::EDGetTokenT< HFRecHitCollection > tok_hf_
double theNSFillDetMapPl1[5][5][73][43]
bool getData(T &iHolder) const
const edm::EDGetTokenT< HORecHitCollection > tok_ho_
double theMBFillDetMapPl1[5][5][73][43]
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const
Analyzer_minbias(const edm::ParameterSet &)
const edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
void beginRun(edm::Run const &, edm::EventSetup const &) override
constexpr int iphi() const
get the cell iphi
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
const edm::EDGetTokenT< FEDRawDataCollection > tok_data_
double theDFFillDetMapPl0[5][5][73][43]
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
const edm::ESGetToken< HcalRespCorrs, HcalRespCorrsRcd > tok_respCorr_
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]
const_iterator end() const
T const * product() const
double theMBFillDetMapMin4[5][5][73][43]
double meannoise_min[73][43]
std::string fOutputFileName_
constexpr int depth() const
get the tower depth
Log< level::Warning, false > LogWarning
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
const edm::EDGetTokenT< HORecHitCollection > tok_hoNoise_
void getAllStableProvenance(std::vector< StableProvenance const * > &provenances) const