116 #include "CLHEP/Vector/LorentzVector.h"
138 #include "TProfile.h"
150 using namespace reco;
169 static const unsigned int nL1mx=140;
184 void findHOEtaPhi(
int iphsect,
int& ietaho,
int& iphiho);
187 virtual void endJob() ;
241 TH1F* ho_occupency[5];
296 : muonTags_(iConfig.getUntrackedParameter<edm::
InputTag>(
"muons"))
308 if(m_startTS<0) m_startTS=0;
321 produces<HOCalibVariableCollection>(
"HOCalibVariableCollection").setBranchAlias(
"HOCalibVariableCollection");
332 for (
int ij=0; ij<=
ntrgp_gm; ij++) {
333 sprintf(title,
"hotime_trgp_%i", ij+1);
335 sprintf(title,
"hopeak_trgp_%i", ij+1);
345 hst_hopedrms = fs->
make<TH1F>(
"hst_hopedrms",
"hst_hopedrms", 100, 0.0, 0.1);
346 for (
int ij=0; ij<=
ntrgp_gm; ij++) {
347 sprintf(title,
"Nhotime_trgp_%i", ij+1);
362 for (
int i=0;
i<5;
i++) {
363 sprintf(title,
"ho_occupency (>%i #sigma)",
i+2);
380 for (
int ij=0; ij<=
ntrgp_gm; ij++) {
387 float xx =
hopedpr->GetBinError(
i+1);
388 if (
hopedpr->GetBinEntries(
i+1) >0) {
404 for (
int i=0;
i<5;
i++) {
422 int irun = iEvent.
id().
run();
443 int tmpeta1 = (
i>0) ?
i -1 : -
i +14;
444 if (tmpeta1 <0 || tmpeta1 >
netamx)
continue;
487 if ((*ho).size()>0) {
490 m_coder = (*conditions_).getHcalCoder(
id);
492 int tmpeta=
id.ieta();
493 int tmpphi=
id.iphi();
495 int tmpeta1 = (tmpeta>0) ? tmpeta -1 : -tmpeta +14;
496 for (
int i=0;
i<(*j).size() &&
i<
nchnmx;
i++) {
503 if ((*hbhe).size()>0) {
506 m_coder = (*conditions_).getHcalCoder(
id);
508 int tmpeta=
id.ieta();
509 int tmpphi=
id.iphi();
510 int tmpdepth =
id.depth();
511 int tmpeta1 = (tmpeta>0) ? tmpeta -15 : -tmpeta + 1;
512 if (tmpdepth==1) tmpeta1 = (tmpeta>0) ? tmpeta -1 : -tmpeta +29;
513 for (
int i=0;
i<(*j).size() &&
i<
nchnmx;
i++) {
516 allhb1->Fill(
nphimx*nchnmx*tmpeta1 + nchnmx*(tmpphi-1) +
i, signal);
518 hb1pedpr->Fill(
nphimx*nchnmx*tmpeta1 + nchnmx*(tmpphi-1) +
i, signal);}
520 allhb2->Fill(
nphimx*nchnmx*tmpeta1 + nchnmx*(tmpphi-1) +
i, signal);
523 allhb3->Fill(
nphimx*nchnmx*tmpeta1 + nchnmx*(tmpphi-1) +
i, signal);
530 double pival = acos(-1.);
535 if (cosmicmuon->size()>0) {
540 int ntrgpas_gm[
ntrgp_gm]={0,0,0,0,0,0,0,0,0,0};
581 int Noccu_old =
Noccu;
583 for(reco::TrackCollection::const_iterator ncosm = cosmicmuon->begin();
584 ncosm != cosmicmuon->end(); ++ncosm) {
586 if ((*ncosm).ndof() < 15)
continue;
587 if ((*ncosm).normalizedChi2() >30.0)
continue;
591 tmpHOCalib.
trig1 = l1trg;
592 tmpHOCalib.
trig2 = hlttr;
594 int charge = ncosm->charge();
596 double innerr = (*ncosm).innerPosition().Perp2();
597 double outerr = (*ncosm).outerPosition().Perp2();
598 int iiner = (innerr <outerr) ? 1 : 0;
609 double posx, posy, posz;
610 double momx, momy, momz;
613 posx = (*ncosm).innerPosition().X();
614 posy = (*ncosm).innerPosition().Y();
615 posz = (*ncosm).innerPosition().Z();
617 momx = (*ncosm).innerMomentum().X();
618 momy = (*ncosm).innerMomentum().Y();
619 momz = (*ncosm).innerMomentum().Z();
622 posx = (*ncosm).outerPosition().X();
623 posy = (*ncosm).outerPosition().Y();
624 posz = (*ncosm).outerPosition().Z();
626 momx = (*ncosm).outerMomentum().X();
627 momy = (*ncosm).outerMomentum().Y();
628 momz = (*ncosm).outerMomentum().Z();
634 CLHEP::Hep3Vector tmpmuon3v(posx, posy, posz);
635 CLHEP::Hep3Vector tmpmuondir(momx, momy, momz);
637 bool samedir = (tmpmuon3v.dot(tmpmuondir) >0) ?
true :
false;
638 for (
int i=0;
i<3;
i++) {tmpHOCalib.
caloen[
i] = 0.0;}
640 for(reco::TrackCollection::const_iterator ncosmcor = cosmicmuon->begin();
641 ncosmcor != cosmicmuon->end(); ++ncosmcor) {
642 if (ncosmcor==ncosm)
continue;
644 CLHEP::Hep3Vector tmpmuon3vcor;
645 CLHEP::Hep3Vector tmpmom3v;
647 tmpmuon3vcor = CLHEP::Hep3Vector((*ncosmcor).innerPosition().X(),(*ncosmcor).innerPosition().Y(),(*ncosmcor).innerPosition().Z());
648 tmpmom3v = CLHEP::Hep3Vector((*ncosmcor).innerMomentum().X(),(*ncosmcor).innerMomentum().Y(),(*ncosmcor).innerMomentum().Z());
650 tmpmuon3vcor = CLHEP::Hep3Vector((*ncosmcor).outerPosition().X(),(*ncosmcor).outerPosition().Y(),(*ncosmcor).outerPosition().Z());
651 tmpmom3v = CLHEP::Hep3Vector((*ncosmcor).outerMomentum().X(),(*ncosmcor).outerMomentum().Y(),(*ncosmcor).outerMomentum().Z());
654 if (tmpmom3v.mag()<0.2 || (*ncosmcor).ndof()<5)
continue;
656 double angle = tmpmuon3v.angle(tmpmuon3vcor);
657 if (angle < 7.5*pival/180.) {inearbymuon=1;}
660 if (angle <7.5*pival/180.) { tmpHOCalib.
caloen[0] +=1.;}
661 if (angle <15.0*pival/180.) { tmpHOCalib.
caloen[1] +=1.;}
662 if (angle <35.0*pival/180.) { tmpHOCalib.
caloen[2] +=1.;}
674 calt !=calotower->end(); calt++) {
676 double ith = (*calt).momentum().theta();
677 double iph = (*calt).momentum().phi();
679 CLHEP::Hep3Vector calo3v(
sin(ith)*
cos(iph),
sin(ith)*
sin(iph),
cos(ith));
681 double angle = tmpmuon3v.angle(calo3v);
683 if (angle < 7.5*pival/180.) {tmpHOCalib.
caloen[0] += calt->emEnergy()+calt->hadEnergy();}
684 if (angle < 15*pival/180.) {tmpHOCalib.
caloen[1] += calt->emEnergy()+calt->hadEnergy();}
685 if (angle < 35*pival/180.) {tmpHOCalib.
caloen[2] += calt->emEnergy()+calt->hadEnergy();}
690 if (tmpHOCalib.
caloen[0] >10.0)
continue;
694 double mom =
sqrt(momx*momx + momy*momy +momz*momz);
702 tmpHOCalib.
trkdr = (*ncosm).d0();
703 tmpHOCalib.
trkdz = (*ncosm).dz();
705 tmpHOCalib.
nmuon = cosmicmuon->size();
706 tmpHOCalib.
trkvx = glbpt.
x();
707 tmpHOCalib.
trkvy = glbpt.
y();
708 tmpHOCalib.
trkvz = glbpt.
z();
713 tmpHOCalib.
ndof = (inearbymuon ==0) ? (
int)(*ncosm).ndof() : -(int)(*ncosm).ndof();
714 tmpHOCalib.
chisq = (*ncosm).normalizedChi2();
715 tmpHOCalib.
therr = 0.;
716 tmpHOCalib.
pherr = 0.;
720 tmpHOCalib.
therr = innercov(1,1);
721 tmpHOCalib.
pherr = innercov(2,2);
724 tmpHOCalib.
therr = outercov(1,1);
725 tmpHOCalib.
pherr = outercov(2,2);
732 myHelix.setMaterialMode(
false);
733 myHelix.applyRadX0Correction(
true);
735 double phiho = trkpos.
phi();
736 if (phiho<0) phiho +=2*pival;
738 int iphisect_dt=int(6*(phiho+pival/18.)/pival);
739 if (iphisect_dt>=12) iphisect_dt=0;
744 for (
int kl = 0; kl<=2; kl++) {
746 int iphisecttmp = (kl<2) ? iphisect_dt + kl : iphisect_dt - 1;
747 if (iphisecttmp <0) iphisecttmp = 11;
748 if (iphisecttmp >=12) iphisecttmp = 0;
750 double phipos = iphisecttmp*pival/6.;
751 double phirot = phipos;
764 for (
int ik=1; ik>=0; ik--) {
766 double radial = 407.0;
767 if (ik==0) radial = 382.0;
772 auto aPlane2 =
new Plane(pos,rot);
776 if (steppingHelixstateinfo_.
isValid()) {
779 CLHEP::Hep3Vector hotrkdir2(steppingHelixstateinfo_.
momentum().
x(), steppingHelixstateinfo_.
momentum().
y(),steppingHelixstateinfo_.
momentum().
z());
783 double xx = lclvt0.
x();
784 double yy = lclvt0.y();
787 if ((
std::abs(yy) < 130 && xx >-64.7 && xx <138.2)
790 iphisect = iphisecttmp;
794 if (iphisect != iphisecttmp)
continue;
806 tmpHOCalib.
hoang = CLHEP::Hep3Vector(zLocal.
x(),zLocal.
y(),zLocal.
z()).
dot(hotrkdir2.unit());
821 for (
int i=0;
i<9;
i++) {tmpHOCalib.
hosig[
i]=-100.0;}
822 for (
int i=0;
i<18;
i++) {tmpHOCalib.
hocorsig[
i]=-100.0;}
823 for (
int i=0;
i<9;
i++) {tmpHOCalib.
hbhesig[
i]=-100.0;}
824 tmpHOCalib.
hocro = -100;
825 tmpHOCalib.
htime = -1000;
835 if (iphiho<0) isect -=2000000;
836 tmpHOCalib.
isect = isect;
848 if (
iring==1) {etamn=5; etamx = 10;}
849 if (
iring==2) {etamn=11; etamx = 16;}
850 if (
iring==-1){etamn=-10; etamx = -5;}
851 if (
iring==-2){etamn=-16; etamx = -11;}
856 phimx =2*int((iphiho+1)/2.);
859 phimn = 3*int((iphiho+1)/3.) - 1;
863 if (phimn <1) phimn +=
nphimx;
864 if (phimx >72) phimx -=
nphimx;
875 for (
int i=0;
i<9;
i++) {tmpHOCalib.
hbhesig[
i]=-100.0;}
878 if ((*hbhe).size() >0) {
883 m_coder = (*conditions_).getHcalCoder(
id);
885 int tmpeta=
id.ieta();
886 int tmpphi=
id.iphi();
889 int deta = tmpeta-ietaho;
890 if (tmpeta==-1 && ietaho== 1) deta = -1;
891 if (tmpeta== 1 && ietaho==-1) deta = 1;
892 int dphi = tmpphi-iphiho;
894 if (dphi==71) dphi=-1;
895 if (dphi==-71) dphi=1;
900 if (ipass2 ==0 )
continue;
903 for (
int i=0;
i<(*j).size() &&
i<
nchnmx;
i++) {
908 for (
int i=1;
i<(*j).size() &&
i<=8;
i++) {
913 if (3*(deta+1)+dphi+1<9) tmpHOCalib.
hbhesig[3*(deta+1)+dphi+1] = signal;
924 if ((*hbheht).size()>0) {
925 if(!(*hbheht).size())
throw (
int)(*hbheht).size();
931 int tmpeta=
id.
ieta();
932 int tmpphi=
id.iphi();
934 int deta = tmpeta-ietaho;
935 if (tmpeta==-1 && ietaho== 1) deta = -1;
936 if (tmpeta== 1 && ietaho==-1) deta = 1;
937 int dphi = tmpphi-iphiho;
939 if (dphi==71) dphi=-1;
940 if (dphi==-71) dphi=1;
944 if ( ipass2 ==0 )
continue;
946 float signal = (*j).energy();
948 if (3*(deta+1)+dphi+1<9) tmpHOCalib.
hbhesig[3*(deta+1)+dphi+1] = signal;
957 if ((*ho).size()>0) {
969 m_coder = (*conditions_).getHcalCoder(
id);
971 int tmpeta=
id.ieta();
972 int tmpphi=
id.iphi();
975 if (tmpeta >=etamn && tmpeta <=etamx) {
977 ipass1 = (tmpphi >=phimn && tmpphi <=phimx ) ? 1 : 0;
979 ipass1 = (tmpphi==71 || tmpphi ==72 || tmpphi==1) ? 1 : 0;
983 int deta = tmpeta-ietaho;
984 if (tmpeta==-1 && ietaho== 1) deta = -1;
985 if (tmpeta== 1 && ietaho==-1) deta = 1;
987 int dphi = tmpphi -iphiho;
989 if (dphi==71) dphi=-1;
990 if (dphi==-71) dphi=1;
995 int tmpeta1 = (tmpeta>0) ? tmpeta -1 : -tmpeta +14;
997 float tmpdata[
nchnmx]={0,0,0,0,0,0,0,0,0,0};
998 float sigvall[
nsigpk]={0,0,0,0,0,0,0};
1000 for (
int i=0;
i<(*j).size() &&
i<
nchnmx;
i++) {
1002 if (deta==0 && dphi==0) {
1003 double tmpE = tmpdata[
i] -
pedestal[tmpeta1][tmpphi-1][(*j).sample(
i).capid()];
1011 for (
int ncap=0; ncap<
nsigpk; ncap++) {
1013 sigvall[ncap] +=tmpdata[
i];
1017 if (
i==(*j).size()-1) {
1020 for (
int ij=0; ij<
nsigpk; ij++) {
1021 if (sigvall[ij] > mxled) {mxled = sigvall[ij]; imxled=ij;}
1024 for (
int ij=0; ij<4; ij++) {
1025 pedx +=pedestal[tmpeta1][tmpphi-1][ij];
1027 if (mxled-pedx >2 && mxled-pedx <20 ) {
1029 for (
int jk=0; jk<
ntrgp_gm; jk++) {
1030 if (ntrgpas_gm[jk]>0) {
1031 hopeak[jk]->Fill(nphimx*tmpeta1 + tmpphi-1, imxled+
nstrbn);
1034 if (tmpdata[5]+tmpdata[6] >1) {
1035 horatio->Fill(nphimx*tmpeta1 + tmpphi-1, (tmpdata[5]-tmpdata[6])/(tmpdata[5]+tmpdata[6]));
1037 for (
int ij=0; ij<(*j).size() && ij<
nchnmx; ij++) {
1038 hotime[
ntrgp_gm]->Fill(nphimx*nchnmx*tmpeta1 + nchnmx*(tmpphi-1) + ij, tmpdata[ij]);
1039 Nhotime[
ntrgp_gm]->Fill(nphimx*nchnmx*tmpeta1 + nchnmx*(tmpphi-1) + ij, 1.);
1040 for (
int jk=0; jk<
ntrgp_gm; jk++) {
1041 if (ntrgpas_gm[jk]>0) {
1042 hotime[jk]->Fill(nphimx*nchnmx*tmpeta1 + nchnmx*(tmpphi-1) + ij, tmpdata[ij]);
1043 Nhotime[jk]->Fill(nphimx*nchnmx*tmpeta1 + nchnmx*(tmpphi-1) + ij, 1.);
1053 if (
std::abs(tmpeta) <=15 && deta==0 && dphi ==0) {
1056 for (
int i =0;
i<nchnmx &&
i< (*j).size();
i++) {
1057 if (
i >=sigstr &&
i<=sigend)
continue;
1058 signal += tmpdata[
i] -
pedestal[tmpeta1][tmpphi-1][(*j).sample(
i).capid()];
1059 if (++icnt >=4)
break;
1061 tmpHOCalib.
hocro = signal;
1065 if (ipass1 ==0 && ipass2 ==0 && cosmicmuon->size()<=2) {
1067 if ((iphiho >=1 && iphiho<=nphimx/2 && tmpphi >=1 && tmpphi <=nphimx/2) ||
1068 (iphiho >nphimx/2 && iphiho<=nphimx && tmpphi >nphimx/2 && tmpphi <=
nphimx)) {
1069 if (isFilled[nphimx*tmpeta1+tmpphi-1]==0) {
1070 isFilled[nphimx*tmpeta1+tmpphi-1]=1;
1071 for (
int i=0;
i<(*j).size() &&
i<
nchnmx;
i++) {
1072 hopedtime->Fill(nphimx*nchnmx*tmpeta1 + nchnmx*(tmpphi-1) +
i, tmpdata[
i]);
1073 Nhopedtime->Fill(nphimx*nchnmx*tmpeta1 + nchnmx*(tmpphi-1) + i, 1.);
1074 hopedpr->Fill(nphimx*nchnmx*tmpeta1 + nchnmx*(tmpphi-1) + i, tmpdata[i]);
1082 if (ipass1 ==0 && ipass2 ==0 )
continue;
1085 for (
int i=sigstr;
i<(*j).size() &&
i<=sigend;
i++) {
1086 signal += tmpdata[
i] -
pedestal[tmpeta1][tmpphi-1][(*j).sample(
i).capid()];
1088 if (signal <-100 || signal >100000) signal = -100;
1090 if (signal >-100 &&
Noccu == Noccu_old) {
1091 for (
int i=0;
i<5;
i++) {
1099 if (ipass1 ==0 && ipass2 ==0 )
continue;
1102 int tmpdph = tmpphi-phimn;
1103 if (tmpdph<0) tmpdph = 2;
1105 int ilog = 2*(tmpeta-etamn)+tmpdph;
1108 ilog = 3*(tmpeta-etamn)+tmpdph;
1110 ilog = 3*(etamx-tmpeta)+tmpdph;
1113 if (ilog>-1 && ilog<18) {
1114 tmpHOCalib.
hocorsig[ilog] = signal;
1119 if (3*(deta+1)+dphi+1<9) tmpHOCalib.
hosig[3*(deta+1)+dphi+1] = signal;
1153 tmpHOCalib.
htime = sumEt/
max(sumE,1.
e-6);
1160 if ((*hoht).size()>0) {
1165 int tmpeta=
id.
ieta();
1166 int tmpphi=
id.iphi();
1169 if (tmpeta >=etamn && tmpeta <=etamx) {
1170 if (phimn < phimx) {
1171 ipass1 = (tmpphi >=phimn && tmpphi <=phimx ) ? 1 : 0;
1173 ipass1 = (tmpphi==71 || tmpphi ==72 || tmpphi==1) ? 1 : 0;
1177 int deta = tmpeta-ietaho;
1178 if (tmpeta==-1 && ietaho== 1) deta = -1;
1179 if (tmpeta== 1 && ietaho==-1) deta = 1;
1181 int dphi = tmpphi -iphiho;
1183 if (dphi==71) dphi=-1;
1184 if (dphi==-71) dphi=1;
1187 float signal = (*j).energy();
1189 int tmpeta1 = (tmpeta>0) ? tmpeta -1 : -tmpeta +14;
1190 if (signal >-100 &&
Noccu == Noccu_old) {
1191 for (
int i=0;
i<5;
i++) {
1201 if (ipass1 ==0 && ipass2 ==0 )
continue;
1204 int tmpdph = tmpphi-phimn;
1205 if (tmpdph<0) tmpdph = 2;
1207 int ilog = 2*(tmpeta-etamn)+tmpdph;
1210 ilog = 3*(tmpeta-etamn)+tmpdph;
1212 ilog = 3*(etamx-tmpeta)+tmpdph;
1215 if (ilog>-1 && ilog<18) {
1216 tmpHOCalib.
hocorsig[ilog] = signal;
1222 if (3*(deta+1)+dphi+1<9) {
1223 tmpHOCalib.
hosig[3*(deta+1)+dphi+1] = signal;
1227 if (deta==0 && dphi ==0) {
1228 tmpHOCalib.
htime = (*j).time();
1229 int crphi = tmpphi + 6;
1230 if (crphi >72) crphi -=72;
1235 int etacr= idcr.
ieta();
1236 int phicr= idcr.
iphi();
1237 if (tmpeta==etacr && crphi ==phicr) {
1250 hostore->push_back(tmpHOCalib);
1258 iEvent.
put(hostore,
"HOCalibVariableCollection");
1300 double etalow[
netabin]={ 0.025, 35.195, 70.625, 106.595, 141.565, 180.765, 220.235, 261.385, 304.525, 349.975, 410.025, 452.085, 506.645, 565.025, 627.725, 660.25};
1301 double etahgh[
netabin]={ 35.145, 70.575, 106.545, 125.505, 180.715, 220.185, 261.335, 304.475, 349.925, 392.575, 452.035, 506.595, 564.975, 627.675, 661.075, 700.25};
1303 double philow[6]={-76.27, -35.11, 0.35, 35.81, 71.77, 108.93};
1304 double phihgh[6]={-35.81, -0.35, 35.11, 71.07, 108.23, 140.49};
1306 double philow00[6]={-60.27, -32.91, 0.35, 33.61, 67.37, 102.23};
1307 double phihgh00[6]={-33.61, -0.35, 32.91, 66.67, 101.53, 129.49};
1309 double philow01[6]={-64.67, -34.91, 0.35, 35.61, 71.37, 108.33};
1310 double phihgh01[6]={-35.61, -0.35, 34.91, 70.67, 107.63, 138.19};
1317 if (tmpdy >etalow[
i] && tmpdy <etahgh[
i]) {
1319 float tmp1 = fabs(tmpdy-etalow[i]);
1320 float tmp2 = fabs(tmpdy-etahgh[i]);
1325 if (i>=4 && i<10)
iring=1;
1326 if (i>=10 && i<netabin)
iring=2;
1335 for (
int i=0;
i<6;
i++) {
1338 float tmp1 = fabs(
xhor1-philow[i]);
1339 float tmp2 = fabs(
xhor1-phihgh[i]);
1345 for (
int i=0;
i<6;
i++) {
1348 float tmp1 = fabs(
xhor1-philow01[i]);
1349 float tmp2 = fabs(
xhor1-phihgh01[i]);
1355 for (
int i=0;
i<6;
i++) {
1358 float tmp1 = fabs(
xhor0-philow00[i]);
1359 float tmp2 = fabs(
xhor0-phihgh00[i]);
1367 for (
int i=0;
i<4;
i++) {
1368 if (tmpdy >etalow[
i] && tmpdy <etahgh[
i]) {
1369 float tmp1 = fabs(tmpdy-etalow[i]);
1370 float tmp2 = fabs(tmpdy-etahgh[i]);
1379 iphiho = 6*iphisect -2 + tmpphi;
1380 if (iphiho <=0) iphiho +=
nphimx;
1403 if (dir) gmom *=-1.;
1410 if (dir) gmom *=-1.;
T getParameter(std::string const &) const
Basic3DVector< float > DirectionType
T getUntrackedParameter(std::string const &, T const &) const
TProfile * hopeak[ntrgp_gm+1]
FreeTrajectoryState getFreeTrajectoryState(const reco::Track &tk, const MagneticField *field, int itag, bool dir)
double outerPy() const
y coordinate of momentum vector at the outermost hit position
const TrackExtraRef & extra() const
reference to "extra" object
HcalCalibrations calibped
#define DEFINE_FWK_MODULE(type)
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
ReturnType plane(const PositionType &pos, const RotationType &rot) const
std::vector< T >::const_iterator const_iterator
edm::ESHandle< HcalDbService > conditions_
std::map< std::string, bool > fired
double pedestal(int fCapId) const
get pedestal for capid=0..3
Geom::Phi< T > phi() const
const HcalQIEShape * m_shape
virtual void produce(edm::Event &, const edm::EventSetup &)
GlobalVector momentum() const
void findHOEtaPhi(int iphsect, int &ietaho, int &iphiho)
double outerZ() const
z coordinate of the outermost hit position
static const unsigned int nL1mx
const math::XYZPoint & innerPosition() const
position of the innermost hit
const HcalQIECoder * m_coder
const T & max(const T &a, const T &b)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
GlobalPoint position() const
static const unsigned int nL1trg
Basic3DVector< float > RotationType
Vector3DBase< typename PreciseFloatType< T, U >::Type, FrameTag > cross(const Vector3DBase< U, FrameTag > &v) const
Cos< T >::type cos(const T &t)
int ieta() const
get the cell ieta
math::Error< 5 >::type CovarianceMatrix
std::string theRootFileName
Basic3DVector< float > PositionType
edm::InputTag towerLabel_
double outerX() const
x coordinate of the outermost hit position
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
float pedestal[netamx][nphimx][ncidmx]
double outerPz() const
z coordinate of momentum vector at the outermost hit position
int iphi() const
get the cell iphi
TH1F * Nhotime[ntrgp_gm+1]
std::vector< HOCalibVariables > HOCalibVariableCollection
collection of HOcalibration variabale
AlCaHOCalibProducer(const edm::ParameterSet &)
T dot(const Basic3DVector &v) const
Scalar product, or "dot" product, with a vector of same type.
const math::XYZVector & innerMomentum() const
momentum vector at the innermost hit position
double outerY() const
y coordinate of the outermost hit position
T * make() const
make new ROOT object
HcalCalibrationWidths calibwidth
int charge() const
track electric charge
TH1F * hotime[ntrgp_gm+1]
static const unsigned int nHLTmx
HcalDetId id() const
get the id
double outerPx() const
x coordinate of momentum vector at the outermost hit position
math::Error< dimension >::type CovarianceMatrix
5 parameter covariance matrix
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
float charge(const HcalQIEShape &fShape, unsigned fAdc, unsigned fCapId) const
ADC [0..127] + capid [0..3] -> fC conversion.