53 rootFile_ = TFile::Open(outputFile_.c_str(),
"RECREATE");
77 h1_esE_x =
new TH1F(
"esE_x",
" ES cluster Energy in X-plane",20, 0, 0.03);
78 h1_esE_y =
new TH1F(
"esE_y",
" ES cluster Energy in Y-plane",20, 0, 0.03);
79 h1_esEta_x =
new TH1F(
"esEta_x",
" ES cluster Eta in X-plane",12, 1.5, 2.7);
80 h1_esEta_y =
new TH1F(
"esEta_y",
" ES cluster Eta in Y-plane",12, 1.5, 2.7);
81 h1_esPhi_x =
new TH1F(
"esPhi_x",
" ES cluster Phi in X-plane",20, 0, 6.28);
82 h1_esPhi_y =
new TH1F(
"esPhi_y",
" ES cluster Phi in Y-plane",20, 0, 6.28);
83 h1_esNhits_x =
new TH1F(
"esNhits_x",
" ES cluster Nhits in X-plane",10, 0, 10);
84 h1_esNhits_y =
new TH1F(
"esNhits_y",
" ES cluster Nhits in Y-plane",10, 0, 10);
86 h1_nclu_x =
new TH1F(
"esNclu_x",
" number of ES clusters (for one SC) in X-plane",20, 0, 80);
87 h1_nclu_y =
new TH1F(
"esNclu_y",
" number of ES clusters (for one SC) in Y-plane",20, 0, 80);
110 for(reco::SuperClusterCollection::const_iterator aClus = islandEndcapSuperClusters1->begin();
111 aClus != islandEndcapSuperClusters1->end(); aClus++) {
122 for(reco::SuperClusterCollection::const_iterator aClus = islandEndcapSuperClusters2->begin();
123 aClus != islandEndcapSuperClusters2->end(); aClus++) {
144 for(reco::PreshowerClusterCollection::const_iterator esClus = clustersX->begin();
145 esClus !=clustersX->end(); esClus++) {
146 e1 += esClus->energy();
154 for(reco::PreshowerClusterCollection::const_iterator esClus = clustersY->begin();
155 esClus !=clustersY->end(); esClus++) {
156 e2 += esClus->energy();
164 if(e1+e2 > 1.0
e-10) {
std::string preshClusterProducer_
TH1F * h1_islandEESCEnergy1
T getParameter(std::string const &) const
std::string islandEndcapSuperClusterProducer2_
std::string preshClusterCollectionX_
std::string preshClusterCollectionY_
std::string islandEndcapSuperClusterCollection2_
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
std::vector< PreshowerCluster > PreshowerClusterCollection
collection of PreshowerCluster objects
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::string islandEndcapSuperClusterCollection1_
TH1F * h1_islandEESCEnergy2
PreshowerAnalyzer(const edm::ParameterSet &)
std::string islandEndcapSuperClusterProducer1_
virtual void analyze(const edm::Event &, const edm::EventSetup &)