65 for(
int i=0;
i<73;
i++) {
66 for(
int j=0; j<43; j++) {
94 myTree =
new TTree(
"RecJet",
"RecJet Tree");
95 myTree->Branch(
"mydet", &
mydet,
"mydet/I");
96 myTree->Branch(
"mysubd", &
mysubd,
"mysubd/I");
97 myTree->Branch(
"depth", &
depth,
"depth/I");
98 myTree->Branch(
"ieta", &
ieta,
"ieta/I");
99 myTree->Branch(
"iphi", &
iphi,
"iphi/I");
100 myTree->Branch(
"eta", &
eta,
"eta/F");
101 myTree->Branch(
"phi", &
phi,
"phi/F");
103 myTree->Branch(
"mom0_MB", &
mom0_MB,
"mom0_MB/F");
104 myTree->Branch(
"mom1_MB", &
mom1_MB,
"mom1_MB/F");
105 myTree->Branch(
"mom2_MB", &
mom2_MB,
"mom2_MB/F");
106 myTree->Branch(
"mom4_MB", &
mom4_MB,
"mom4_MB/F");
108 myTree->Branch(
"mom0_Noise", &
mom0_Noise,
"mom0_Noise/F");
109 myTree->Branch(
"mom1_Noise", &
mom1_Noise,
"mom1_Noise/F");
110 myTree->Branch(
"mom2_Noise", &
mom2_Noise,
"mom2_Noise/F");
111 myTree->Branch(
"mom4_Noise", &
mom4_Noise,
"mom4_Noise/F");
113 myTree->Branch(
"mom0_Diff", &
mom0_Diff,
"mom0_Diff/F");
114 myTree->Branch(
"mom1_Diff", &
mom1_Diff,
"mom1_Diff/F");
115 myTree->Branch(
"mom2_Diff", &
mom2_Diff,
"mom2_Diff/F");
117 myTree->Branch(
"occup", &
occup,
"occup/F");
131 hHBHEsize_vs_run =
new TH2F(
"hHBHEsize_vs_run",
"hHBHEsize_vs_run",500,111500.,112000.,6101,-100.5,6000.5);
132 hHFsize_vs_run =
new TH2F(
"hHFsize_vs_run",
"hHFsize_vs_run",500,111500.,112000.,6101,-100.5,6000.5);
134 for(
int i=1;
i<73;
i++){
135 for(
int j=1;j<43;j++){
142 sprintf(str0,
"mpl%d",k);
143 sprintf(str1,
"mmin%d",k);
145 sprintf(str10,
"vpl%d",k);
146 sprintf(str11,
"vmin%d",k);
150 hCalo1[
i][j] =
new TH1F(str0,
"h0", 320, -10., 10.);
151 hCalo2[
i][j] =
new TH1F(str1,
"h1", 320, -10., 10.);
154 hCalo1mom2[
i][j] =
new TH1F(str10,
"h10", 320, 0., 20.);
155 hCalo2mom2[
i][j] =
new TH1F(str11,
"h11", 320, 0., 20.);
161 hCalo1[
i][j] =
new TH1F(str0,
"h0", 320, -10., 10.);
162 hCalo2[
i][j] =
new TH1F(str1,
"h1", 320, -10., 10.);
165 hCalo1mom2[
i][j] =
new TH1F(str10,
"h10", 320, 0., 40.);
166 hCalo2mom2[
i][j] =
new TH1F(str11,
"h11", 320, 0., 40.);
168 hCalo1[
i][j] =
new TH1F(str0,
"h0" , 320, -10., 10.);
169 hCalo2[
i][j] =
new TH1F(str1,
"h1", 320, -10., 10.);
172 hCalo1mom2[
i][j] =
new TH1F(str10,
"h10", 320, 0., 120.);
173 hCalo2mom2[
i][j] =
new TH1F(str11,
"h11", 320, 0., 120.);
182 hbheNoiseE =
new TH1F(
"hbheNoiseE",
"hbheNoiseE", 320, -10., 10.);
183 hfNoiseE =
new TH1F(
"hfNoiseE",
"hfNoiseE", 320, -10., 10.);
184 hbheSignalE =
new TH1F(
"hbheSignalE",
"hbheSignalE", 320, -10., 10.);
185 hfSignalE =
new TH1F(
"hfSignalE",
"hfSignalE", 320, -10., 10.);
196 for (
int i=0;
i<5;
i++) {
197 for (
int j=0; j<5;j++) {
198 for (
int k=0; k<73;k++) {
199 for (
int l=0;
l<43;
l++) {
240 for (
int i=1;
i<5;
i++) {
241 for (
int j=1; j<5;j++) {
242 for (
int k=1;
k<73;
k++) {
243 for (
int l=1;
l<43;
l++) {
308 for(
int i=1;
i<73;
i++){
309 for(
int j=1;j<43;j++){
345 std::vector<StableProvenance const*> theProvenance;
348 for(
auto const& provenance : theProvenance) {
349 edm::LogInfo(
"AnalyzerMB")<<
" Print all process/modulelabel/product names " 350 <<provenance->processName()<<
" , "<<provenance->moduleLabel()<<
" , " 351 <<provenance->productInstanceName();
441 myRecalib = recalibCorrs.
product();
447 double tmpNSFillDetMapPl1[5][5][73][43];
448 double tmpNSFillDetMapMin1[5][5][73][43];
450 for (
int i=0;
i<5;
i++) {
451 for (
int j=0; j<5;j++) {
452 for (
int k=0;
k<73;
k++) {
453 for (
int l=0;
l<43;
l++) {
454 tmpNSFillDetMapPl1[
i][j][
k][
l] = 0.;
455 tmpNSFillDetMapMin1[
i][j][
k][
l] = 0.;
466 edm::LogInfo(
"AnalyzerMB")<<
" The size of the normal collection "<<hbheNormal->
size();
475 edm::LogWarning(
"AnalyzerMB") <<
"HcalCalibAlgos: Error! can't get hbhe" 476 <<
" product! No HBHE MS ";
482 edm::LogInfo(
"AnalyzerMB")<<
" HBHE NS size of collection "<<HithbheNS.
size();
485 if(HithbheNS.
size()!= 5184) {
493 edm::LogWarning(
"AnalyzerMB")<<
"HcalCalibAlgos: Error! can't get hbhe" 494 <<
" product! No HBHE MB";
499 edm::LogInfo(
"AnalyzerMB")<<
" HBHE MB size of collection "<<HithbheMB.
size();
500 if(HithbheMB.
size()!= 5184) {
510 <<
" product! No HF NS ";
517 if(HithfNS.
size()!= 1728) {
527 <<
" product! No HF MB";
533 if(HithfMB.
size()!= 1728) {
546 HBHERecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
548 double energyhit = aHit.
energy();
550 DetId id = (*hbheItr).detid();
555 int mysu = ((hid).rawId()>>25)&0x7;
556 if( hid.
ieta() > 0 ) {
562 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
572 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
576 if(hid.
depth() == 1) {
579 if(energyhit<-2.)
edm::LogInfo(
"AnalyzerMB")<<
" Run "<<rnnum<<
" ieta,iphi "<<hid.
ieta()<<
" "<<hid.
iphi()<<energyhit;
604 HBHERecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
606 double energyhit = aHit.
energy();
608 DetId id = (*hbheItr).detid();
611 int mysu = ((hid).rawId()>>25)&0x7;
612 if( hid.
ieta() > 0 ) {
617 float mydiff = energyhit - tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
629 float mydiff = energyhit - tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
635 if(hid.
depth() == 1) {
639 if( hid.
ieta() > 0 ) {
660 HFRecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
662 double energyhit = aHit.
energy();
666 DetId id = (*hbheItr).detid();
673 if(fabs(energyhit) > 40. )
continue;
675 int mysu = ((hid).rawId()>>25)&0x7;
676 if( hid.
ieta() > 0 ) {
682 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
692 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
696 if(hid.
depth() == 1) {
720 HFRecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
722 double energyhit = aHit.
energy();
726 if(fabs(energyhit) > 40. )
continue;
728 DetId id = (*hbheItr).detid();
731 int mysu = ((hid).rawId()>>25)&0x7;
732 if( hid.
ieta() > 0 ) {
754 if(hid.
depth() == 1) {
757 if( hid.
ieta() > 0 ) {
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
double theNSFillDetMapPl4[5][5][73][43]
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_
std::vector< HBHERecHit >::const_iterator const_iterator
double theDFFillDetMapPl1[5][5][73][43]
virtual void beginRun(const edm::Run &r, const edm::EventSetup &iSetup)
std::ofstream * myout_hcal
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
virtual void endRun(const edm::Run &r, const edm::EventSetup &iSetup)
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]
uint32_t rawId() const
get the raw id
double theMBFillDetMapPl1[5][5][73][43]
int depth() const
get the tower depth
Analyzer_minbias(const edm::ParameterSet &)
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
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]
double theDFFillDetMapMin0[5][5][73][43]
double theMBFillDetMapPl2[5][5][73][43]
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNorm_
const_iterator end() const
int iphi() const
get the cell iphi
virtual void analyze(const edm::Event &, const edm::EventSetup &)
T const * product() const
edm::EDGetTokenT< FEDRawDataCollection > tok_data_
double theMBFillDetMapMin4[5][5][73][43]
return(e1-e2)*(e1-e2)+dp *dp
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