Skip to content

Commit

Permalink
Merge pull request #45305 from jhgoh/UpdateRPCDigisV_140X
Browse files Browse the repository at this point in the history
[14.0.X backport] RPCDigis validaiton module update
  • Loading branch information
cmsbuild authored Jul 2, 2024
2 parents 0dd2923 + dd83f5b commit fdf579d
Show file tree
Hide file tree
Showing 2 changed files with 238 additions and 247 deletions.
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

0 comments on commit fdf579d

Please sign in to comment.