67 hoCalibVariableCollectionTag(iConfig.getParameter<edm::
InputTag>(
"hoCalibVariableCollectionTag")) {
109 if(!HOCalib.isValid()){
110 LogDebug(
"") <<
"DQMHOAlCaRecoStream:: Error! can't get HOCalib product!" << std::endl;
117 if ((*HOCalib).size() >0 ) {
118 for (HOCalibVariableCollection::const_iterator hoC=(*HOCalib).begin(); hoC!=(*HOCalib).end(); hoC++){
126 if ((*hoC).isect <0)
continue;
127 if (fabs((*hoC).trkth-acos(-1.)/2)<0.000001)
continue;
128 int ieta = int((
std::abs((*hoC).isect)%10000)/100.)-30;
141 double energy = (*hoC).hosig[4];
142 double pedval = (*hoC).hocro;
144 if (ieta >=-15 && ieta <=-11) {iring = -2;}
145 else if (ieta >=-10 && ieta <=-5) {iring = -1;}
146 else if (ieta >= 5 && ieta <= 10) {iring = 1;}
147 else if (ieta >= 11 && ieta <= 15) {iring = 2;}
152 for (
int k=0;
k<9;
k++) {
177 hMuonPhi =
dbe_->
book1D(
"hMuonPhi",
"Azimuthal angle of muon", 24, -acos(-1), acos(-1));
189 for (
int i=0;
i<5;
i++) {
190 sprintf(name,
"hSigRing_%i",
i-2);
191 sprintf(title,
"HO signal in Ring_%i",
i-2);
195 sprintf(name,
"hPedRing_%i",
i-2);
196 sprintf(title,
"HO Pedestal in Ring_%i",
i-2);
219 for (
int i=-1;
i<=1;
i++) {
220 for (
int j=-1;
j<=1;
j++) {
223 sprintf(title,
"hSignal3x3_deta%i_dphi%i",
i,
j);
248 for (
int k=0;
k<5;
k++) {
253 for (
int k=0;
k<9;
k++) {
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * hMuonMultipl
MonitorElement * hPedRing[5]
MonitorElement * hMuonEta
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
DQMHOAlCaRecoStream(const edm::ParameterSet &)
MonitorElement * hSigRing[5]
const T & max(const T &a, const T &b)
Tan< T >::type tan(const T &t)
edm::InputTag hoCalibVariableCollectionTag
std::string theRootFileName
MonitorElement * hSignal3x3[9]
MonitorElement * hMuonMom
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
MonitorElement * hMuonPhi
double m_highRadPosInMuch
TH1F * getTH1F(void) const
virtual void analyze(const edm::Event &, const edm::EventSetup &)
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
Power< A, B >::type pow(const A &a, const B &b)
MonitorElement * hDirCosine
void setCurrentFolder(const std::string &fullpath)