|
|
Go to the documentation of this file.
60 tok_respCorr_ = esConsumes<HcalRespCorrs, HcalRespCorrsRcd>();
61 tok_l1gt_ = esConsumes<L1GtTriggerMenu, L1GtTriggerMenuRcd>();
67 for (
int i = 0;
i < 73;
i++) {
68 for (
int j = 0;
j < 43;
j++) {
127 fs->
make<TH2F>(
"hHBHEsize_vs_run",
"hHBHEsize_vs_run", 500, 111500., 112000., 6101, -100.5, 6000.5);
128 hHFsize_vs_run =
fs->
make<TH2F>(
"hHFsize_vs_run",
"hHFsize_vs_run", 500, 111500., 112000., 6101, -100.5, 6000.5);
130 for (
int i = 1;
i < 73;
i++) {
131 for (
int j = 1;
j < 43;
j++) {
137 sprintf(str0,
"mpl%d",
k);
138 sprintf(str1,
"mmin%d",
k);
140 sprintf(str10,
"vpl%d",
k);
141 sprintf(str11,
"vmin%d",
k);
176 hfNoiseE =
fs->
make<TH1F>(
"hfNoiseE",
"hfNoiseE", 320, -10., 10.);
189 for (
int i = 0;
i < 5;
i++) {
190 for (
int j = 0;
j < 5;
j++) {
191 for (
int k = 0;
k < 73;
k++) {
192 for (
int l = 0;
l < 43;
l++) {
232 for (
int i = 1;
i < 5;
i++) {
233 for (
int j = 1;
j < 5;
j++) {
234 for (
int k = 1;
k < 73;
k++) {
235 for (
int l = 1;
l < 43;
l++) {
295 for (
int i = 1;
i < 73;
i++) {
296 for (
int j = 1;
j < 43;
j++) {
327 std::vector<edm::StableProvenance const*> theProvenance;
328 iEvent.getAllStableProvenance(theProvenance);
330 for (
auto const& provenance : theProvenance) {
331 edm::LogVerbatim(
"AnalyzerMB") <<
" Print all process/modulelabel/product names " << provenance->processName()
332 <<
" , " << provenance->moduleLabel() <<
" , "
333 << provenance->productInstanceName();
417 double tmpNSFillDetMapPl1[5][5][73][43];
418 double tmpNSFillDetMapMin1[5][5][73][43];
420 for (
int i = 0;
i < 5;
i++) {
421 for (
int j = 0;
j < 5;
j++) {
422 for (
int k = 0;
k < 73;
k++) {
423 for (
int l = 0;
l < 43;
l++) {
424 tmpNSFillDetMapPl1[
i][
j][
k][
l] = 0.;
425 tmpNSFillDetMapMin1[
i][
j][
k][
l] = 0.;
443 edm::LogWarning(
"AnalyzerMB") <<
"HcalCalibAlgos: Error! can't get hbhe"
444 <<
" product! No HBHE MS ";
452 if (HithbheNS.
size() != 5184) {
460 edm::LogWarning(
"AnalyzerMB") <<
"HcalCalibAlgos: Error! can't get hbhe"
461 <<
" product! No HBHE MB";
467 if (HithbheMB.
size() != 5184) {
477 <<
" product! No HF NS ";
484 if (HithfNS.
size() != 1728) {
494 <<
" product! No HF MB";
500 if (HithfMB.
size() != 1728) {
507 float icalconst = 1.;
512 HBHERecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
514 double energyhit = aHit.
energy();
516 DetId id = (*hbheItr).detid();
519 int mysu = ((hid).rawId() >> 25) & 0x7;
520 if (hid.
ieta() > 0) {
530 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
542 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
545 if (hid.
depth() == 1) {
568 float icalconst = 1.;
573 HBHERecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
575 double energyhit = aHit.
energy();
577 DetId id = (*hbheItr).detid();
580 int mysu = ((hid).rawId() >> 25) & 0x7;
581 if (hid.
ieta() > 0) {
586 float mydiff = energyhit - tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
602 float mydiff = energyhit - tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
609 if (hid.
depth() == 1) {
612 if (hid.
ieta() > 0) {
628 float icalconst = 1.;
633 HFRecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
635 double energyhit = aHit.
energy();
639 DetId id = (*hbheItr).detid();
642 if (fabs(energyhit) > 40.)
646 if (hid.
ieta() > 0) {
656 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
668 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
671 if (hid.
depth() == 1) {
690 float icalconst = 1.;
695 HFRecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
697 double energyhit = aHit.
energy();
701 if (fabs(energyhit) > 40.)
704 DetId id = (*hbheItr).detid();
707 int mysu = ((hid).rawId() >> 25) & 0x7;
708 if (hid.
ieta() > 0) {
720 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
723 pow((energyhit - tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()]), 2);
736 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
739 pow((energyhit - tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()]), 2);
742 if (hid.
depth() == 1) {
745 if (hid.
ieta() > 0) {
double theDFFillDetMapMin1[5][5][73][43]
double theMBFillDetMapMin4[5][5][73][43]
double theMBFillDetMapPl1[5][5][73][43]
std::vector< T >::const_iterator const_iterator
double theDFFillDetMapMin0[5][5][73][43]
TH1F * hCalo1mom2[73][43]
constexpr float energy() const
T const * product() const
edm::EDGetTokenT< HORecHitCollection > tok_hoNoise_
double theMBFillDetMapMin0[5][5][73][43]
double meannoise_pl[73][43]
constexpr int iphi() const
get the cell iphi
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNorm_
std::ofstream * myout_hcal
double theMBFillDetMapPl4[5][5][73][43]
edm::Service< TFileService > fs
constexpr int depth() const
get the tower depth
T getUntrackedParameter(std::string const &, T const &) const
Log< level::Warning, false > LogWarning
const Item * getValues(DetId fId, bool throwOnFail=true) const
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > tok_gtRec_
double theMBFillDetMapMin1[5][5][73][43]
void analyze(edm::Event const &, edm::EventSetup const &) override
double theNSFillDetMapPl1[5][5][73][43]
edm::EDGetTokenT< HORecHitCollection > tok_ho_
void beginRun(edm::Run const &, edm::EventSetup const &) override
TH1F * hCalo2mom2[73][43]
Analyzer_minbias(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
double theMBFillDetMapPl0[5][5][73][43]
const_iterator begin() const
double theNSFillDetMapMin1[5][5][73][43]
double theDFFillDetMapMin2[5][5][73][43]
double theNSFillDetMapPl2[5][5][73][43]
~Analyzer_minbias() override
double theNSFillDetMapMin0[5][5][73][43]
double theNSFillDetMapMin2[5][5][73][43]
double theNSFillDetMapMin4[5][5][73][43]
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
double theDFFillDetMapPl0[5][5][73][43]
double meannoise_min[73][43]
constexpr int ieta() const
get the cell ieta
double theMBFillDetMapPl2[5][5][73][43]
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
const_iterator end() const
T * make(const Args &...args) const
make new ROOT object
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
bool getData(T &iHolder) const
constexpr uint32_t rawId() const
get the raw id
void endRun(edm::Run const &, edm::EventSetup const &) override
double theNSFillDetMapPl0[5][5][73][43]
Log< level::Info, true > LogVerbatim
edm::EDGetTokenT< FEDRawDataCollection > tok_data_
static const std::string kSharedResource
edm::ESGetToken< HcalRespCorrs, HcalRespCorrsRcd > tok_respCorr_
T getParameter(std::string const &) const
Power< A, B >::type pow(const A &a, const B &b)
edm::EDGetTokenT< HFRecHitCollection > tok_hfNoise_
Abs< T >::type abs(const T &t)
std::string fOutputFileName
double theDFFillDetMapPl1[5][5][73][43]
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNoise_
double theMBFillDetMapMin2[5][5][73][43]
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
double theNSFillDetMapPl4[5][5][73][43]
double theDFFillDetMapPl2[5][5][73][43]
Namespace of DDCMS conversion namespace.
edm::ESGetToken< L1GtTriggerMenu, L1GtTriggerMenuRcd > tok_l1gt_