26 dbe_->setCurrentFolder(
"RPCDigisV/RPCDigis");
28 xyview = dbe_->book2D(
"X_Vs_Y_View",
"X_Vs_Y_View",1000, -760., 760., 1000, -760., 760.);
30 xyvDplu1 = dbe_->book2D(
"Dplu1_XvsY",
"Dplu1_XvsY",1000, -760., 760., 1000, -760., 760.);
31 xyvDplu2 = dbe_->book2D(
"Dplu2_XvsY",
"Dplu2_XvsY",1000, -760., 760., 1000, -760., 760.);
32 xyvDplu3 = dbe_->book2D(
"Dplu3_XvsY",
"Dplu3_XvsY",1000, -760., 760., 1000, -760., 760.);
33 xyvDmin1 = dbe_->book2D(
"Dmin1_XvsY",
"Dmin1_XvsY",1000, -760., 760., 1000, -760., 760.);
34 xyvDmin2 = dbe_->book2D(
"Dmin2_XvsY",
"Dmin2_XvsY",1000, -760., 760., 1000, -760., 760.);
35 xyvDmin3 = dbe_->book2D(
"Dmin3_XvsY",
"Dmin3_XvsY",1000, -760., 760., 1000, -760., 760.);
37 rzview = dbe_->book2D(
"R_Vs_Z_View",
"R_Vs_Z_View",1000, -1100., 1100.,1000,0., 800.);
38 Res = dbe_->book1D(
"Digi_SimHit_difference",
"Digi_SimHit_difference", 300, -8, 8);
39 ResWmin2 = dbe_->book1D(
"W_Min2_Residuals",
"W_Min2_Residuals", 300, -8, 8);
40 ResWmin1 = dbe_->book1D(
"W_Min1_Residuals",
"W_Min1_Residuals", 300, -8, 8);
41 ResWzer0 = dbe_->book1D(
"W_Zer0_Residuals",
"W_Zer0_Residuals", 300, -8, 8);
42 ResWplu1 = dbe_->book1D(
"W_Plu1_Residuals",
"W_Plu1_Residuals", 300, -8, 8);
43 ResWplu2 = dbe_->book1D(
"W_Plu2_Residuals",
"W_Plu2_Residuals", 300, -8, 8);
45 BxDist = dbe_->book1D(
"Bunch_Crossing",
"Bunch_Crossing", 20, -10., 10.);
46 StripProf = dbe_->book1D(
"Strip_Profile",
"Strip_Profile", 100, 0, 100);
48 ResDmin1 = dbe_->book1D(
"Disk_Min1_Residuals",
"Disk_Min1_Residuals", 300, -8, 8);
49 ResDmin2 = dbe_->book1D(
"Disk_Min2_Residuals",
"Disk_Min2_Residuals", 300, -8, 8);
50 ResDmin3 = dbe_->book1D(
"Disk_Min3_Residuals",
"Disk_Min3_Residuals", 300, -8, 8);
51 ResDplu1 = dbe_->book1D(
"Disk_Plu1_Residuals",
"Disk_Plu1_Residuals", 300, -8, 8);
52 ResDplu2 = dbe_->book1D(
"Disk_Plu2_Residuals",
"Disk_Plu2_Residuals", 300, -8, 8);
53 ResDplu3 = dbe_->book1D(
"Disk_Plu3_Residuals",
"Disk_Plu3_Residuals", 300, -8, 8);
76 event.getByLabel(
"g4SimHits",
"MuonRPCHits", simHit);
82 PSimHitContainer::const_iterator simIt;
85 std::map<RPCDetId, std::vector<double> > allsims;
87 for (simIt = simHit->begin(); simIt != simHit->end(); simIt++) {
89 const RPCRoll* soll =
dynamic_cast<const RPCRoll*
>( rpcGeom->roll(Rsid));
90 int ptype = simIt->particleType();
93 if (ptype == 13 || ptype == -13) {
94 std::vector<double> buff;
95 if (allsims.find(Rsid) != allsims.end() ){
98 buff.push_back(simIt->localPosition().x());
108 double sim_x = p.
x();
109 double sim_y = p.
y();
115 else if (Rsid.
region() == (+1)){
123 else if (Rsid.
region() == (-1)){
139 for (detUnitIt=rpcDigis->begin(); detUnitIt!=rpcDigis->end();++detUnitIt){
140 const RPCDetId Rsid = (*detUnitIt).first;
141 const RPCRoll* roll =
dynamic_cast<const RPCRoll*
>( rpcGeom->roll(Rsid));
143 std::vector<double> sims;
144 if (allsims.find(Rsid) != allsims.end() ){
145 sims = allsims[Rsid];
149 digiIt != range.second; ++digiIt){
158 if (sims.size() == 1 && ndigi == 1){
159 double dis = roll->
centreOfStrip(range.first->strip()).
x()-sims[0];
163 if (Rsid.
ring() == -2)
165 else if (Rsid.
ring() == -1)
167 else if (Rsid.
ring() == 0)
169 else if (Rsid.
ring() == 1)
171 else if (Rsid.
ring() == 2)
174 else if (Rsid.
region() == (+1)){
182 else if (Rsid.
region() == (-1)){
T getUntrackedParameter(std::string const &, T const &) const
LocalPoint centreOfStrip(int strip) const
MonitorElement * xyvDmin2
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
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")
MonitorElement * ResWplu2
RPCDigiValid(const edm::ParameterSet &ps)
MonitorElement * xyvDplu3
MonitorElement * StripProf
void analyze(const edm::Event &e, const edm::EventSetup &c)
MonitorElement * ResWzer0
MonitorElement * ResDmin3
MonitorElement * ResWmin1
MonitorElement * ResDplu3
MonitorElement * ResDmin1
MonitorElement * ResWplu1
MonitorElement * ResWmin2
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
MonitorElement * ResDplu2
MonitorElement * ResDmin2
std::vector< DigiType >::const_iterator const_iterator
std::pair< const_iterator, const_iterator > Range
MonitorElement * xyvDplu1
MonitorElement * xyvDmin1
MonitorElement * ResDplu1
MonitorElement * xyvDmin3
MonitorElement * xyvDplu2
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.