@@ -529,36 +529,29 @@ void HcalHitReconstructor::fillDescriptions(edm::ConfigurationDescriptions& desc
529
529
530
530
edm::ParameterSetDescription saturationParametersDesc;
531
531
saturationParametersDesc.add <int >(" maxADCvalue" , 127 );
532
+ desc.add <edm::ParameterSetDescription>(" saturationParameters" , saturationParametersDesc);
532
533
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 );
544
537
545
538
edm::ParameterSetDescription hfTimingTrustParametersDesc;
546
539
hfTimingTrustParametersDesc.add <int >(" hfTimingTrustLevel1" , 1 );
547
540
hfTimingTrustParametersDesc.add <int >(" hfTimingTrustLevel2" , 4 );
541
+ desc.add <edm::ParameterSetDescription>(" hfTimingTrustParameters" , hfTimingTrustParametersDesc);
548
542
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 );
554
545
555
- {
556
- edm::ParameterSetDescription digiStatDesc;
557
- HcalHFStatusBitFromDigis::fillHFDigiTimeParamsDesc ( digiStatDesc);
546
+ edm::ParameterSetDescription digiStatDesc;
547
+ HcalHFStatusBitFromDigis::fillHFDigiTimeParamsDesc ( digiStatDesc) ;
548
+ desc. add <edm::ParameterSetDescription>( " digistat " , digiStatDesc);
558
549
559
- edm::ParameterSetDescription hfInWindowStatDesc;
560
- HcalHFStatusBitFromDigis::fillHFTimeInWindowParamsDesc (hfInWindowStatDesc);
550
+ edm::ParameterSetDescription hfInWindowStatDesc;
551
+ HcalHFStatusBitFromDigis::fillHFTimeInWindowParamsDesc (hfInWindowStatDesc);
552
+ desc.add <edm::ParameterSetDescription>(" HFInWindowStat" , hfInWindowStatDesc);
561
553
554
+ {
562
555
edm::ParameterSetDescription s9s1StatDesc;
563
556
s9s1StatDesc.add <std::vector<double >>(" short_optimumSlope" ,
564
557
{-99999 ,
@@ -597,7 +590,10 @@ void HcalHitReconstructor::fillDescriptions(edm::ConfigurationDescriptions& desc
597
590
s9s1StatDesc.add <std::vector<double >>(" longETParams" , {0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 });
598
591
s9s1StatDesc.add <int >(" HcalAcceptSeverityLevel" , 9 );
599
592
s9s1StatDesc.add <bool >(" isS8S1" , false );
593
+ desc.add <edm::ParameterSetDescription>(" S9S1stat" , s9s1StatDesc);
594
+ }
600
595
596
+ {
601
597
edm::ParameterSetDescription s8s1StatDesc;
602
598
s8s1StatDesc.add <std::vector<double >>(
603
599
" 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
611
607
s8s1StatDesc.add <std::vector<double >>(" longETParams" , {0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 });
612
608
s8s1StatDesc.add <int >(" HcalAcceptSeverityLevel" , 9 );
613
609
s8s1StatDesc.add <bool >(" isS8S1" , true );
610
+ desc.add <edm::ParameterSetDescription>(" S8S1stat" , s8s1StatDesc);
611
+ }
614
612
613
+ {
615
614
edm::ParameterSetDescription petStatDesc;
616
615
petStatDesc.add <std::vector<double >>(" short_R" , {0.8 });
617
616
petStatDesc.add <std::vector<double >>(
@@ -625,17 +624,7 @@ void HcalHitReconstructor::fillDescriptions(edm::ConfigurationDescriptions& desc
625
624
petStatDesc.add <std::vector<double >>(" short_R_29" , {0.8 });
626
625
petStatDesc.add <std::vector<double >>(" long_R_29" , {0.8 });
627
626
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);
639
628
}
640
629
641
630
desc.add <std::string>(" dataOOTCorrectionName" , std::string (" " ));
0 commit comments