|
|
Go to the documentation of this file.
66 for (
int i = 0;
i < 73;
i++) {
67 for (
int j = 0;
j < 43;
j++) {
113 edm::LogInfo(
"AnalyzerMB") <<
" Before ordering Histos ";
126 fs->
make<TH2F>(
"hHBHEsize_vs_run",
"hHBHEsize_vs_run", 500, 111500., 112000., 6101, -100.5, 6000.5);
127 hHFsize_vs_run =
fs->
make<TH2F>(
"hHFsize_vs_run",
"hHFsize_vs_run", 500, 111500., 112000., 6101, -100.5, 6000.5);
129 for (
int i = 1;
i < 73;
i++) {
130 for (
int j = 1;
j < 43;
j++) {
136 sprintf(str0,
"mpl%d",
k);
137 sprintf(str1,
"mmin%d",
k);
139 sprintf(str10,
"vpl%d",
k);
140 sprintf(str11,
"vmin%d",
k);
175 hfNoiseE =
fs->
make<TH1F>(
"hfNoiseE",
"hfNoiseE", 320, -10., 10.);
179 edm::LogInfo(
"AnalyzerMB") <<
" After ordering Histos ";
185 edm::LogInfo(
"AnalyzerMB") <<
" Output file not open!!! ";
188 for (
int i = 0;
i < 5;
i++) {
189 for (
int j = 0;
j < 5;
j++) {
190 for (
int k = 0;
k < 73;
k++) {
191 for (
int l = 0;
l < 43;
l++) {
231 for (
int i = 1;
i < 5;
i++) {
232 for (
int j = 1;
j < 5;
j++) {
233 for (
int k = 1;
k < 73;
k++) {
234 for (
int l = 1;
l < 43;
l++) {
294 for (
int i = 1;
i < 73;
i++) {
295 for (
int j = 1;
j < 43;
j++) {
327 std::vector<StableProvenance const*> theProvenance;
328 iEvent.getAllStableProvenance(theProvenance);
330 for (
auto const& provenance : theProvenance) {
331 edm::LogInfo(
"AnalyzerMB") <<
" Print all process/modulelabel/product names " << provenance->processName()
332 <<
" , " << provenance->moduleLabel() <<
" , " << provenance->productInstanceName();
421 myRecalib = recalibCorrs.
product();
427 double tmpNSFillDetMapPl1[5][5][73][43];
428 double tmpNSFillDetMapMin1[5][5][73][43];
430 for (
int i = 0;
i < 5;
i++) {
431 for (
int j = 0;
j < 5;
j++) {
432 for (
int k = 0;
k < 73;
k++) {
433 for (
int l = 0;
l < 43;
l++) {
434 tmpNSFillDetMapPl1[
i][
j][
k][
l] = 0.;
435 tmpNSFillDetMapMin1[
i][
j][
k][
l] = 0.;
446 edm::LogInfo(
"AnalyzerMB") <<
" The size of the normal collection " << hbheNormal->
size();
453 edm::LogWarning(
"AnalyzerMB") <<
"HcalCalibAlgos: Error! can't get hbhe"
454 <<
" product! No HBHE MS ";
459 edm::LogInfo(
"AnalyzerMB") <<
" HBHE NS size of collection " << HithbheNS.
size();
462 if (HithbheNS.
size() != 5184) {
470 edm::LogWarning(
"AnalyzerMB") <<
"HcalCalibAlgos: Error! can't get hbhe"
471 <<
" product! No HBHE MB";
476 edm::LogInfo(
"AnalyzerMB") <<
" HBHE MB size of collection " << HithbheMB.
size();
477 if (HithbheMB.
size() != 5184) {
487 <<
" product! No HF NS ";
492 edm::LogInfo(
"AnalyzerMB") <<
" HFE NS size of collection " << HithfNS.
size();
494 if (HithfNS.
size() != 1728) {
504 <<
" product! No HF MB";
509 edm::LogInfo(
"AnalyzerMB") <<
" HF MB size of collection " << HithfMB.
size();
510 if (HithfMB.
size() != 1728) {
517 float icalconst = 1.;
522 HBHERecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
524 double energyhit = aHit.
energy();
526 DetId id = (*hbheItr).detid();
529 int mysu = ((hid).rawId() >> 25) & 0x7;
530 if (hid.
ieta() > 0) {
540 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
552 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
555 if (hid.
depth() == 1) {
559 edm::LogInfo(
"AnalyzerMB") <<
" Run " << rnnum <<
" ieta,iphi " << hid.
ieta() <<
" " << hid.
iphi()
578 float icalconst = 1.;
583 HBHERecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
585 double energyhit = aHit.
energy();
587 DetId id = (*hbheItr).detid();
590 int mysu = ((hid).rawId() >> 25) & 0x7;
591 if (hid.
ieta() > 0) {
596 float mydiff = energyhit - tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
612 float mydiff = energyhit - tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
619 if (hid.
depth() == 1) {
622 if (hid.
ieta() > 0) {
638 float icalconst = 1.;
643 HFRecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
645 double energyhit = aHit.
energy();
649 DetId id = (*hbheItr).detid();
652 if (fabs(energyhit) > 40.)
656 if (hid.
ieta() > 0) {
666 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
678 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
681 if (hid.
depth() == 1) {
700 float icalconst = 1.;
705 HFRecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
707 double energyhit = aHit.
energy();
711 if (fabs(energyhit) > 40.)
714 DetId id = (*hbheItr).detid();
717 int mysu = ((hid).rawId() >> 25) & 0x7;
718 if (hid.
ieta() > 0) {
730 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
733 pow((energyhit - tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()]), 2);
746 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
749 pow((energyhit - tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()]), 2);
752 if (hid.
depth() == 1) {
755 if (hid.
ieta() > 0) {
double theDFFillDetMapMin1[5][5][73][43]
T const * product() const
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
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)
T getParameter(std::string const &) 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
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.