74 for (L1GctEtTotalCollection::const_iterator jbx = sumEtColl->begin(); jbx != sumEtColl->end(); jbx++) {
76 etTot = static_cast<double>(jbx->et());
81 for (L1GctEtHadCollection::const_iterator jbx = sumHtColl->begin(); jbx != sumHtColl->end(); jbx++) {
83 etHad = static_cast<double>(jbx->et());
89 for (L1GctEtMissCollection::const_iterator jbx = missEtColl->begin(); jbx != missEtColl->end(); jbx++) {
91 etMiss = static_cast<double>(jbx->et());
92 int phibin = jbx->phi();
95 double etMPhi = static_cast<double>(phibin);
97 etMAng = (etMPhi + 0.5) *
M_PI / 36.;
101 double etTotFromRegions = 0.0;
102 double exTotFromRegions = 0.0;
103 double eyTotFromRegions = 0.0;
104 for (L1CaloRegionCollection::const_iterator jrg =
inputColl->begin(); jrg !=
inputColl->end(); jrg++) {
105 if (jrg->bx() == 0) {
106 double rgEt = static_cast<double>(jrg->et()) * lsbForEt;
107 double rgPhibin = static_cast<double>(jrg->id().iphi());
108 double rgPh = (rgPhibin + 0.5) *
M_PI / 9.;
110 etTotFromRegions += rgEt;
111 exTotFromRegions += rgEt *
cos(rgPh);
112 eyTotFromRegions += rgEt *
sin(rgPh);
116 double htMissGct = 0.0;
117 double htMissAng = 0.0;
118 double htMissGeV = 0.0;
119 for (L1GctHtMissCollection::const_iterator jbx = missHtColl->begin(); jbx != missHtColl->end(); jbx++) {
120 if (jbx->bx() == 0) {
121 htMissGct = static_cast<double>(jbx->et());
122 htMissGeV = htMissScale->et(jbx->et());
123 int phibin = jbx->phi();
126 double htMPhi = static_cast<double>(phibin);
127 htMissAng = (htMPhi + 0.5) *
M_PI / 9.;
131 double htFromJets = 0.0;
132 double hxFromJets = 0.0;
133 double hyFromJets = 0.0;
134 for (L1GctInternJetDataCollection::const_iterator
jet = internalJetsColl->begin();
jet != internalJetsColl->end();
136 if (
jet->bx() == 0 && !
jet->empty()) {
137 unsigned jetEtGct =
jet->et();
138 double jetEt = static_cast<double>(jetEtGct);
139 int phibin =
jet->regionId().iphi();
143 double jetAng = (static_cast<double>(phibin)) *
M_PI / 9.;
144 if (jetEtGct > httJetThreshold) {
147 if (jetEtGct > htmJetThreshold) {
148 hxFromJets += jetEt *
cos(jetAng);
149 hyFromJets += jetEt *
sin(jetAng);
154 double dPhiMetMht =
deltaPhi(etMAng, htMissAng);
165 if (htMissGct < 126.5) {
173 sqrt(exTotFromRegions * exTotFromRegions + eyTotFromRegions * eyTotFromRegions));
176 sqrt(exTotFromRegions * exTotFromRegions + eyTotFromRegions * eyTotFromRegions));
184 if (htMissGct < 126.5) {
197 for (L1GctHFRingEtSumsCollection::const_iterator es = HFEtSumsColl->begin(); es != HFEtSumsColl->end(); es++) {
206 for (L1GctHFBitCountsCollection::const_iterator bc = HFCountsColl->begin(); bc != HFCountsColl->end(); bc++) {
222 theSumEtInLsb = dir0.
make<TH1F>(
"SumEtInLsb",
"Total Et (GCT units)", 128, 0., 2048.);
223 theSumHtInLsb = dir0.
make<TH1F>(
"SumHtInLsb",
"Total Ht (GCT units)", 128, 0., 2048.);
224 theMissEtInLsb = dir0.
make<TH1F>(
"MissEtInLsb",
"Missing Et magnitude (GCT units)", 128, 0., 1024.);
225 theMissHtInLsb = dir0.
make<TH1F>(
"MissHtInLsb",
"Missing Ht magnitude (GCT units)", 128, 0., 127.);
226 theSumEtInGeV = dir0.
make<TH1F>(
"SumEtInGeV",
"Total Et (in GeV)", 100, 0., 1000.);
227 theSumHtInGeV = dir0.
make<TH1F>(
"SumHtInGeV",
"Total Ht (in GeV)", 100, 0., 1000.);
228 theMissEtInGeV = dir0.
make<TH1F>(
"MissEtInGeV",
"Missing Et magnitude (in GeV)", 100, 0., 500.);
230 theMissEtVector = dir0.
make<TH2F>(
"MissEtVector",
"Missing Ex vs Missing Ey", 100, -100., 100., 100, -100., 100.);
231 theMissHtInGeV = dir0.
make<TH1F>(
"MissHtInGeV",
"Missing Ht magnitude (in GeV)", 100, 0., 500.);
233 theMissHtVector = dir0.
make<TH2F>(
"MissHtVector",
"Missing Hx vs Missing Hy", 100, -100., 100., 100, -100., 100.);
235 dir0.
make<TH2F>(
"SumEtVsInputRegions",
"Total Et vs sum of input regions", 100, 0., 1000., 100, 0., 1000.);
237 "MissEtMagVsInputRegions",
"Missing Et magnitude vs sum of input regions", 100, 0., 500., 100, 0., 500.);
239 "MissEtAngleVsInputRegions",
"Missing Et angle vs sum of input regions", 72, -
M_PI,
M_PI, 72, -
M_PI,
M_PI);
241 "MissHtMagVsInputRegions",
"Missing Ht magnitude vs sum of input regions", 100, 0., 500., 100, 0., 500.);
242 theMissEtVsMissHt = dir0.
make<TH2F>(
"MissEtVsMissHt",
"Missing Et vs Missing Ht", 100, 0., 500., 100, 0., 500.);
244 "MissEtVsMissHtAngle",
"Angle correlation Missing Et vs Missing Ht", 72, -
M_PI,
M_PI, 72, -
M_PI,
M_PI);
246 dir0.
make<TH2F>(
"theDPhiVsMissEt",
"Angle difference MET-MHT vs MET magnitude", 72, -
M_PI,
M_PI, 100, 0., 500.);
248 dir0.
make<TH2F>(
"theDPhiVsMissHt",
"Angle difference MET-MHT vs MHT magnitude", 72, -
M_PI,
M_PI, 100, 0., 500.);
251 "HtVsInternalJetsSum",
"Ht vs scalar sum of jet Et values (in GeV)", 128, 0., 2048., 128, 0., 2048.);
253 "MissHtVsInternalJetsSum",
"Missing Ht vs vector sum of jet Et values (in GeV)", 128, 0., 512., 128, 0., 512.);
255 "Angle correlation Missing Ht vs vector sum of jet Et values",
263 "Missing Ht x component vs sum of jet Et values (in GeV)",
271 "Missing Ht y component vs sum of jet Et values (in GeV)",