107 if(!HOCalib.isValid()){
108 LogDebug(
"") <<
"DQMHOAlCaRecoStream:: Error! can't get HOCalib product!" << std::endl;
115 if ((*HOCalib).size() >0 ) {
116 for (HOCalibVariableCollection::const_iterator hoC=(*HOCalib).begin(); hoC!=(*HOCalib).end(); hoC++){
124 if ((*hoC).isect <0)
continue;
125 if (fabs((*hoC).trkth-acos(-1.)/2)<0.000001)
continue;
126 int ieta = int((
std::abs((*hoC).isect)%10000)/100.)-30;
139 double energy = (*hoC).hosig[4];
140 double pedval = (*hoC).hocro;
142 if (ieta >=-15 && ieta <=-11) {iring = -2;}
143 else if (ieta >=-10 && ieta <=-5) {iring = -1;}
144 else if (ieta >= 5 && ieta <= 10) {iring = 1;}
145 else if (ieta >= 11 && ieta <= 15) {iring = 2;}
150 for (
int k=0;
k<9;
k++) {
175 hMuonPhi =
dbe_->
book1D(
"hMuonPhi",
"Azimuthal angle of muon", 24, -acos(-1), acos(-1));
187 for (
int i=0;
i<5;
i++) {
188 sprintf(name,
"hSigRing_%i",
i-2);
189 sprintf(title,
"HO signal in Ring_%i",
i-2);
193 sprintf(name,
"hPedRing_%i",
i-2);
194 sprintf(title,
"HO Pedestal in Ring_%i",
i-2);
217 for (
int i=-1;
i<=1;
i++) {
218 for (
int j=-1;
j<=1;
j++) {
221 sprintf(title,
"hSignal3x3_deta%i_dphi%i",
i,
j);
246 for (
int k=0;
k<5;
k++) {
251 for (
int k=0;
k<9;
k++) {
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< HOCalibVariableCollection > hoCalibVariableCollectionTag
MonitorElement * hMuonMultipl
MonitorElement * hPedRing[5]
MonitorElement * hMuonEta
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
DQMHOAlCaRecoStream(const edm::ParameterSet &)
MonitorElement * hSigRing[5]
Tan< T >::type tan(const T &t)
Abs< T >::type abs(const T &t)
std::string theRootFileName
MonitorElement * hSignal3x3[9]
MonitorElement * hMuonMom
MonitorElement * hMuonPhi
double m_highRadPosInMuch
TH1F * getTH1F(void) const
std::vector< HOCalibVariables > HOCalibVariableCollection
collection of HOcalibration variabale
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, const uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE", const bool resetMEsAfterWriting=false)
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)