@@ -830,33 +830,33 @@ void SiStripMonitorDigi::analyze(const edm::Event& iEvent, const edm::EventSetup
830830
831831 for (auto & it : SubDetMEsMap) {
832832 if (subdetswitchtotdigifailureon) {
833- if (strcmp ( it.first . data (), " TEC__MINUS " ) == 0 ) {
833+ if (it.first == " TEC__MINUS " ) {
834834 digiFailureMEs.SubDetTotDigiProfLS ->Fill (1 , it.second .totNDigis );
835- } else if (strcmp ( it.first . data (), " TEC__PLUS " ) == 0 ) {
835+ } else if (it.first == " TEC__PLUS " ) {
836836 digiFailureMEs.SubDetTotDigiProfLS ->Fill (2 , it.second .totNDigis );
837- } else if (strcmp ( it.first . data (), " TIB " ) == 0 ) {
837+ } else if (it.first == " TIB " ) {
838838 digiFailureMEs.SubDetTotDigiProfLS ->Fill (3 , it.second .totNDigis );
839- } else if (strcmp ( it.first . data (), " TID__MINUS " ) == 0 ) {
839+ } else if (it.first == " TID__MINUS " ) {
840840 digiFailureMEs.SubDetTotDigiProfLS ->Fill (4 , it.second .totNDigis );
841- } else if (strcmp ( it.first . data (), " TID__PLUS " ) == 0 ) {
841+ } else if (it.first == " TID__PLUS " ) {
842842 digiFailureMEs.SubDetTotDigiProfLS ->Fill (5 , it.second .totNDigis );
843- } else if (strcmp ( it.first . data (), " TOB " ) == 0 ) {
843+ } else if (it.first == " TOB " ) {
844844 digiFailureMEs.SubDetTotDigiProfLS ->Fill (6 , it.second .totNDigis );
845845 }
846846 }
847847
848848 if (globalsummaryapvshotson) {
849- if (strcmp ( it.first . data (), " TEC__MINUS " ) == 0 ) {
849+ if (it.first == " TEC__MINUS " ) {
850850 NApvShotsGlobalProf->Fill (1 , it.second .SubDetApvShots .size ());
851- } else if (strcmp ( it.first . data (), " TEC__PLUS " ) == 0 ) {
851+ } else if (it.first == " TEC__PLUS " ) {
852852 NApvShotsGlobalProf->Fill (2 , it.second .SubDetApvShots .size ());
853- } else if (strcmp ( it.first . data (), " TIB " ) == 0 ) {
853+ } else if (it.first == " TIB " ) {
854854 NApvShotsGlobalProf->Fill (3 , it.second .SubDetApvShots .size ());
855- } else if (strcmp ( it.first . data (), " TID__MINUS " ) == 0 ) {
855+ } else if (it.first == " TID__MINUS " ) {
856856 NApvShotsGlobalProf->Fill (4 , it.second .SubDetApvShots .size ());
857- } else if (strcmp ( it.first . data (), " TID__PLUS " ) == 0 ) {
857+ } else if (it.first == " TID__PLUS " ) {
858858 NApvShotsGlobalProf->Fill (5 , it.second .SubDetApvShots .size ());
859- } else if (strcmp ( it.first . data (), " TOB " ) == 0 ) {
859+ } else if (it.first == " TOB " ) {
860860 NApvShotsGlobalProf->Fill (6 , it.second .SubDetApvShots .size ());
861861 }
862862 }
@@ -922,9 +922,8 @@ void SiStripMonitorDigi::analyze(const edm::Event& iEvent, const edm::EventSetup
922922 long long tbx = event_history->absoluteBX ();
923923
924924 for (auto & it : SubDetMEsMap) {
925- SubDetMEs subdetmes;
926925 const auto & subdet = std::string (it.first );
927- subdetmes = it.second ;
926+ SubDetMEs& subdetmes = it.second ;
928927
929928 int the_phase = APVCyclePhaseCollection::invalid;
930929 long long tbx_corr = tbx;
0 commit comments