|
|
Go to the documentation of this file.
62 tok_respCorr_ = esConsumes<HcalRespCorrs, HcalRespCorrsRcd>();
68 for (
int i = 0;
i < 73;
i++) {
69 for (
int j = 0;
j < 43;
j++) {
115 edm::LogInfo(
"AnalyzerMB") <<
" Before ordering Histos ";
128 fs->
make<TH2F>(
"hHBHEsize_vs_run",
"hHBHEsize_vs_run", 500, 111500., 112000., 6101, -100.5, 6000.5);
129 hHFsize_vs_run =
fs->
make<TH2F>(
"hHFsize_vs_run",
"hHFsize_vs_run", 500, 111500., 112000., 6101, -100.5, 6000.5);
131 for (
int i = 1;
i < 73;
i++) {
132 for (
int j = 1;
j < 43;
j++) {
138 sprintf(str0,
"mpl%d",
k);
139 sprintf(str1,
"mmin%d",
k);
141 sprintf(str10,
"vpl%d",
k);
142 sprintf(str11,
"vmin%d",
k);
177 hfNoiseE =
fs->
make<TH1F>(
"hfNoiseE",
"hfNoiseE", 320, -10., 10.);
181 edm::LogInfo(
"AnalyzerMB") <<
" After ordering Histos ";
187 edm::LogInfo(
"AnalyzerMB") <<
" Output file not open!!! ";
190 for (
int i = 0;
i < 5;
i++) {
191 for (
int j = 0;
j < 5;
j++) {
192 for (
int k = 0;
k < 73;
k++) {
193 for (
int l = 0;
l < 43;
l++) {
233 for (
int i = 1;
i < 5;
i++) {
234 for (
int j = 1;
j < 5;
j++) {
235 for (
int k = 1;
k < 73;
k++) {
236 for (
int l = 1;
l < 43;
l++) {
296 for (
int i = 1;
i < 73;
i++) {
297 for (
int j = 1;
j < 43;
j++) {
329 std::vector<StableProvenance const*> theProvenance;
330 iEvent.getAllStableProvenance(theProvenance);
332 for (
auto const& provenance : theProvenance) {
333 edm::LogInfo(
"AnalyzerMB") <<
" Print all process/modulelabel/product names " << provenance->processName()
334 <<
" , " << provenance->moduleLabel() <<
" , " << provenance->productInstanceName();
425 double tmpNSFillDetMapPl1[5][5][73][43];
426 double tmpNSFillDetMapMin1[5][5][73][43];
428 for (
int i = 0;
i < 5;
i++) {
429 for (
int j = 0;
j < 5;
j++) {
430 for (
int k = 0;
k < 73;
k++) {
431 for (
int l = 0;
l < 43;
l++) {
432 tmpNSFillDetMapPl1[
i][
j][
k][
l] = 0.;
433 tmpNSFillDetMapMin1[
i][
j][
k][
l] = 0.;
444 edm::LogInfo(
"AnalyzerMB") <<
" The size of the normal collection " << hbheNormal->
size();
451 edm::LogWarning(
"AnalyzerMB") <<
"HcalCalibAlgos: Error! can't get hbhe"
452 <<
" product! No HBHE MS ";
457 edm::LogInfo(
"AnalyzerMB") <<
" HBHE NS size of collection " << HithbheNS.
size();
460 if (HithbheNS.
size() != 5184) {
468 edm::LogWarning(
"AnalyzerMB") <<
"HcalCalibAlgos: Error! can't get hbhe"
469 <<
" product! No HBHE MB";
474 edm::LogInfo(
"AnalyzerMB") <<
" HBHE MB size of collection " << HithbheMB.
size();
475 if (HithbheMB.
size() != 5184) {
485 <<
" product! No HF NS ";
490 edm::LogInfo(
"AnalyzerMB") <<
" HFE NS size of collection " << HithfNS.
size();
492 if (HithfNS.
size() != 1728) {
502 <<
" product! No HF MB";
507 edm::LogInfo(
"AnalyzerMB") <<
" HF MB size of collection " << HithfMB.
size();
508 if (HithfMB.
size() != 1728) {
515 float icalconst = 1.;
520 HBHERecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
522 double energyhit = aHit.
energy();
524 DetId id = (*hbheItr).detid();
527 int mysu = ((hid).rawId() >> 25) & 0x7;
528 if (hid.
ieta() > 0) {
538 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
550 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
553 if (hid.
depth() == 1) {
557 edm::LogInfo(
"AnalyzerMB") <<
" Run " << rnnum <<
" ieta,iphi " << hid.
ieta() <<
" " << hid.
iphi()
576 float icalconst = 1.;
581 HBHERecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
583 double energyhit = aHit.
energy();
585 DetId id = (*hbheItr).detid();
588 int mysu = ((hid).rawId() >> 25) & 0x7;
589 if (hid.
ieta() > 0) {
594 float mydiff = energyhit - tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
610 float mydiff = energyhit - tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
617 if (hid.
depth() == 1) {
620 if (hid.
ieta() > 0) {
636 float icalconst = 1.;
641 HFRecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
643 double energyhit = aHit.
energy();
647 DetId id = (*hbheItr).detid();
650 if (fabs(energyhit) > 40.)
654 if (hid.
ieta() > 0) {
664 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
676 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
679 if (hid.
depth() == 1) {
698 float icalconst = 1.;
703 HFRecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
705 double energyhit = aHit.
energy();
709 if (fabs(energyhit) > 40.)
712 DetId id = (*hbheItr).detid();
715 int mysu = ((hid).rawId() >> 25) & 0x7;
716 if (hid.
ieta() > 0) {
728 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
731 pow((energyhit - tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()]), 2);
744 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
747 pow((energyhit - tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()]), 2);
750 if (hid.
depth() == 1) {
753 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::Info, false > LogInfo
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
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]
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]
T * make(const Args &... args) const
make new ROOT object
double theDFFillDetMapPl2[5][5][73][43]
Namespace of DDCMS conversion namespace.