36 edm::LogInfo(
"OutputInfo") <<
" Hcal RecHit Task histograms will NOT be saved";
49 sprintf (histo,
"Ntowers_per_event_vs_ieta" );
52 sprintf (histo,
"CaloTowersTask_map_Nentries" );
60 sprintf (histo,
"emean_vs_ieta_E" );
62 sprintf (histo,
"emean_vs_ieta_H" );
64 sprintf (histo,
"emean_vs_ieta_EH" );
68 sprintf (histo,
"emean_vs_ieta_E1" );
70 sprintf (histo,
"emean_vs_ieta_H1" );
72 sprintf (histo,
"emean_vs_ieta_EH1" );
78 sprintf (histo,
"CaloTowersTask_map_energy_E" );
80 sprintf (histo,
"CaloTowersTask_map_energy_H");
82 sprintf (histo,
"CaloTowersTask_map_energy_EH" );
88 sprintf (histo,
"number_of_bad_cells_Ecal_EB");
90 sprintf (histo,
"number_of_bad_cells_Ecal_EE");
92 sprintf (histo,
"number_of_recovered_cells_Ecal_EB");
94 sprintf (histo,
"number_of_recovered_cells_Ecal_EE");
96 sprintf (histo,
"number_of_problematic_cells_Ecal_EB");
98 sprintf (histo,
"number_of_problematic_cells_Ecal_EE");
102 sprintf (histo,
"CaloTowersTask_map_occupancy" );
105 sprintf (histo,
"CaloTowersTask_occupancy_vs_ieta" );
110 sprintf (histo,
"number_of_bad_cells_Hcal_HB");
112 sprintf (histo,
"number_of_recovered_cells_Hcal_HB");
114 sprintf (histo,
"number_of_problematic_cells_Hcal_HB");
119 sprintf (histo,
"CaloTowersTask_energy_HCAL_HB" ) ;
122 sprintf (histo,
"CaloTowersTask_energy_ECAL_HB" ) ;
125 sprintf (histo,
"CaloTowersTask_number_of_fired_towers_HB" ) ;
128 sprintf (histo,
"CaloTowersTask_MET_HB" ) ;
129 MET_HB = ibooker.
book1D(histo, histo, 3000, 0. , 3000. ) ;
131 sprintf (histo,
"CaloTowersTask_SET_HB" ) ;
132 SET_HB = ibooker.
book1D(histo, histo, 8000, 0. , 8000. ) ;
137 sprintf (histo,
"CaloTowersTask_EM_Timing_HB" ) ;
140 sprintf (histo,
"CaloTowersTask_HAD_Timing_HB" ) ;
145 sprintf (histo,
"CaloTowersTask_EM_Energy_Timing_Low_HB" ) ;
148 sprintf (histo,
"CaloTowersTask_EM_Energy_Timing_HB" ) ;
151 sprintf (histo,
"CaloTowersTask_EM_Energy_Timing_High_HB" ) ;
154 sprintf (histo,
"CaloTowersTask_EM_Energy_Timing_profile_Low_HB" ) ;
157 sprintf (histo,
"CaloTowersTask_EM_Energy_Timing_profile_HB" ) ;
160 sprintf (histo,
"CaloTowersTask_EM_Energy_Timing_profile_High_HB" ) ;
164 sprintf (histo,
"CaloTowersTask_HAD_Energy_Timing_Low_HB" ) ;
167 sprintf (histo,
"CaloTowersTask_HAD_Energy_Timing_HB" ) ;
170 sprintf (histo,
"CaloTowersTask_HAD_Energy_Timing_High_HB" ) ;
173 sprintf (histo,
"CaloTowersTask_HAD_Energy_Timing_profile_Low_HB" ) ;
176 sprintf (histo,
"CaloTowersTask_HAD_Energy_Timing_profile_HB" ) ;
179 sprintf (histo,
"CaloTowersTask_HAD_Energy_Timing_profile_High_HB" ) ;
185 sprintf (histo,
"CaloTowersTask_sum_of_energy_HCAL_vs_ECAL_HB") ;
188 sprintf (histo,
"CaloTowersTask_energy_OUTER_HB" ) ;
191 sprintf (histo,
"CaloTowersTask_energy_of_ECAL_component_of_tower_HB" ) ;
194 sprintf (histo,
"CaloTowersTask_energy_of_HCAL_component_of_tower_HB" ) ;
197 sprintf (histo,
"CaloTowersTask_energy_HcalPlusEcalPlusHO_HB" ) ;
200 sprintf (histo,
"CaloTowersTask_map_energy_HB" );
202 sprintf (histo,
"CaloTowersTask_map_energy_HCAL_HB");
204 sprintf (histo,
"CaloTowersTask_map_energy_ECAL_HB" );
207 sprintf (histo,
"CaloTowersTask_phi_MET_HB" ) ;
208 phiMET_HB = ibooker.
book1D(histo, histo, 72, -3.1415926535898, 3.1415926535898 ) ;
214 sprintf (histo,
"number_of_bad_cells_Hcal_HE");
216 sprintf (histo,
"number_of_recovered_cells_Hcal_HE");
218 sprintf (histo,
"number_of_problematic_cells_Hcal_HE");
223 sprintf (histo,
"CaloTowersTask_energy_HCAL_HE" ) ;
226 sprintf (histo,
"CaloTowersTask_energy_ECAL_HE" ) ;
229 sprintf (histo,
"CaloTowersTask_number_of_fired_towers_HE" ) ;
232 sprintf (histo,
"CaloTowersTask_MET_HE" ) ;
233 MET_HE = ibooker.
book1D(histo, histo, 1000, 0. , 1000. ) ;
235 sprintf (histo,
"CaloTowersTask_SET_HE" ) ;
236 SET_HE = ibooker.
book1D(histo, histo, 2000, 0. , 2000. ) ;
241 sprintf (histo,
"CaloTowersTask_EM_Timing_HE" ) ;
244 sprintf (histo,
"CaloTowersTask_HAD_Timing_HE" ) ;
249 sprintf (histo,
"CaloTowersTask_EM_Energy_Timing_Low_HE" ) ;
252 sprintf (histo,
"CaloTowersTask_EM_Energy_Timing_HE" ) ;
255 sprintf (histo,
"CaloTowersTask_EM_Energy_Timing_profile_Low_HE" ) ;
258 sprintf (histo,
"CaloTowersTask_EM_Energy_Timing_profile_HE" ) ;
262 sprintf (histo,
"CaloTowersTask_HAD_Energy_Timing_Low_HE" ) ;
265 sprintf (histo,
"CaloTowersTask_HAD_Energy_Timing_HE" ) ;
268 sprintf (histo,
"CaloTowersTask_HAD_Energy_Timing_profile_Low_HE" ) ;
271 sprintf (histo,
"CaloTowersTask_HAD_Energy_Timing_profile_HE" ) ;
277 sprintf (histo,
"CaloTowersTask_sum_of_energy_HCAL_vs_ECAL_HE") ;
280 sprintf (histo,
"CaloTowersTask_energy_OUTER_HE" ) ;
283 sprintf (histo,
"CaloTowersTask_energy_of_ECAL_component_of_tower_HE" ) ;
286 sprintf (histo,
"CaloTowersTask_energy_of_HCAL_component_of_tower_HE" ) ;
289 sprintf (histo,
"CaloTowersTask_energy_HcalPlusEcalPlusHO_HE" ) ;
292 sprintf (histo,
"CaloTowersTask_map_energy_HE" );
294 sprintf (histo,
"CaloTowersTask_map_energy_HCAL_HE");
296 sprintf (histo,
"CaloTowersTask_map_energy_ECAL_HE" );
299 sprintf (histo,
"CaloTowersTask_phi_MET_HE" ) ;
300 phiMET_HE = ibooker.
book1D(histo, histo, 72, -3.1415926535898, 3.1415926535898 ) ;
307 sprintf (histo,
"number_of_bad_cells_Hcal_HF");
309 sprintf (histo,
"number_of_recovered_cells_Hcal_HF");
311 sprintf (histo,
"number_of_problematic_cells_Hcal_HF");
316 sprintf (histo,
"CaloTowersTask_energy_HCAL_HF" ) ;
319 sprintf (histo,
"CaloTowersTask_energy_ECAL_HF" ) ;
322 sprintf (histo,
"CaloTowersTask_number_of_fired_towers_HF" ) ;
325 sprintf (histo,
"CaloTowersTask_MET_HF" ) ;
326 MET_HF = ibooker.
book1D(histo, histo, 500, 0. , 500. ) ;
328 sprintf (histo,
"CaloTowersTask_SET_HF" ) ;
329 SET_HF = ibooker.
book1D(histo, histo, 200, 0. , 200. ) ;
334 sprintf (histo,
"CaloTowersTask_EM_Timing_HF" ) ;
337 sprintf (histo,
"CaloTowersTask_HAD_Timing_HF" ) ;
341 sprintf (histo,
"CaloTowersTask_EM_Energy_Timing_HF" ) ;
344 sprintf (histo,
"CaloTowersTask_EM_Energy_Timing_profile_HF" ) ;
348 sprintf (histo,
"CaloTowersTask_HAD_Energy_Timing_Low_HF" ) ;
351 sprintf (histo,
"CaloTowersTask_HAD_Energy_Timing_HF" ) ;
354 sprintf (histo,
"CaloTowersTask_HAD_Energy_Timing_profile_Low_HF" ) ;
357 sprintf (histo,
"CaloTowersTask_HAD_Energy_Timing_profile_HF" ) ;
363 sprintf (histo,
"CaloTowersTask_sum_of_energy_HCAL_vs_ECAL_HF") ;
366 sprintf (histo,
"CaloTowersTask_energy_OUTER_HF" ) ;
369 sprintf (histo,
"CaloTowersTask_energy_of_ECAL_component_of_tower_HF" ) ;
372 sprintf (histo,
"CaloTowersTask_energy_of_HCAL_component_of_tower_HF" ) ;
375 sprintf (histo,
"CaloTowersTask_energy_HcalPlusEcalPlusHO_HF" ) ;
378 sprintf (histo,
"CaloTowersTask_map_energy_HF" );
380 sprintf (histo,
"CaloTowersTask_map_energy_HCAL_HF");
382 sprintf (histo,
"CaloTowersTask_map_energy_ECAL_HF" );
385 sprintf (histo,
"CaloTowersTask_phi_MET_HF" ) ;
386 phiMET_HF = ibooker.
book1D(histo, histo, 72, -3.1415926535898, 3.1415926535898 ) ;
426 double sumEnergyHcal_HB = 0.;
427 double sumEnergyEcal_HB = 0.;
428 double sumEnergyHO_HB = 0.;
429 Int_t numFiredTowers_HB = 0;
435 double sumEnergyHcal_HE = 0.;
436 double sumEnergyEcal_HE = 0.;
437 double sumEnergyHO_HE = 0.;
438 Int_t numFiredTowers_HE = 0;
444 double sumEnergyHcal_HF = 0.;
445 double sumEnergyEcal_HF = 0.;
446 double sumEnergyHO_HF = 0.;
447 Int_t numFiredTowers_HF = 0;
453 for ( cal = towers->begin(); cal != towers->end(); ++cal ) {
455 double eE = cal->emEnergy();
456 double eH = cal->hadEnergy();
457 double eHO = cal->outerEnergy();
458 double etaT = cal->eta();
460 double en = cal->energy();
461 double etT = cal->et();
462 double had_tm = cal->hcalTime();
463 double em_tm = cal->ecalTime();
465 int numBadEcalCells = cal->numBadEcalCells();
466 int numRcvEcalCells = cal->numRecoveredEcalCells();
467 int numPrbEcalCells = cal->numProblematicEcalCells();
469 int numBadHcalCells = cal->numBadHcalCells();
470 int numRcvHcalCells = cal->numRecoveredHcalCells();
471 int numPrbHcalCells = cal->numProblematicHcalCells();
478 int ieta = idT.
ieta();
479 if(ieta > 0) ieta -= 1;
480 int iphi = idT.iphi();
484 std::vector<int> inEcals(2), inHcals(3);
485 unsigned int constitSize = cal->constituentsSize();
486 for(
unsigned int ic=0; ic<constitSize; ic++){
487 DetId detId = cal->constituent(ic);
516 && (fabs(etaT) <
etaMax[0] && fabs(etaT) >=
etaMin[0] )) {
532 sumEnergyHcal_HB += eH;
533 sumEnergyEcal_HB += eE;
534 sumEnergyHO_HB += eHO;
570 && (fabs(etaT) <
etaMax[1] && fabs(etaT) >=
etaMin[1] )) {
586 sumEnergyHcal_HE += eH;
587 sumEnergyEcal_HE += eE;
588 sumEnergyHO_HE += eHO;
619 && (fabs(etaT) <
etaMax[2] && fabs(etaT) >=
etaMin[2] )) {
635 sumEnergyHcal_HF += eH;
636 sumEnergyEcal_HF += eE;
637 sumEnergyHO_HF += eHO;
671 met =
sqrt(metx_HB*metx_HB + mety_HB*mety_HB);
672 Vector metv(metx_HB,mety_HB,metz_HB);
693 met =
sqrt(metx_HE*metx_HE + mety_HE*mety_HE);
694 Vector metv(metx_HE,mety_HE,metz_HE);
714 met =
sqrt(metx_HF*metx_HF + mety_HF*mety_HF);
715 Vector metv(metx_HF,mety_HF,metz_HF);
737 double PI = 3.1415926535898;
738 double deltaphi= phi1 - phi2;
739 if( phi2 > phi1 ) { deltaphi= phi2 - phi1;}
740 if(deltaphi > PI) { deltaphi = 2.*PI - deltaphi;}
741 double deltaeta = eta2 - eta1;
742 double tmp =
sqrt(deltaeta* deltaeta + deltaphi*deltaphi);
MonitorElement * emean_vs_ieta_EH1
MonitorElement * mapEnergyEcal_HF
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * meNumFiredTowers_HF
MonitorElement * hadEnergyTiming_profile_High_HB
MonitorElement * hadEnergyTiming_HF
tuple met
____________________________________________________________________________||
MonitorElement * meEnergyHcalTower_HF
MonitorElement * meEnergyHcalvsEcal_HE
HcalSubdetector subdet() const
get the subdetector
MonitorElement * hadEnergyTiming_Low_HE
MonitorElement * meEnergyHcalTower_HE
MonitorElement * numRcvCellsHcal_HF
MonitorElement * phiMET_HF
MonitorElement * emEnergyTiming_profile_Low_HB
MonitorElement * bookProfile(Args &&...args)
MonitorElement * phiMET_HE
MonitorElement * meEnergyEcalTower_HF
MonitorElement * hadEnergyTiming_profile_Low_HE
CaloTowersAnalyzer(edm::ParameterSet const &conf)
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
#define DEFINE_FWK_MODULE(type)
MonitorElement * emEnergyTiming_Low_HB
MonitorElement * emTiming_HE
MonitorElement * meEnergyEcalTower_HE
MonitorElement * numRcvCellsEcal_EB
std::vector< CaloTower >::const_iterator const_iterator
MonitorElement * meEnergyHcalTower_HB
MonitorElement * emEnergyTiming_profile_Low_HE
MonitorElement * numRcvCellsEcal_EE
MonitorElement * meEnergyHcal_HF
MonitorElement * meEnergyHcal_HB
MonitorElement * meEnergyHO_HB
MonitorElement * emTiming_HB
MonitorElement * occupancy_map
std::string hcalselector_
MonitorElement * emEnergyTiming_HE
MonitorElement * hadEnergyTiming_Low_HB
MonitorElement * hadEnergyTiming_profile_Low_HB
MonitorElement * emean_vs_ieta_H
RhoEtaPhiVectorD RhoEtaPhiVector
spatial vector with cylindrical internal representation using pseudorapidity
MonitorElement * hadTiming_HE
MonitorElement * mapEnergyEcal_HB
MonitorElement * meEnergyHO_HF
MonitorElement * occupancy_vs_ieta
MonitorElement * mapEnergy_EH
MonitorElement * phiMET_HB
virtual void analyze(edm::Event const &e, edm::EventSetup const &c)
MonitorElement * meEnergyEcal_HE
MonitorElement * hadEnergyTiming_profile_HB
MonitorElement * meEnergyEcal_HB
MonitorElement * numBadCellsHcal_HE
MonitorElement * meTotEnergy_HE
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * mapEnergy_E
MonitorElement * hadEnergyTiming_Low_HF
MonitorElement * numRcvCellsHcal_HB
MonitorElement * meNumFiredTowers_HB
MonitorElement * numPrbCellsHcal_HB
MonitorElement * mapEnergyHcal_HF
MonitorElement * book1D(Args &&...args)
MonitorElement * meEnergyHcal_HE
MonitorElement * hadTiming_HB
edm::EDGetTokenT< CaloTowerCollection > tok_towers_
MonitorElement * numBadCellsEcal_EE
MonitorElement * numPrbCellsEcal_EE
MonitorElement * mapEnergy_HE
MonitorElement * mapEnergy_HF
MonitorElement * mapEnergy_HB
MonitorElement * meEnergyEcalTower_HB
MonitorElement * emean_vs_ieta_H1
MonitorElement * emEnergyTiming_High_HB
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
math::RhoEtaPhiVector Vector
MonitorElement * numRcvCellsHcal_HE
MonitorElement * emEnergyTiming_profile_HF
MonitorElement * hadEnergyTiming_HE
MonitorElement * numPrbCellsHcal_HE
MonitorElement * emEnergyTiming_profile_High_HB
MonitorElement * meTotEnergy_HB
MonitorElement * meTotEnergy_HF
MonitorElement * hadEnergyTiming_High_HB
MonitorElement * mapEnergyHcal_HE
MonitorElement * hadEnergyTiming_HB
MonitorElement * numPrbCellsHcal_HF
MonitorElement * hadEnergyTiming_profile_HF
void setCurrentFolder(const std::string &fullpath)
MonitorElement * numBadCellsHcal_HB
MonitorElement * book2D(Args &&...args)
MonitorElement * Ntowers_vs_ieta
MonitorElement * emEnergyTiming_HB
MonitorElement * meEnergyHO_HE
MonitorElement * hadEnergyTiming_profile_HE
MonitorElement * emEnergyTiming_Low_HE
MonitorElement * emean_vs_ieta_E
MonitorElement * numPrbCellsEcal_EB
MonitorElement * emean_vs_ieta_EH
std::vector< std::vector< double > > tmp
MonitorElement * numBadCellsHcal_HF
double dR(double eta1, double phi1, double eta2, double phi2)
MonitorElement * hadTiming_HF
MonitorElement * numBadCellsEcal_EB
MonitorElement * mapEnergyEcal_HE
MonitorElement * emTiming_HF
MonitorElement * emEnergyTiming_profile_HE
MonitorElement * mapEnergy_N
int ieta() const
get the tower ieta
MonitorElement * meEnergyHcalvsEcal_HB
Detector det() const
get the detector field from this detid
MonitorElement * mapEnergyHcal_HB
MonitorElement * emEnergyTiming_profile_HB
MonitorElement * meEnergyHcalvsEcal_HF
MonitorElement * emean_vs_ieta_E1
MonitorElement * meNumFiredTowers_HE
MonitorElement * emEnergyTiming_HF
MonitorElement * hadEnergyTiming_profile_Low_HF
MonitorElement * mapEnergy_H
MonitorElement * meEnergyEcal_HF