Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0.X backport] RPCDigis validaiton module update #45305

Merged
merged 12 commits into from
Jul 2, 2024
82 changes: 29 additions & 53 deletions Validation/MuonRPCDigis/interface/RPCDigiValid.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,70 +20,46 @@
class RPCDigiValid : public DQMEDAnalyzer {
public:
RPCDigiValid(const edm::ParameterSet &ps);
~RPCDigiValid() override;
~RPCDigiValid() override = default;

protected:
void analyze(const edm::Event &e, const edm::EventSetup &c) override;
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;

private:
MonitorElement *xyview;
MonitorElement *rzview;
MonitorElement *Res;
MonitorElement *ResWmin2;
MonitorElement *ResWmin1;
MonitorElement *ResWzer0;
MonitorElement *ResWplu1;
MonitorElement *ResWplu2;
MonitorElement *BxDist;
MonitorElement *StripProf;

// barrel layers residuals
MonitorElement *ResLayer1_barrel;
MonitorElement *ResLayer2_barrel;
MonitorElement *ResLayer3_barrel;
MonitorElement *ResLayer4_barrel;
MonitorElement *ResLayer5_barrel;
MonitorElement *ResLayer6_barrel;

// members for EndCap's disks:
MonitorElement *ResDmin1;
MonitorElement *ResDmin2;
MonitorElement *ResDmin3;
MonitorElement *ResDplu1;
MonitorElement *ResDplu2;
MonitorElement *ResDplu3;

// endcap layters residuals
MonitorElement *Res_Endcap1_Ring2_A;
MonitorElement *Res_Endcap1_Ring2_B;
MonitorElement *Res_Endcap1_Ring2_C;

MonitorElement *Res_Endcap23_Ring2_A;
MonitorElement *Res_Endcap23_Ring2_B;
MonitorElement *Res_Endcap23_Ring2_C;

MonitorElement *Res_Endcap123_Ring3_A;
MonitorElement *Res_Endcap123_Ring3_B;
MonitorElement *Res_Endcap123_Ring3_C;

// 4 endcap
MonitorElement *ResDmin4;
MonitorElement *ResDplu4;
MonitorElement *BxDisc_4Plus;
MonitorElement *BxDisc_4Min;
MonitorElement *xyvDplu4;
MonitorElement *xyvDmin4;
// RZ and XY views
MonitorElement *hRZ_;

MonitorElement *hXY_Barrel_;
std::map<int, MonitorElement *> hXY_Endcap_; // X-Y plots for Endcap, by station
std::map<int, MonitorElement *> hZPhi_; // R-phi plots for Barrel, by layers

// Strip profile
MonitorElement *hStripProf_;
MonitorElement *hStripProf_RB12_, *hStripProf_RB34_;
MonitorElement *hStripProf_Endcap_, *hStripProf_IRPC_;

// Bunch crossing distributions
MonitorElement *hBxDist_;
MonitorElement *hBxDisc_4Plus_;
MonitorElement *hBxDisc_4Min_;

// Timing information
MonitorElement *hDigiTimeAll, *hDigiTime, *hDigiTimeIRPC, *hDigiTimeNoIRPC;
MonitorElement *hDigiTimeAll_, *hDigiTime_, *hDigiTimeIRPC_, *hDigiTimeNoIRPC_;

// Multiplicity plots
MonitorElement *hNSimHitPerRoll_, *hNDigiPerRoll_;

std::string outputFile_;
std::string digiLabel;
// Residual plots
MonitorElement *hRes_;
std::map<int, MonitorElement *> hResBarrelLayers_;
std::map<int, MonitorElement *> hResBarrelWheels_;
std::map<int, MonitorElement *> hResEndcapDisks_;
std::map<int, MonitorElement *> hResEndcapRings_;

// Tokens for accessing run data. Used for passing to edm::Event. - stanislav
edm::EDGetTokenT<edm::PSimHitContainer> simHitToken;
edm::EDGetTokenT<RPCDigiCollection> rpcDigiToken;
edm::EDGetTokenT<edm::PSimHitContainer> simHitToken_;
edm::EDGetTokenT<RPCDigiCollection> rpcDigiToken_;

edm::ESGetToken<RPCGeometry, MuonGeometryRecord> rpcGeomToken_;
};
Expand Down
Loading