67 for(
int i=0;
i<73;
i++) {
68 for(
int j=0; j<43; j++) {
132 hHBHEsize_vs_run =
fs->
make<TH2F>(
"hHBHEsize_vs_run",
"hHBHEsize_vs_run",500,111500.,112000.,6101,-100.5,6000.5);
133 hHFsize_vs_run =
fs->
make<TH2F>(
"hHFsize_vs_run",
"hHFsize_vs_run",500,111500.,112000.,6101,-100.5,6000.5);
135 for(
int i=1;
i<73;
i++){
136 for(
int j=1;j<43;j++){
143 sprintf(str0,
"mpl%d",k);
144 sprintf(str1,
"mmin%d",k);
146 sprintf(str10,
"vpl%d",k);
147 sprintf(str11,
"vmin%d",k);
197 for (
int i=0;
i<5;
i++) {
198 for (
int j=0; j<5;j++) {
199 for (
int k=0; k<73;k++) {
200 for (
int l=0;
l<43;
l++) {
241 for (
int i=1;
i<5;
i++) {
242 for (
int j=1; j<5;j++) {
243 for (
int k=1;
k<73;
k++) {
244 for (
int l=1;
l<43;
l++) {
306 for(
int i=1;
i<73;
i++){
307 for(
int j=1;j<43;j++){
341 std::vector<StableProvenance const*> theProvenance;
344 for(
auto const& provenance : theProvenance) {
345 edm::LogInfo(
"AnalyzerMB")<<
" Print all process/modulelabel/product names " 346 <<provenance->processName()<<
" , "<<provenance->moduleLabel()<<
" , " 347 <<provenance->productInstanceName();
437 myRecalib = recalibCorrs.
product();
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.;
462 edm::LogInfo(
"AnalyzerMB")<<
" The size of the normal collection "<<hbheNormal->
size();
471 edm::LogWarning(
"AnalyzerMB") <<
"HcalCalibAlgos: Error! can't get hbhe" 472 <<
" product! No HBHE MS ";
478 edm::LogInfo(
"AnalyzerMB")<<
" HBHE NS size of collection "<<HithbheNS.
size();
481 if(HithbheNS.
size()!= 5184) {
489 edm::LogWarning(
"AnalyzerMB")<<
"HcalCalibAlgos: Error! can't get hbhe" 490 <<
" product! No HBHE MB";
495 edm::LogInfo(
"AnalyzerMB")<<
" HBHE MB size of collection "<<HithbheMB.
size();
496 if(HithbheMB.
size()!= 5184) {
506 <<
" product! No HF NS ";
513 if(HithfNS.
size()!= 1728) {
523 <<
" product! No HF MB";
529 if(HithfMB.
size()!= 1728) {
542 HBHERecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
544 double energyhit = aHit.
energy();
546 DetId id = (*hbheItr).detid();
551 int mysu = ((hid).rawId()>>25)&0x7;
552 if( hid.
ieta() > 0 ) {
558 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
568 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
572 if(hid.
depth() == 1) {
575 if(energyhit<-2.)
edm::LogInfo(
"AnalyzerMB")<<
" Run "<<rnnum<<
" ieta,iphi "<<hid.
ieta()<<
" "<<hid.
iphi()<<energyhit;
600 HBHERecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
602 double energyhit = aHit.
energy();
604 DetId id = (*hbheItr).detid();
607 int mysu = ((hid).rawId()>>25)&0x7;
608 if( hid.
ieta() > 0 ) {
613 float mydiff = energyhit - tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
625 float mydiff = energyhit - tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
631 if(hid.
depth() == 1) {
635 if( hid.
ieta() > 0 ) {
656 HFRecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
658 double energyhit = aHit.
energy();
662 DetId id = (*hbheItr).detid();
665 if(fabs(energyhit) > 40. )
continue;
668 if( hid.
ieta() > 0 ) {
674 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
684 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
688 if(hid.
depth() == 1) {
712 HFRecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
714 double energyhit = aHit.
energy();
718 if(fabs(energyhit) > 40. )
continue;
720 DetId id = (*hbheItr).detid();
723 int mysu = ((hid).rawId()>>25)&0x7;
724 if( hid.
ieta() > 0 ) {
746 if(hid.
depth() == 1) {
749 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]
T getParameter(std::string const &) const
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< HBHERecHit >::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]
double theMBFillDetMapPl1[5][5][73][43]
int depth() const
get the tower depth
Analyzer_minbias(const edm::ParameterSet &)
void beginRun(edm::Run const &, edm::EventSetup const &) override
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
double theDFFillDetMapPl0[5][5][73][43]
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
int ieta() const
get the cell ieta
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)
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_
Namespace of DDCMS conversion namespace.
const_iterator end() const
int iphi() const
get the cell iphi
T const * product() const
edm::EDGetTokenT< FEDRawDataCollection > tok_data_
double theMBFillDetMapMin4[5][5][73][43]
double meannoise_min[73][43]
edm::EDGetTokenT< HORecHitCollection > tok_ho_
double theNSFillDetMapMin2[5][5][73][43]
double theDFFillDetMapMin1[5][5][73][43]
T const * product() const
Power< A, B >::type pow(const A &a, const B &b)
const_iterator begin() const
void getAllStableProvenance(std::vector< StableProvenance const * > &provenances) const