181 std::vector<uint32_t> detIdV;
184 for(uint32_t
i=0;
i < detIdV.size(); ++
i){
187 pedestals.resize((pedestalsRange.second- pedestalsRange.first)*8/10);
199 for (; itCMDetSetV != moduleCM->end(); ++itCMDetSetV){
201 for(;itCM != itCMDetSetV->
end(); ++itCM)
h1APVCM_->Fill(itCM->adc());
240 uint32_t NBabAPVs = moduleRawDigi->size();
241 std::cout<<
"Number of module with HIP in this event: " << NBabAPVs << std::endl;
244 for (; itRawDigis != moduleRawDigi->end(); ++itRawDigis) {
246 uint32_t detId = itRawDigis->id;
250 if(itDSBaseline->id != detId){
251 std::cout <<
"Collections out of Synch. Something of fishy is going on ;-)" << std::endl;
258 uint32_t
event = e.
id().
event();
265 bool restAPV[6] = {0,0,0,0,0,0};
266 int strip =0, totADC=0;
267 int minAPVRes = 7, maxAPVRes = -1;
268 for(;itRaw != itRawDigis->
end(); ++itRaw, ++
strip){
269 float adc = itRaw->adc();
277 if(APV>maxAPVRes) maxAPVRes =
APV;
278 if(APV<minAPVRes) minAPVRes =
APV;
284 float minx = -0.5, maxx=767.5;
286 minx = minAPVRes * 128 -0.5;
287 maxx = maxAPVRes * 128 + 127.5;
291 sprintf(detIds,
"%ul", detId);
292 sprintf(evs,
"%ul",
event);
293 sprintf(
runs,
"%ul", run);
294 char* dHistoName = Form(
"Id:%s_run:%s_ev:%s",detIds,
runs, evs);
298 h1Baseline_ = sdBaseline_.make<TH1F>(dHistoName,dHistoName,
bins, minx, maxx);
309 h1Clusters_ = sdClusters_.make<TH1F>(dHistoName,dHistoName,
bins, minx, maxx);
326 std::vector<int16_t> ProcessedRawDigis(itRawDigis->size());
331 std::vector<int16_t>::const_iterator itProcessedRawDigis;
334 for(itProcessedRawDigis = ProcessedRawDigis.begin();itProcessedRawDigis != ProcessedRawDigis.end(); ++itProcessedRawDigis){
335 if(restAPV[strip/128]){
336 float adc = *itProcessedRawDigis;
349 for ( ; itClusters != clusters->
end(); ++itClusters ){
351 if(itClusters->
id() == detId){
352 int firststrip = clus->firstStrip();
355 for( std::vector<uint8_t>::const_iterator itAmpl = clus->amplitudes().begin(); itAmpl != clus->amplitudes().end(); ++itAmpl){
int adc(sample_type sample)
get the ADC sample (12 bits)
EventNumber_t event() const
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const_iterator begin() const
data_type const * const_iterator
std::pair< ContainerIterator, ContainerIterator > Range
edm::InputTag srcProcessedRawDigi_
id_type id(size_t cell) const
const_iterator end() const
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
edm::Service< TFileService > fs_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
iterator end()
Return the off-the-end iterator.
TH1F * h1ProcessedRawDigis_
edm::InputTag srcBaseline_
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
std::vector< int > pedestals
uint16_t nModuletoDisplay_
iterator begin()
Return an iterator to the first DetSet.
edm::ESHandle< SiStripPedestals > pedestalsHandle
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator
std::auto_ptr< SiStripPedestalsSubtractor > subtractorPed_