Skip to content

Commit

Permalink
reduced number and size of histos
Browse files Browse the repository at this point in the history
  • Loading branch information
Roumyana Mileva Hadjiiska committed Jun 19, 2013
1 parent 71ef2c4 commit c3f6350
Show file tree
Hide file tree
Showing 2 changed files with 331 additions and 487 deletions.
202 changes: 88 additions & 114 deletions Validation/MuonRPCDigis/interface/RPCDigiValid.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,91 +24,81 @@

#include "CommonTools/UtilAlgos/interface/TFileService.h"
#include "TH1F.h"

class RPCDigiValid: public edm::EDAnalyzer {

public:
class RPCDigiValid: public edm::EDAnalyzer
{

public:

RPCDigiValid(const edm::ParameterSet& ps);
~RPCDigiValid();

protected:
void analyze(const edm::Event& e, const edm::EventSetup& c);
void beginJob();
void endJob(void);

private:

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

MonitorElement* BxDist_whMin2;
MonitorElement* BxDist_whMin1;
MonitorElement* BxDist_wh0;
MonitorElement* BxDist_wh0_st1;
MonitorElement* BxDist_whPlu1;
MonitorElement* BxDist_whPlu2;

//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;

//
MonitorElement* xyvDplu1;
MonitorElement* xyvDplu2;
MonitorElement* xyvDplu3;

MonitorElement* xyvDmin1;
MonitorElement* xyvDmin2;
MonitorElement* xyvDmin3;

//new member for cls
MonitorElement* noiseCLS;
MonitorElement* noiseCLSBarrel;
MonitorElement* noiseCLSEndcaps;

MonitorElement* clsBarrel;
MonitorElement* clsLayer1;
MonitorElement* clsLayer2;
MonitorElement* clsLayer3;
MonitorElement* clsLayer4;
MonitorElement* clsLayer5;
MonitorElement* clsLayer6;

//CLS Validation
~RPCDigiValid();

protected:
void analyze(const edm::Event& e, const edm::EventSetup& c);
void beginJob();
void endJob(void);

private:

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

MonitorElement* BxDist_whMin2;
MonitorElement* BxDist_whMin1;
MonitorElement* BxDist_wh0;
MonitorElement* BxDist_wh0_st1;
MonitorElement* BxDist_whPlu1;
MonitorElement* BxDist_whPlu2;

//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;

//new member for cls
MonitorElement* noiseCLS;

MonitorElement* clsBarrel;
MonitorElement* clsLayer1;
MonitorElement* clsLayer2;
MonitorElement* clsLayer3;
MonitorElement* clsLayer4;
MonitorElement* clsLayer5;
MonitorElement* clsLayer6;

//CLS Validation
//ring2, disc +- 1
MonitorElement* CLS_Endcap_1_Ring2_A;
MonitorElement* CLS_Endcap_1_Ring2_B;
Expand All @@ -123,38 +113,22 @@ class RPCDigiValid: public edm::EDAnalyzer {
MonitorElement* CLS_Endcap_123_Ring3_A;
MonitorElement* CLS_Endcap_123_Ring3_B;
MonitorElement* CLS_Endcap_123_Ring3_C;
//CLS Validation

//4 endcap

MonitorElement *ResDmin4; //new histo
MonitorElement *ResDplu4; //new histo
MonitorElement *BxDisc_4Plus; //new histo
MonitorElement *BxDisc_4Min; //new histo
MonitorElement *xyvDplu4; //new histo
MonitorElement *xyvDmin4; //new histo
MonitorElement *CLS_Endcap_4; //new histo


//new members for the noise
//std::map<RPCDetId, int> mapRollCls;
std::map<RPCDetId, double> mapRollCls;
std::map<RPCDetId, double> mapRollArea;
std::map<RPCDetId, double> mapRollStripArea;
std::map<RPCDetId, int> mapRollFakeCount;
std::map<RPCDetId, int> mapRollTruCount;
std::map<RPCDetId, std::string> mapRollName;
std::map<RPCDetId, std::map<int, double>* > mapRollStripRate;
std::map<RPCDetId, std::map<int, double>* > mapRollNoisyStripRate;
int countEvent;


DQMStore* dbe_;
std::string outputFile_;
std::string digiLabel;
//CLS Validation

//new members for the noise
std::map<RPCDetId, double> mapRollCls;
std::map<RPCDetId, double> mapRollArea;
std::map<RPCDetId, double> mapRollStripArea;
std::map<RPCDetId, int> mapRollFakeCount;
std::map<RPCDetId, int> mapRollTruCount;
std::map<RPCDetId, std::string> mapRollName;
std::map<RPCDetId, std::map<int, double>*> mapRollStripRate;
std::map<RPCDetId, std::map<int, double>*> mapRollNoisyStripRate;
int countEvent;

DQMStore* dbe_;
std::string outputFile_;
std::string digiLabel;
};




#endif
Loading

0 comments on commit c3f6350

Please sign in to comment.