45 #include "TEfficiency.h" 49 #include "TGraphAsymmErrors.h" 55 #include "TObjString.h" 80 void algoEndJob()
override;
82 void SetBadComponents(
int i,
85 std::stringstream ssV[4][19],
86 int NBadComponent[4][19][4]);
90 void totalStatistics();
96 TString GetLayerName(Long_t
k);
97 TString GetLayerSideName(Long_t
k);
98 float calcPhi(
float x,
float y);
100 static constexpr
double nBxInAnOrbit = 3565;
105 std::unique_ptr<SiStripBadStrip> getNewObject()
override;
140 map<pair<unsigned int, unsigned int>, array<double, 3> >
eventInfos;
142 vector<hit>
hits[::k_END_OF_LAYERS];
144 map<unsigned int, pair<unsigned int, unsigned int> > modCounter[::k_END_OF_LAYERS];
150 long layerfound[::k_END_OF_LAYERS];
151 long layertotal[::k_END_OF_LAYERS];
162 int goodlayertotal[::k_END_OF_LAYS_AND_RINGS];
163 int goodlayerfound[::k_END_OF_LAYS_AND_RINGS];
164 int alllayertotal[::k_END_OF_LAYS_AND_RINGS];
165 int alllayerfound[::k_END_OF_LAYS_AND_RINGS];
215 ifstream badModules_file;
216 set<uint32_t> badModules_list;
219 uint32_t badmodule_detid;
220 int mods, fiber1, fiber2, fiber3;
221 if (badModules_file.is_open()) {
223 while (getline(badModules_file,
line)) {
224 if (badModules_file.eof())
227 ss >> badmodule_detid >>
mods >> fiber1 >> fiber2 >> fiber3;
228 if (badmodule_detid != 0 &&
mods == 1 && (fiber1 == 1 || fiber2 == 1 || fiber3 == 1))
229 badModules_list.insert(badmodule_detid);
231 badModules_file.close();
234 if (!badModules_list.empty())
235 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"Remove additionnal bad modules from the analysis: " << endl;
236 set<uint32_t>::iterator itBadMod;
237 for (itBadMod = badModules_list.begin(); itBadMod != badModules_list.end(); ++itBadMod)
238 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
" " << *itBadMod << endl;
242 bxHisto =
fs->make<TH1F>(
"bx",
"bx", 3600, 0, 3600);
243 instLumiHisto =
fs->make<TH1F>(
"instLumi",
"inst. lumi.", 250, 0, 25000);
244 PUHisto =
fs->make<TH1F>(
"PU",
"PU", 200, 0, 200);
246 for (
int l = 0;
l < ::k_END_OF_LAYS_AND_RINGS;
l++) {
253 TH1F* PredPlots_m[::k_END_OF_LAYERS];
254 TH1F* PredPlots_p[::k_END_OF_LAYERS];
255 TH1F* MeasPlots_m[::k_END_OF_LAYERS];
256 TH1F* MeasPlots_p[::k_END_OF_LAYERS];
257 TH1F* ResidPlots_m[::k_END_OF_LAYERS];
258 TH1F* ResidPlots_p[::k_END_OF_LAYERS];
266 if (UnitString ==
"cm") {
267 PlotTitleClusX =
"clusX [cm]";
268 PlotTitleTrajX =
"trajX [cm]";
269 FileNameEnding =
"CM";
270 }
else if (UnitString ==
"strip unit") {
271 PlotTitleClusX =
"clusX [strip unit]";
272 PlotTitleTrajX =
"trajX [strip unit]";
273 FileNameEnding =
"StripUnit";
275 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"ERROR: Unit must either be cm or strip unit." << std::endl;
278 for (Long_t ilayer = 0; ilayer < ::k_END_OF_LAYERS; ilayer++) {
279 MeasPlots_m[ilayer] =
280 fs->make<TH1F>(Form(
"MeasPlots_m_layer_%i", (
int)(ilayer)),
GetLayerName(ilayer), 1000, -5., 5.);
281 MeasPlots_m[ilayer]->GetXaxis()->SetTitle(
"clusX [cm]");
282 MeasPlots_p[ilayer] =
283 fs->make<TH1F>(Form(
"MeasPlots_p_layer_%i", (
int)(ilayer)),
GetLayerName(ilayer), 1000, -400, 400);
284 MeasPlots_p[ilayer]->GetXaxis()->SetTitle(
"clusX [strip]");
286 PredPlots_m[ilayer] =
287 fs->make<TH1F>(Form(
"PredPlots_m_layer_%i", (
int)(ilayer)),
GetLayerName(ilayer), 1000, -5., 5.);
288 PredPlots_m[ilayer]->GetXaxis()->SetTitle(
"trajX [cm]");
289 PredPlots_p[ilayer] =
290 fs->make<TH1F>(Form(
"PredPlots_p_layer_%i", (
int)(ilayer)),
GetLayerName(ilayer), 1000, -400, 400);
291 PredPlots_p[ilayer]->GetXaxis()->SetTitle(
"trajX [strip]");
293 ResidPlots_m[ilayer] =
294 fs->make<TH1F>(Form(
"ResidPlots_m_layer_%i", (
int)(ilayer)),
GetLayerName(ilayer), 250, -.125, .125);
295 ResidPlots_m[ilayer]->GetXaxis()->SetTitle(
"trajX [cm]");
296 ResidPlots_p[ilayer] =
297 fs->make<TH1F>(Form(
"ResidPlots_p_layer_%i", (
int)(ilayer)),
GetLayerName(ilayer), 200, -10., 10);
298 ResidPlots_p[ilayer]->GetXaxis()->SetTitle(
"trajX [strip]");
301 fs->make<TH1F>(Form(
"layerfound_vsLumi_layer_%i", (
int)(ilayer)),
GetLayerName(ilayer), 100, 0, 25000));
303 fs->make<TH1F>(Form(
"layertotal_vsLumi_layer_%i", (
int)(ilayer)),
GetLayerName(ilayer), 100, 0, 25000));
305 fs->make<TH1F>(Form(
"layerfound_vsPU_layer_%i", (
int)(ilayer)),
GetLayerName(ilayer), 45, 0, 90));
307 fs->make<TH1F>(Form(
"layertotal_vsPU_layer_%i", (
int)(ilayer)),
GetLayerName(ilayer), 45, 0, 90));
316 fs->make<TH1F>(Form(
"layerfound_vsCM_layer_%i", (
int)(ilayer)),
GetLayerName(ilayer), 20, 0, 400));
318 fs->make<TH1F>(Form(
"layertotal_vsCM_layer_%i", (
int)(ilayer)),
GetLayerName(ilayer), 20, 0, 400));
326 <<
" and has at least " <<
nModsMin_ <<
" nModsMin." << endl;
328 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"A module is bad if efficiency < the avg in layer - " <<
threshold_ 329 <<
" and has at least " <<
nModsMin_ <<
" nModsMin." << endl;
331 unsigned int run, evt,
bx;
340 bool foundEventInfos =
false;
342 CalibTreeFile->cd(
"eventInfo");
344 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"No event infos tree" << endl;
346 TTree* EventTree = (TTree*)(gDirectory->Get(
"tree"));
354 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"Found event infos tree" << endl;
356 runLf = EventTree->GetLeaf(
"run");
357 evtLf = EventTree->GetLeaf(
"event");
359 BunchLf = EventTree->GetLeaf(
"bx");
360 InstLumiLf = EventTree->GetLeaf(
"instLumi");
361 PULf = EventTree->GetLeaf(
"PU");
363 int nevt = EventTree->GetEntries();
365 foundEventInfos =
true;
367 for (
int j = 0;
j <
nevt;
j++) {
368 EventTree->GetEntry(
j);
369 run = runLf->GetValue();
370 evt = evtLf->GetValue();
371 bx = BunchLf->GetValue();
373 PU = PULf->GetValue();
384 CalibTreeFile->cd(
"anEff");
385 CalibTree = (TTree*)(gDirectory->Get(
"traj"));
389 TLeaf* BadLf =
CalibTree->GetLeaf(
"ModIsBad");
390 TLeaf* sistripLf =
CalibTree->GetLeaf(
"SiStripQualBad");
392 TLeaf* acceptLf =
CalibTree->GetLeaf(
"withinAcceptance");
393 TLeaf* layerLf =
CalibTree->GetLeaf(
"layer");
395 TLeaf* highPurityLf =
CalibTree->GetLeaf(
"highPurity");
396 TLeaf* xLf =
CalibTree->GetLeaf(
"TrajGlbX");
397 TLeaf* yLf =
CalibTree->GetLeaf(
"TrajGlbY");
398 TLeaf* zLf =
CalibTree->GetLeaf(
"TrajGlbZ");
399 TLeaf* ResXSigLf =
CalibTree->GetLeaf(
"ResXSig");
400 TLeaf* TrajLocXLf =
CalibTree->GetLeaf(
"TrajLocX");
401 TLeaf* TrajLocYLf =
CalibTree->GetLeaf(
"TrajLocY");
402 TLeaf* ClusterLocXLf =
CalibTree->GetLeaf(
"ClusterLocX");
404 InstLumiLf =
CalibTree->GetLeaf(
"instLumi");
406 TLeaf* CMLf =
nullptr;
412 <<
"Successfully loaded analyze function with " <<
nevents <<
" events!\n";
414 map<pair<unsigned int, unsigned int>, array<double, 3> >::iterator itEventInfos;
419 run = (
unsigned int)runLf->GetValue();
420 evt = (
unsigned int)evtLf->GetValue();
421 unsigned int isBad = (
unsigned int)BadLf->GetValue();
422 unsigned int quality = (
unsigned int)sistripLf->GetValue();
423 unsigned int id = (
unsigned int)idLf->GetValue();
424 unsigned int accept = (
unsigned int)acceptLf->GetValue();
425 unsigned int layer_wheel = (
unsigned int)layerLf->GetValue();
426 unsigned int layer = layer_wheel;
429 layer = 10 + ((
id >> 9) & 0x3);
431 layer = 13 + ((
id >> 5) & 0x7);
435 double x = xLf->GetValue();
436 double y = yLf->GetValue();
437 double z = zLf->GetValue();
438 double resxsig = ResXSigLf->GetValue();
439 double TrajLocX = TrajLocXLf->GetValue();
440 double TrajLocY = TrajLocYLf->GetValue();
441 double ClusterLocX = ClusterLocXLf->GetValue();
445 bool badquality =
false;
451 if (!foundEventInfos) {
452 bx = (
unsigned int)BunchLf->GetValue();
453 if (InstLumiLf !=
nullptr)
456 PU = PULf->GetValue();
460 CM = CMLf->GetValue();
463 if (foundEventInfos) {
466 bx = itEventInfos->second[0];
468 PU = itEventInfos->second[2];
487 if (!
showTOB6TEC9_ && (layer_wheel == 10 || layer_wheel == 22))
491 itBadMod = badModules_list.find(
id);
492 if (itBadMod != badModules_list.end())
498 bool badflag =
false;
505 if (isBad == 1 || resxsig >
resXSig_)
524 if (resxsig == 1000.0) {
527 stripTrajMid = TrajLocX / Pitch + nstrips / 2.0;
530 DetId ClusterDetId(
id);
535 stripTrajMid = TrajLocX / Pitch + nstrips / 2.0;
546 dynamic_cast<const TrapezoidalPlaneBounds*>(&(plane.bounds())));
547 std::array<const float, 4>
const&
parameters = (*trapezoidalBounds).parameters();
551 TrajLocXMid = TrajLocX / (1 + (htedge - hbedge) * TrajLocY / (htedge + hbedge) /
553 stripTrajMid = TrajLocXMid / Pitch + nstrips / 2.0;
566 if (!badquality &&
layer < ::k_END_OF_LAYERS) {
567 if (resxsig != 1000.0) {
568 MeasPlots_m[
layer]->Fill(ClusterLocX);
569 MeasPlots_p[
layer]->Fill(ClusterLocX / Pitch);
570 PredPlots_m[
layer]->Fill(TrajLocX);
571 PredPlots_p[
layer]->Fill(TrajLocX / Pitch);
572 ResidPlots_m[
layer]->Fill(ClusterLocX - TrajLocX);
573 ResidPlots_p[
layer]->Fill((ClusterLocX - TrajLocX) / Pitch);
575 MeasPlots_m[
layer]->Fill(1000);
576 MeasPlots_p[
layer]->Fill(1000);
577 PredPlots_m[
layer]->Fill(1000);
578 PredPlots_p[
layer]->Fill(1000);
585 float stripInAPV = 64.;
589 if (resxsig == 1000.0) {
600 tapv = (
int)stripTrajMid / 128;
602 stripInAPV = stripTrajMid - tapv * 128;
604 if (stripInAPV < stripsApvEdge_ || stripInAPV > 128 -
stripsApvEdge_)
612 if (badflag && !badquality) {
620 pair<unsigned int, unsigned int> newgoodpair(1, 1);
621 pair<unsigned int, unsigned int> newbadpair(1, 0);
623 map<unsigned int, pair<unsigned int, unsigned int> >::iterator it =
modCounter[
layer].find(
id);
631 ((*it).second.first)++;
633 ((*it).second.second)++;
663 if (((
id >> 13) & 0x3) == 1) {
667 }
else if (((
id >> 13) & 0x3) == 2) {
673 if (((
id >> 18) & 0x3) == 1) {
677 }
else if (((
id >> 18) & 0x3) == 2) {
690 if (((
id >> 13) & 0x3) == 1) {
694 }
else if (((
id >> 13) & 0x3) == 2) {
700 if (((
id >> 18) & 0x3) == 1) {
704 }
else if (((
id >> 18) & 0x3) == 2) {
727 int NTkBadComponent[4];
728 int NBadComponent[4][19][4];
732 std::stringstream ssV[4][19];
734 for (
int i = 0;
i < 4; ++
i) {
735 NTkBadComponent[
i] = 0;
736 for (
int j = 0;
j < 19; ++
j) {
738 for (
int k = 0;
k < 4; ++
k)
739 NBadComponent[
i][
j][
k] = 0;
745 for (
size_t i = 0;
i < BC.size(); ++
i) {
751 NTkBadComponent[0]++;
753 NTkBadComponent[1] += ((BC[
i].BadFibers >> 2) & 0
x1) + ((BC[
i].BadFibers >> 1) & 0
x1) + ((BC[
i].BadFibers) & 0
x1);
755 NTkBadComponent[2] += ((BC[
i].BadApvs >> 5) & 0
x1) + ((BC[
i].BadApvs >> 4) & 0
x1) + ((BC[
i].BadApvs >> 3) & 0
x1) +
756 ((BC[
i].BadApvs >> 2) & 0
x1) + ((BC[
i].BadApvs >> 1) & 0
x1) + ((BC[
i].BadApvs) & 0
x1);
777 component = tTopo.tidSide(BC[
i].detid) == 2 ? tTopo.tidWheel(BC[
i].detid) : tTopo.tidWheel(BC[
i].detid) + 3;
793 component = tTopo.tecSide(BC[
i].detid) == 2 ? tTopo.tecWheel(BC[
i].detid) : tTopo.tecWheel(BC[
i].detid) + 9;
801 float percentage = 0;
807 unsigned int detid = rp->detid;
812 if (
a.subdetId() == 3) {
815 }
else if (
a.subdetId() == 4) {
817 component = tTopo.tidSide(detid) == 2 ? tTopo.tidWheel(detid) : tTopo.tidWheel(detid) + 3;
818 }
else if (
a.subdetId() == 5) {
821 }
else if (
a.subdetId() == 6) {
823 component = tTopo.tecSide(detid) == 2 ? tTopo.tecWheel(detid) : tTopo.tecWheel(detid) + 9;
830 for (
int it = 0; it < sqrange.second - sqrange.first; it++) {
832 NTkBadComponent[3] +=
range;
833 NBadComponent[subdet][0][3] +=
range;
840 edm::LogError(
"SiStripQualityStatistics") <<
"PROBLEM detid " << detid <<
" value " << percentage << std::endl;
846 std::ofstream ResolutionValues;
847 int RunNumInt =
e.id().run();
849 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"RunNumString" << RunNumString << std::endl;
850 std::string ResolutionTextFileString =
"ResolutionValues_" + RunNumString +
"_" + FileNameEnding +
".txt";
852 ResolutionValues.open(ResolutionTextFileString.c_str());
854 for (Long_t ilayer = 0; ilayer < ::k_END_OF_LAYERS; ilayer++) {
857 float Meas = MeasPlots_p[ilayer]->GetStdDev();
858 float Pred = PredPlots_p[ilayer]->GetStdDev();
860 float PredMinusMeas =
pow(Meas, 2) +
pow(Pred, 2);
865 ResolutionValues <<
'\n' 866 <<
"Resolution for layer number " << ilayer <<
" (" <<
GetLayerName(ilayer) <<
")" 868 <<
"Double difference of the measured and predicted position between the two sensors under " 869 "consideration for layer number " 871 <<
" is: " << PredMinusMeas <<
'\n' 872 <<
"The difference between the two positions of the hit measurements for layer number " << ilayer
874 <<
" is: " << Meas <<
'\n' 879 <<
"\n-----------------\nNew IOV starting from run " <<
e.id().run() <<
" event " <<
e.id().event()
880 <<
" lumiBlock " <<
e.luminosityBlock() <<
" time " <<
e.time().value() <<
"\n-----------------\n";
881 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"\n-----------------\nGlobal Info\n-----------------";
883 <<
"\nBadComponent \t Modules \tFibers " 884 "\tApvs\tStrips\n----------------------------------------------------------------";
885 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"\nTracker:\t\t" << NTkBadComponent[0] <<
"\t" << NTkBadComponent[1]
886 <<
"\t" << NTkBadComponent[2] <<
"\t" << NTkBadComponent[3];
889 <<
"\nTIB:\t\t\t" << NBadComponent[0][0][0] <<
"\t" << NBadComponent[0][0][1] <<
"\t" << NBadComponent[0][0][2]
890 <<
"\t" << NBadComponent[0][0][3];
892 <<
"\nTID:\t\t\t" << NBadComponent[1][0][0] <<
"\t" << NBadComponent[1][0][1] <<
"\t" << NBadComponent[1][0][2]
893 <<
"\t" << NBadComponent[1][0][3];
895 <<
"\nTOB:\t\t\t" << NBadComponent[2][0][0] <<
"\t" << NBadComponent[2][0][1] <<
"\t" << NBadComponent[2][0][2]
896 <<
"\t" << NBadComponent[2][0][3];
898 <<
"\nTEC:\t\t\t" << NBadComponent[3][0][0] <<
"\t" << NBadComponent[3][0][1] <<
"\t" << NBadComponent[3][0][2]
899 <<
"\t" << NBadComponent[3][0][3];
902 for (
int i = 1;
i < 5; ++
i)
904 <<
"\nTIB Layer " <<
i <<
" :\t\t" << NBadComponent[0][
i][0] <<
"\t" << NBadComponent[0][
i][1] <<
"\t" 905 << NBadComponent[0][
i][2] <<
"\t" << NBadComponent[0][
i][3];
907 for (
int i = 1;
i < 4; ++
i)
909 <<
"\nTID+ Disk " <<
i <<
" :\t\t" << NBadComponent[1][
i][0] <<
"\t" << NBadComponent[1][
i][1] <<
"\t" 910 << NBadComponent[1][
i][2] <<
"\t" << NBadComponent[1][
i][3];
911 for (
int i = 4;
i < 7; ++
i)
913 <<
"\nTID- Disk " <<
i - 3 <<
" :\t\t" << NBadComponent[1][
i][0] <<
"\t" << NBadComponent[1][
i][1] <<
"\t" 914 << NBadComponent[1][
i][2] <<
"\t" << NBadComponent[1][
i][3];
916 for (
int i = 1;
i < 7; ++
i)
918 <<
"\nTOB Layer " <<
i <<
" :\t\t" << NBadComponent[2][
i][0] <<
"\t" << NBadComponent[2][
i][1] <<
"\t" 919 << NBadComponent[2][
i][2] <<
"\t" << NBadComponent[2][
i][3];
921 for (
int i = 1;
i < 10; ++
i)
923 <<
"\nTEC+ Disk " <<
i <<
" :\t\t" << NBadComponent[3][
i][0] <<
"\t" << NBadComponent[3][
i][1] <<
"\t" 924 << NBadComponent[3][
i][2] <<
"\t" << NBadComponent[3][
i][3];
925 for (
int i = 10;
i < 19; ++
i)
927 <<
"\nTEC- Disk " <<
i - 9 <<
" :\t\t" << NBadComponent[3][
i][0] <<
"\t" << NBadComponent[3][
i][1] <<
"\t" 928 << NBadComponent[3][
i][2] <<
"\t" << NBadComponent[3][
i][3];
932 <<
"\n----------------------------------------------------------------\n\t\t Detid \tModules Fibers " 933 "Apvs\n----------------------------------------------------------------";
934 for (
int i = 1;
i < 5; ++
i)
935 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"\nTIB Layer " <<
i <<
" :" << ssV[0][
i].str();
937 for (
int i = 1;
i < 4; ++
i)
938 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"\nTID+ Disk " <<
i <<
" :" << ssV[1][
i].str();
939 for (
int i = 4;
i < 7; ++
i)
940 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"\nTID- Disk " <<
i - 3 <<
" :" << ssV[1][
i].str();
942 for (
int i = 1;
i < 7; ++
i)
943 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"\nTOB Layer " <<
i <<
" :" << ssV[2][
i].str();
945 for (
int i = 1;
i < 10; ++
i)
946 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"\nTEC+ Disk " <<
i <<
" :" << ssV[3][
i].str();
947 for (
int i = 10;
i < 19; ++
i)
948 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"\nTEC- Disk " <<
i - 9 <<
" :" << ssV[3][
i].str();
952 badModules.open(
"BadModules.log");
953 badModules <<
"\n----------------------------------------------------------------\n\t\t Detid \tModules Fibers " 954 "Apvs\n----------------------------------------------------------------";
955 for (
int i = 1;
i < 5; ++
i)
956 badModules <<
"\nTIB Layer " <<
i <<
" :" << ssV[0][
i].
str();
958 for (
int i = 1;
i < 4; ++
i)
959 badModules <<
"\nTID+ Disk " <<
i <<
" :" << ssV[1][
i].
str();
960 for (
int i = 4;
i < 7; ++
i)
961 badModules <<
"\nTID- Disk " <<
i - 3 <<
" :" << ssV[1][
i].
str();
963 for (
int i = 1;
i < 7; ++
i)
964 badModules <<
"\nTOB Layer " <<
i <<
" :" << ssV[2][
i].
str();
966 for (
int i = 1;
i < 10; ++
i)
967 badModules <<
"\nTEC+ Disk " <<
i <<
" :" << ssV[3][
i].
str();
968 for (
int i = 10;
i < 19; ++
i)
969 badModules <<
"\nTEC- Disk " <<
i - 9 <<
" :" << ssV[3][
i].
str();
974 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"Entering hot cold map generation!\n";
975 TStyle* gStyle =
new TStyle(
"gStyle",
"myStyle");
977 gStyle->SetPalette(1);
978 gStyle->SetCanvasColor(kWhite);
979 gStyle->SetOptStat(0);
984 for (Long_t maplayer = 1; maplayer <= 22; maplayer++) {
986 if (maplayer > 0 && maplayer <= 4) {
988 temph2 =
fs->make<TH2F>(Form(
"%s%i",
"TIB", (
int)(maplayer)),
"TIB", 100, -1, 361, 100, -100, 100);
989 temph2->GetXaxis()->SetTitle(
"Phi");
990 temph2->GetXaxis()->SetBinLabel(1, TString(
"360"));
991 temph2->GetXaxis()->SetBinLabel(50, TString(
"180"));
992 temph2->GetXaxis()->SetBinLabel(100, TString(
"0"));
993 temph2->GetYaxis()->SetTitle(
"Global Z");
994 temph2->SetOption(
"colz");
996 }
else if (maplayer > 4 && maplayer <= 10) {
998 temph2 =
fs->make<TH2F>(Form(
"%s%i",
"TOB", (
int)(maplayer - 4)),
"TOB", 100, -1, 361, 100, -120, 120);
999 temph2->GetXaxis()->SetTitle(
"Phi");
1000 temph2->GetXaxis()->SetBinLabel(1, TString(
"360"));
1001 temph2->GetXaxis()->SetBinLabel(50, TString(
"180"));
1002 temph2->GetXaxis()->SetBinLabel(100, TString(
"0"));
1003 temph2->GetYaxis()->SetTitle(
"Global Z");
1004 temph2->SetOption(
"colz");
1006 }
else if (maplayer > 10 && maplayer <= 13) {
1009 temph2 =
fs->make<TH2F>(Form(
"%s%i",
"TID-", (
int)(maplayer - 10)),
"TID-", 100, -100, 100, 100, -100, 100);
1010 temph2->GetXaxis()->SetTitle(
"Global Y");
1011 temph2->GetXaxis()->SetBinLabel(1, TString(
"+Y"));
1012 temph2->GetXaxis()->SetBinLabel(50, TString(
"0"));
1013 temph2->GetXaxis()->SetBinLabel(100, TString(
"-Y"));
1014 temph2->GetYaxis()->SetTitle(
"Global X");
1015 temph2->GetYaxis()->SetBinLabel(1, TString(
"-X"));
1016 temph2->GetYaxis()->SetBinLabel(50, TString(
"0"));
1017 temph2->GetYaxis()->SetBinLabel(100, TString(
"+X"));
1018 temph2->SetOption(
"colz");
1020 temph2 =
fs->make<TH2F>(Form(
"%s%i",
"TID+", (
int)(maplayer - 10)),
"TID+", 100, -100, 100, 100, -100, 100);
1021 temph2->GetXaxis()->SetTitle(
"Global Y");
1022 temph2->GetXaxis()->SetBinLabel(1, TString(
"+Y"));
1023 temph2->GetXaxis()->SetBinLabel(50, TString(
"0"));
1024 temph2->GetXaxis()->SetBinLabel(100, TString(
"-Y"));
1025 temph2->GetYaxis()->SetTitle(
"Global X");
1026 temph2->GetYaxis()->SetBinLabel(1, TString(
"-X"));
1027 temph2->GetYaxis()->SetBinLabel(50, TString(
"0"));
1028 temph2->GetYaxis()->SetBinLabel(100, TString(
"+X"));
1029 temph2->SetOption(
"colz");
1031 }
else if (maplayer > 13) {
1034 temph2 =
fs->make<TH2F>(Form(
"%s%i",
"TEC-", (
int)(maplayer - 13)),
"TEC-", 100, -120, 120, 100, -120, 120);
1035 temph2->GetXaxis()->SetTitle(
"Global Y");
1036 temph2->GetXaxis()->SetBinLabel(1, TString(
"+Y"));
1037 temph2->GetXaxis()->SetBinLabel(50, TString(
"0"));
1038 temph2->GetXaxis()->SetBinLabel(100, TString(
"-Y"));
1039 temph2->GetYaxis()->SetTitle(
"Global X");
1040 temph2->GetYaxis()->SetBinLabel(1, TString(
"-X"));
1041 temph2->GetYaxis()->SetBinLabel(50, TString(
"0"));
1042 temph2->GetYaxis()->SetBinLabel(100, TString(
"+X"));
1043 temph2->SetOption(
"colz");
1045 temph2 =
fs->make<TH2F>(Form(
"%s%i",
"TEC+", (
int)(maplayer - 13)),
"TEC+", 100, -120, 120, 100, -120, 120);
1046 temph2->GetXaxis()->SetTitle(
"Global Y");
1047 temph2->GetXaxis()->SetBinLabel(1, TString(
"+Y"));
1048 temph2->GetXaxis()->SetBinLabel(50, TString(
"0"));
1049 temph2->GetXaxis()->SetBinLabel(100, TString(
"-Y"));
1050 temph2->GetYaxis()->SetTitle(
"Global X");
1051 temph2->GetYaxis()->SetBinLabel(1, TString(
"-X"));
1052 temph2->GetYaxis()->SetBinLabel(50, TString(
"0"));
1053 temph2->GetYaxis()->SetBinLabel(100, TString(
"+X"));
1054 temph2->SetOption(
"colz");
1058 for (Long_t mylayer = 1; mylayer <= 22; mylayer++) {
1062 vector<hit>::const_iterator iter;
1063 for (iter =
hits[mylayer].begin(); iter !=
hits[mylayer].end(); iter++) {
1067 if (mylayer > 0 && mylayer <= 4) {
1071 }
else if (mylayer > 4 && mylayer <= 10) {
1075 }
else if (mylayer > 10 && mylayer <= 13) {
1078 int side = (((iter->id) >> 13) & 0x3);
1080 HotColdMaps[(mylayer - 1) + (mylayer - 11)]->Fill(-iter->y, iter->x, 1.);
1082 HotColdMaps[(mylayer - 1) + (mylayer - 10)]->Fill(-iter->y, iter->x, 1.);
1085 }
else if (mylayer > 13) {
1088 int side = (((iter->id) >> 18) & 0x3);
1090 HotColdMaps[(mylayer + 2) + (mylayer - 14)]->Fill(-iter->y, iter->x, 1.);
1092 HotColdMaps[(mylayer + 2) + (mylayer - 13)]->Fill(-iter->y, iter->x, 1.);
1098 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"Finished HotCold Map Generation\n";
1102 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"Entering TKMap generation!\n";
1109 double myeff, mynum, myden;
1110 double eff_limit = 0;
1112 for (Long_t
i = 1;
i <= 22;
i++) {
1118 fs->make<TH1F>(Form(
"eff_layer%i",
int(
i)), Form(
"Module efficiency in layer %i",
int(
i)), 201, 0, 1.005);
1120 map<unsigned int, pair<unsigned int, unsigned int> >::const_iterator ih;
1124 mynum = (double)(((*ih).second).second);
1125 myden = (double)(((*ih).second).first);
1127 myeff = mynum / myden;
1130 hEffInLayer->Fill(myeff);
1138 <<
"Layer " <<
i <<
" (" <<
GetLayerName(
i) <<
") module " << (*ih).first <<
" efficiency: " << myeff
1139 <<
" , " << mynum <<
"/" << myden << endl;
1146 << (*ih).first <<
" is under occupancy at " << myden << endl;
1163 hEffInLayer->GetXaxis()->SetRange(3, hEffInLayer->GetNbinsX() + 1);
1164 eff_limit = hEffInLayer->GetMean() -
threshold_;
1166 <<
"Layer " <<
i <<
" threshold for bad modules: " << eff_limit << endl;
1167 hEffInLayer->GetXaxis()->SetRange(1, hEffInLayer->GetNbinsX() + 1);
1171 mynum = (double)(((*ih).second).second);
1172 myden = (double)(((*ih).second).first);
1174 myeff = mynum / myden;
1177 if ((myden >=
nModsMin_) && (myeff < eff_limit)) {
1182 <<
"Layer " <<
i <<
" (" <<
GetLayerName(
i) <<
") module " << (*ih).first <<
" efficiency: " << myeff
1183 <<
" , " << mynum <<
"/" << myden << endl;
1190 <<
"Layer " <<
i <<
" (" <<
GetLayerName(
i) <<
") module " << (*ih).first <<
" layer " <<
i 1191 <<
" is under occupancy at " << myden << endl;
1196 tkmap->
save(
true, 0, 0,
"SiStripHitResolTKMap.png");
1197 tkmapbad->
save(
true, 0, 0,
"SiStripHitResolTKMapBad.png");
1199 tkmapnum->
save(
true, 0, 0,
"SiStripHitResolTKMapNum.png");
1200 tkmapden->
save(
true, 0, 0,
"SiStripHitResolTKMapDen.png");
1201 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"Finished TKMap Generation\n";
1206 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"Entering SQLite file generation!\n";
1207 std::vector<unsigned int> BadStripList;
1208 unsigned short NStrips;
1210 std::unique_ptr<SiStripQuality> pQuality = std::make_unique<SiStripQuality>(
detInfo_);
1214 map<unsigned int, double>::const_iterator it;
1220 <<
"Number of strips module " << (*it).first <<
" is " << NStrips << endl;
1221 BadStripList.push_back(pQuality->encode(0, NStrips, 0));
1223 id1 = (
unsigned int)(*it).first;
1224 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"ID1 shoudl match list of modules above " <<
id1 << endl;
1228 BadStripList.clear();
1242 for (Long_t
i = 1;
i < 5;
i++) {
1247 for (Long_t
i = 1;
i <= 22;
i++) {
1258 if (
i >= 5 &&
i < 11) {
1262 if (
i >= 11 &&
i < 14) {
1273 <<
"The total efficiency is " << double(totalfound) / double(totaltotal) << endl;
1274 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
" TIB: " << double(subdetfound[1]) / subdettotal[1] <<
" " 1275 << subdetfound[1] <<
"/" << subdettotal[1] << endl;
1276 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
" TOB: " << double(subdetfound[2]) / subdettotal[2] <<
" " 1277 << subdetfound[2] <<
"/" << subdettotal[2] << endl;
1278 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
" TID: " << double(subdetfound[3]) / subdettotal[3] <<
" " 1279 << subdetfound[3] <<
"/" << subdettotal[3] << endl;
1280 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
" TEC: " << double(subdetfound[4]) / subdettotal[4] <<
" " 1281 << subdetfound[4] <<
"/" << subdettotal[4] << endl;
1299 TH1F* found2 =
fs->make<TH1F>(
"found2",
"found2",
nLayers + 1, 0,
nLayers + 1);
1302 found->SetBinContent(0, -1);
1303 all->SetBinContent(0, 1);
1307 found->SetBinContent(
i, 1
e-6);
1308 all->SetBinContent(
i, 1);
1309 found2->SetBinContent(
i, 1
e-6);
1310 all2->SetBinContent(
i, 1);
1313 TCanvas* c7 =
new TCanvas(
"c7",
" test ", 10, 10, 800, 600);
1314 c7->SetFillColor(0);
1317 int nLayers_max =
nLayers + 1;
1320 for (Long_t
i = 1;
i < nLayers_max; ++
i) {
1339 for (Long_t
i = 11;
i < 14; ++
i) {
1357 <<
"Fill only good modules layer " <<
i - 3
1380 TGraphAsymmErrors* gr =
fs->make<TGraphAsymmErrors>(
nLayers + 1);
1381 gr->SetName(
"eff_good");
1384 TGraphAsymmErrors* gr2 =
fs->make<TGraphAsymmErrors>(
nLayers + 1);
1385 gr2->SetName(
"eff_all");
1386 gr2->BayesDivide(found2, all2);
1389 gr->SetPointError(
j, 0., 0., gr->GetErrorYlow(
j), gr->GetErrorYhigh(
j));
1390 gr2->SetPointError(
j, 0., 0., gr2->GetErrorYlow(
j), gr2->GetErrorYhigh(
j));
1393 gr->GetXaxis()->SetLimits(0,
nLayers);
1394 gr->SetMarkerColor(2);
1395 gr->SetMarkerSize(1.2);
1396 gr->SetLineColor(2);
1397 gr->SetLineWidth(4);
1398 gr->SetMarkerStyle(20);
1400 gr->SetMaximum(1.001);
1401 gr->GetYaxis()->SetTitle(
"Efficiency");
1402 gStyle->SetTitleFillColor(0);
1403 gStyle->SetTitleBorderSize(0);
1406 gr2->GetXaxis()->SetLimits(0,
nLayers);
1407 gr2->SetMarkerColor(1);
1408 gr2->SetMarkerSize(1.2);
1409 gr2->SetLineColor(1);
1410 gr2->SetLineWidth(4);
1411 gr2->SetMarkerStyle(21);
1413 gr2->SetMaximum(1.001);
1414 gr2->GetYaxis()->SetTitle(
"Efficiency");
1433 gr->GetXaxis()->SetBinLabel(((
k + 1) * 100 + 2) / (
nLayers)-4,
label);
1434 gr2->GetXaxis()->SetBinLabel(((
k + 1) * 100 + 2) / (
nLayers)-4,
label);
1436 gr->GetXaxis()->SetBinLabel((
k + 1) * 100 / (
nLayers)-6,
label);
1437 gr2->GetXaxis()->SetBinLabel((
k + 1) * 100 / (
nLayers)-6,
label);
1441 gr->GetXaxis()->SetBinLabel((
k + 1) * 100 / (
nLayers)-4,
label);
1442 gr2->GetXaxis()->SetBinLabel((
k + 1) * 100 / (
nLayers)-4,
label);
1444 gr->GetXaxis()->SetBinLabel((
k + 1) * 100 / (
nLayers)-7,
label);
1445 gr2->GetXaxis()->SetBinLabel((
k + 1) * 100 / (
nLayers)-7,
label);
1451 gr->GetXaxis()->SetNdivisions(36);
1454 TPad*
overlay =
new TPad(
"overlay",
"", 0, 0, 1, 1);
1457 overlay->SetFrameFillStyle(4000);
1463 TLegend* leg =
new TLegend(0.70, 0.27, 0.88, 0.40);
1464 leg->AddEntry(gr,
"Good Modules",
"p");
1466 leg->AddEntry(gr2,
"All Modules",
"p");
1467 leg->SetTextSize(0.020);
1468 leg->SetFillColor(0);
1471 c7->SaveAs(
"Summary.png");
1475 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"Computing efficiency vs bx" << endl;
1481 for (
unsigned int ilayer = 1; ilayer <
nLayers; ilayer++) {
1482 for (
unsigned int ibx = 0; ibx <=
nBxInAnOrbit; ibx++) {
1487 map<unsigned int, vector<int> >::iterator iterMapvsBx;
1489 layerfound_vsBX[ilayer]->SetBinContent(iterMapvsBx->first, iterMapvsBx->second[ilayer]);
1491 if (iterMapvsBx->second[ilayer] > 0)
1492 layertotal_vsBX[ilayer]->SetBinContent(iterMapvsBx->first, iterMapvsBx->second[ilayer]);
1497 TGraphAsymmErrors* geff =
fs->make<TGraphAsymmErrors>(
nBxInAnOrbit - 1);
1498 geff->SetName(Form(
"effVsBx_layer%i", ilayer));
1499 geff->SetTitle(
"Hit Efficiency vs bx - " +
GetLayerName(ilayer));
1503 TGraphAsymmErrors* geff_avg =
fs->make<TGraphAsymmErrors>();
1504 geff_avg->SetName(Form(
"effVsBxAvg_layer%i", ilayer));
1505 geff_avg->SetTitle(
"Hit Efficiency vs bx - " +
GetLayerName(ilayer));
1506 geff_avg->SetMarkerStyle(20);
1508 int previous_bx = -80;
1518 ibx = iterMapvsBx->first;
1519 delta_bx = ibx - previous_bx;
1524 geff_avg->SetPoint(ipt, sum_bx / nbx, eff);
1525 low = TEfficiency::Bayesian(
total,
found, .683, 1, 1,
false);
1526 up = TEfficiency::Bayesian(
total,
found, .683, 1, 1,
true);
1527 geff_avg->SetPointError(ipt, sum_bx / nbx - firstbx, previous_bx - sum_bx / nbx, eff -
low,
up - eff);
1545 geff_avg->SetPoint(ipt, sum_bx / nbx, eff);
1546 low = TEfficiency::Bayesian(
total,
found, .683, 1, 1,
false);
1547 up = TEfficiency::Bayesian(
total,
found, .683, 1, 1,
true);
1548 geff_avg->SetPointError(ipt, sum_bx / nbx - firstbx, previous_bx - sum_bx / nbx, eff -
low,
up - eff);
1553 TString layername =
"";
1554 TString ringlabel =
"D";
1557 if (
k > 0 &&
k < 5) {
1558 layername = TString(
"TIB L") +
k;
1559 }
else if (
k > 4 &&
k < 11) {
1560 layername = TString(
"TOB L") + (
k - 4);
1561 }
else if (
k > 10 &&
k < 14) {
1562 layername = TString(
"TID ") + ringlabel + (
k - 10);
1564 layername = TString(
"TEC ") + ringlabel + (
k - 13);
1571 vector<TH1F*>& vhfound,
1572 vector<TH1F*>& vhtotal,
1581 for (
unsigned int ilayer = 1; ilayer <
nLayers; ilayer++) {
1582 hfound = vhfound[ilayer];
1583 htotal = vhtotal[ilayer];
1589 for (Long_t
i = 0;
i < hfound->GetNbinsX() + 1; ++
i) {
1590 if (hfound->GetBinContent(
i) == 0)
1591 hfound->SetBinContent(
i, 1
e-6);
1592 if (htotal->GetBinContent(
i) == 0)
1593 htotal->SetBinContent(
i, 1);
1596 TGraphAsymmErrors* geff =
fs->make<TGraphAsymmErrors>(hfound->GetNbinsX());
1597 geff->SetName(Form(
"%s_layer%i",
name.c_str(), ilayer));
1598 geff->BayesDivide(hfound, htotal);
1599 if (
name ==
"effVsLumi")
1600 geff->SetTitle(
"Hit Efficiency vs inst. lumi. - " +
GetLayerName(ilayer));
1601 if (
name ==
"effVsPU")
1602 geff->SetTitle(
"Hit Efficiency vs pileup - " +
GetLayerName(ilayer));
1603 if (
name ==
"effVsCM")
1604 geff->SetTitle(
"Hit Efficiency vs common Mode - " +
GetLayerName(ilayer));
1605 geff->SetMarkerStyle(20);
1610 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"Computing efficiency vs lumi" << endl;
1615 <<
" pu: " <<
PUHisto->GetMean() <<
"+/-" <<
PUHisto->GetRMS() << endl;
1622 unsigned int nLayersForAvg = 0;
1623 float layerLumi = 0;
1628 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"Lumi summary: (avg over trajectory measurements)" << endl;
1629 for (
unsigned int ilayer = 1; ilayer <
nLayers; ilayer++) {
1633 if (layerLumi != 0 && layerPU != 0) {
1634 avgLumi += layerLumi;
1639 avgLumi /= nLayersForAvg;
1640 avgPU /= nLayersForAvg;
1641 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"Avg conditions: lumi :" << avgLumi <<
" pu: " << avgPU << endl;
1649 edm::LogInfo(
"SiStripHitResolFromCalibTree") <<
"Computing efficiency vs CM" << endl;
1654 TString layername =
"";
1655 TString ringlabel =
"D";
1658 if (
k > 0 &&
k < 5) {
1659 layername = TString(
"TIB L") +
k;
1660 }
else if (
k > 4 &&
k < 11) {
1661 layername = TString(
"TOB L") + (
k - 4);
1662 }
else if (
k > 10 &&
k < 14) {
1663 layername = TString(
"TID- ") + ringlabel + (
k - 10);
1664 }
else if (
k > 13 &&
k < 17) {
1665 layername = TString(
"TID+ ") + ringlabel + (
k - 13);
1667 layername = TString(
"TEC- ") + ringlabel + (
k - 16);
1669 layername = TString(
"TEC+ ") + ringlabel + (
k - 16 -
nTEClayers_);
1678 auto obj = std::make_unique<SiStripBadStrip>();
1683 for (; rIter != rIterEnd; ++rIter) {
1686 if (!
obj->put(rIter->detid,
range))
1688 <<
"[SiStripHitResolFromCalibTree::getNewObject] detid already exists" << std::endl;
1697 if ((
x >= 0) && (
y >= 0))
1699 else if ((
x >= 0) && (
y <= 0))
1701 else if ((
x <= 0) && (
y >= 0))
1740 NBadComponent[
i][0][0]++;
static const std::string kSharedResource
float calcPhi(float x, float y)
static constexpr auto TEC
virtual int nstrips() const =0
edm::FileInPath FileInPath_
ContainerIterator getDataVectorBegin() const
T getParameter(std::string const &) const
vector< TH1F * > layertotal_vsPU
vector< TH1F * > layertotal_vsBX
std::unique_ptr< SiStripBadStrip > getNewObject() override
map< unsigned int, vector< int > > layertotal_perBx
bool useOnlyHighPurityTracks_
vector< TH1F * > layerfound_vsCM
std::string fullPath() const
map< unsigned int, vector< int > > layerfound_perBx
int goodlayertotal[::k_END_OF_LAYS_AND_RINGS]
vector< TH1F * > layertotal_vsCM
vector< TH1F * > layerfound_vsLumi
unsigned int clusterMatchingMethod_
vector< string > calibTreeFileNames_
void makeSummaryVsBx(const edm::Service< TFileService > &fs)
SiStripQuality * quality_
Registry::const_iterator RegistryIterator
long layerfound[::k_END_OF_LAYERS]
unsigned int spaceBetweenTrains_
Log< level::Error, false > LogError
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
vector< TH1F * > layerfound_vsBX
static std::string to_string(const XMLCh *ch)
const std::vector< BadComponent > & getBadComponentList() const
void makeSummary(const edm::Service< TFileService > &fs)
T getUntrackedParameter(std::string const &, T const &) const
def overlay(hists, ytitle, header, addon)
map< unsigned int, double > BadModules
vector< TH1F * > layertotal_vsLumi
map< pair< unsigned int, unsigned int >, array< double, 3 > > eventInfos
void save(bool print_total=true, float minval=0., float maxval=0., std::string s="svgmap.svg", int width=1500, int height=800)
void compact(uint32_t detid, std::vector< unsigned int > &)
virtual const StripTopology & specificTopology() const
Returns a reference to the strip proxy topology.
Abs< T >::type abs(const T &t)
RegistryIterator getRegistryVectorEnd() const
#define DEFINE_FWK_MODULE(type)
SiStripDetInfo read(std::string filePath)
static constexpr auto TOB
map< unsigned int, pair< unsigned int, unsigned int > > modCounter[::k_END_OF_LAYERS]
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeomToken_
vector< TH1F * > layerfound_vsPU
void fillc(int idmod, int RGBcode)
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
vector< hit > hits[::k_END_OF_LAYERS]
Log< level::Info, false > LogInfo
int alllayerfound[::k_END_OF_LAYS_AND_RINGS]
static constexpr auto TIB
const Plane & surface() const
The nominal surface of the GeomDet.
const std::pair< unsigned short, double > getNumberOfApvsAndStripLength(uint32_t detId) const
void ComputeEff(const edm::Service< TFileService > &fs, vector< TH1F *> &vhfound, vector< TH1F *> &vhtotal, string name)
long layertotal[::k_END_OF_LAYERS]
bool autoIneffModTagging_
void makeTKMap(const edm::Service< TFileService > &fs, bool autoTagging)
void algoEndJob() override
vector< TH2F * > HotColdMaps
std::pair< ContainerIterator, ContainerIterator > Range
void algoAnalyze(const edm::Event &e, const edm::EventSetup &c) override
void makeSummaryVsCM(const edm::Service< TFileService > &fs)
int goodlayerfound[::k_END_OF_LAYS_AND_RINGS]
int alllayertotal[::k_END_OF_LAYS_AND_RINGS]
data decode(const unsigned int &value) const
void makeSummaryVsLumi(const edm::Service< TFileService > &fs)
bool showOnlyGoodModules_
bool put(const uint32_t &detID, const InputVector &vect)
void SetBadComponents(int i, int component, SiStripQuality::BadComponent &BC, std::stringstream ssV[4][19], int NBadComponent[4][19][4])
virtual float width() const =0
static constexpr auto TID
SiStripHitResolFromCalibTree(const edm::ParameterSet &)
RegistryIterator getRegistryVectorBegin() const
void makeHotColdMaps(const edm::Service< TFileService > &fs)
TString GetLayerSideName(Long_t k)
static constexpr double nBxInAnOrbit
void fill(int layer, int ring, int nmod, float x)
void algoBeginJob(const edm::EventSetup &) override
TString GetLayerName(Long_t k)
const Bounds & bounds() const