File indexing completed on 2024-04-06 12:11:27
0001
0002
0003
0004
0005
0006
0007
0008 #include "DataFormats/EcalDetId/interface/EcalSubdetector.h"
0009 #include "Fireworks/Calo/plugins/FWCaloRecHitDigitSetProxyBuilder.h"
0010 #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
0011
0012 class FWEcalRecHitProxyBuilder : public FWCaloRecHitDigitSetProxyBuilder {
0013 public:
0014 FWEcalRecHitProxyBuilder() {}
0015 ~FWEcalRecHitProxyBuilder() override {}
0016
0017 void viewContextBoxScale(
0018 const float* corners, float scale, bool plotEt, std::vector<float>& scaledCorners, const CaloRecHit*) override;
0019
0020 REGISTER_PROXYBUILDER_METHODS();
0021
0022 FWEcalRecHitProxyBuilder(const FWEcalRecHitProxyBuilder&) = delete;
0023 const FWEcalRecHitProxyBuilder& operator=(const FWEcalRecHitProxyBuilder&) = delete;
0024 };
0025
0026 void FWEcalRecHitProxyBuilder::viewContextBoxScale(
0027 const float* corners, float scale, bool plotEt, std::vector<float>& scaledCorners, const CaloRecHit* hit) {
0028 invertBox((EcalSubdetector(hit->detid().subdetId()) == EcalPreshower) && (corners[2] < 0));
0029 FWCaloRecHitDigitSetProxyBuilder::viewContextBoxScale(corners, scale, plotEt, scaledCorners, hit);
0030 }
0031
0032 REGISTER_FWPROXYBUILDER(FWEcalRecHitProxyBuilder, EcalRecHitCollection, "Ecal RecHit", FWViewType::kISpyBit);
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072