@@ -529,36 +529,29 @@ void HcalHitReconstructor::fillDescriptions(edm::ConfigurationDescriptions& desc
529529
530530 edm::ParameterSetDescription saturationParametersDesc;
531531 saturationParametersDesc.add <int >(" maxADCvalue" , 127 );
532+ desc.add <edm::ParameterSetDescription>(" saturationParameters" , saturationParametersDesc);
532533
533- // Conditionally add saturationParameters if setSaturationFlags is true
534- desc.ifValue (
535- edm::ParameterDescription<bool >(" setSaturationFlags" , true , true ),
536- false >> edm::EmptyGroupDescription () or true >> edm::ParameterDescription<edm::ParameterSetDescription>(
537- " saturationParameters" , saturationParametersDesc, true ));
538-
539- // Add digiTimeFromDB conditionally based on Subdetector being "HF"
540- desc.ifValue (edm::ParameterDescription<std::string>(" Subdetector" , " HF" , true ),
541- " HF" >> edm::ParameterDescription<bool >(" digiTimeFromDB" , false , true ) or
542- " HO" >> edm::EmptyGroupDescription () // Default case: do nothing
543- );
534+ desc.add <bool >(" setSaturationFlags" , true );
535+ desc.add <std::string>(" Subdetector" , " HF" );
536+ desc.add <bool >(" digiTimeFromDB" , false );
544537
545538 edm::ParameterSetDescription hfTimingTrustParametersDesc;
546539 hfTimingTrustParametersDesc.add <int >(" hfTimingTrustLevel1" , 1 );
547540 hfTimingTrustParametersDesc.add <int >(" hfTimingTrustLevel2" , 4 );
541+ desc.add <edm::ParameterSetDescription>(" hfTimingTrustParameters" , hfTimingTrustParametersDesc);
548542
549- // Conditionally add hfTimingTrustParameters if setTimingTrustFlags is true
550- desc.ifValue (edm::ParameterDescription<bool >(" setTimingTrustFlags" , true , true ),
551- false >> edm::EmptyGroupDescription () or
552- true >> edm::ParameterDescription<edm::ParameterSetDescription>(
553- " hfTimingTrustParameters" , hfTimingTrustParametersDesc, true ));
543+ desc.add <bool >(" setTimingTrustFlags" , true );
544+ desc.add <bool >(" setNoiseFlags" , true );
554545
555- {
556- edm::ParameterSetDescription digiStatDesc;
557- HcalHFStatusBitFromDigis::fillHFDigiTimeParamsDesc ( digiStatDesc);
546+ edm::ParameterSetDescription digiStatDesc;
547+ HcalHFStatusBitFromDigis::fillHFDigiTimeParamsDesc ( digiStatDesc) ;
548+ desc. add <edm::ParameterSetDescription>( " digistat " , digiStatDesc);
558549
559- edm::ParameterSetDescription hfInWindowStatDesc;
560- HcalHFStatusBitFromDigis::fillHFTimeInWindowParamsDesc (hfInWindowStatDesc);
550+ edm::ParameterSetDescription hfInWindowStatDesc;
551+ HcalHFStatusBitFromDigis::fillHFTimeInWindowParamsDesc (hfInWindowStatDesc);
552+ desc.add <edm::ParameterSetDescription>(" HFInWindowStat" , hfInWindowStatDesc);
561553
554+ {
562555 edm::ParameterSetDescription s9s1StatDesc;
563556 s9s1StatDesc.add <std::vector<double >>(" short_optimumSlope" ,
564557 {-99999 ,
@@ -597,7 +590,10 @@ void HcalHitReconstructor::fillDescriptions(edm::ConfigurationDescriptions& desc
597590 s9s1StatDesc.add <std::vector<double >>(" longETParams" , {0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 });
598591 s9s1StatDesc.add <int >(" HcalAcceptSeverityLevel" , 9 );
599592 s9s1StatDesc.add <bool >(" isS8S1" , false );
593+ desc.add <edm::ParameterSetDescription>(" S9S1stat" , s9s1StatDesc);
594+ }
600595
596+ {
601597 edm::ParameterSetDescription s8s1StatDesc;
602598 s8s1StatDesc.add <std::vector<double >>(
603599 " short_optimumSlope" , {0.30 , 0.10 , 0.10 , 0.10 , 0.10 , 0.10 , 0.10 , 0.10 , 0.10 , 0.10 , 0.10 , 0.10 , 0.10 });
@@ -611,7 +607,10 @@ void HcalHitReconstructor::fillDescriptions(edm::ConfigurationDescriptions& desc
611607 s8s1StatDesc.add <std::vector<double >>(" longETParams" , {0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 });
612608 s8s1StatDesc.add <int >(" HcalAcceptSeverityLevel" , 9 );
613609 s8s1StatDesc.add <bool >(" isS8S1" , true );
610+ desc.add <edm::ParameterSetDescription>(" S8S1stat" , s8s1StatDesc);
611+ }
614612
613+ {
615614 edm::ParameterSetDescription petStatDesc;
616615 petStatDesc.add <std::vector<double >>(" short_R" , {0.8 });
617616 petStatDesc.add <std::vector<double >>(
@@ -625,17 +624,7 @@ void HcalHitReconstructor::fillDescriptions(edm::ConfigurationDescriptions& desc
625624 petStatDesc.add <std::vector<double >>(" short_R_29" , {0.8 });
626625 petStatDesc.add <std::vector<double >>(" long_R_29" , {0.8 });
627626 petStatDesc.add <int >(" HcalAcceptSeverityLevel" , 9 );
628-
629- // Conditionally add S9S1stat if setNoiseFlags is true
630- desc.ifValue (
631- edm::ParameterDescription<bool >(" setNoiseFlags" , true , true ),
632- false >> edm::EmptyGroupDescription () or
633- true >>
634- (edm::ParameterDescription<edm::ParameterSetDescription>(" digistat" , digiStatDesc, true ) and
635- edm::ParameterDescription<edm::ParameterSetDescription>(" HFInWindowStat" , hfInWindowStatDesc, true ) and
636- edm::ParameterDescription<edm::ParameterSetDescription>(" S9S1stat" , s9s1StatDesc, true ) and
637- edm::ParameterDescription<edm::ParameterSetDescription>(" S8S1stat" , s8s1StatDesc, true ) and
638- edm::ParameterDescription<edm::ParameterSetDescription>(" PETstat" , petStatDesc, true )));
627+ desc.add <edm::ParameterSetDescription>(" PETstat" , petStatDesc);
639628 }
640629
641630 desc.add <std::string>(" dataOOTCorrectionName" , std::string (" " ));
0 commit comments