4 : stripClustersLabel(iConfig.getParameter<edm::InputTag>(
"stripClusters")),
5 pixelClustersLabel(iConfig.getParameter<edm::InputTag>(
"pixelClusters")),
6 stripModules(iConfig.getParameter<std::string>(
"stripModule")),
7 pixelModules(iConfig.getParameter<std::string>(
"pixelModule")),
8 stripVariables(iConfig.getParameter<std::string>(
"stripVariables")),
9 pixelVariables(iConfig.getParameter<std::string>(
"pixelVariables")),
10 doStrips(iConfig.getParameter<bool>(
"doStrips")),
11 doPixels(iConfig.getParameter<bool>(
"doPixels")),
12 verbose(iConfig.getParameter<bool>(
"verbose"))
16 produces<ClusterSummary>().setBranchAlias(
"SummaryCollection");
55 for(;itClusters!=stripClusters->end();++itClusters){
56 uint32_t
id = itClusters->
id();
64 int mod_pair = ModSelect.first;
65 int mod_pair2 = ModSelect.second;
74 int CurrModTmp = mod_pair2;
76 if ( CurrMod != CurrModTmp ) {
108 int CurrModPixel = -1;
114 for(;itClusters!=pixelClusters->end();++itClusters){
115 uint32_t
detid = itClusters->detId();
121 int mod_pair = ModSelectPixel.first;
122 int mod_pair2 = ModSelectPixel.second;
125 CurrModPixel = mod_pair2;
129 int CurrModTmp = mod_pair2;
130 if ( CurrModPixel != CurrModTmp ) {
132 CurrModPixel = CurrModTmp;
160 for(std::vector<int>::iterator it = _mod.begin(); it != _mod.end(); ++it) {
176 if (
verbose)
std::cout <<
"-------------------------------------------------------" << std::endl;
183 iEvent.
put( result );
201 std::cout <<
"+++++++++++++++++++++++++++++++ " << std::endl;
202 std::cout <<
"FOR STRIPS: " << std::endl;
220 std::cout <<
"FOR PIXELS: " << std::endl;
253 if ( j == std::string::npos ){
257 while (j != std::string::npos) {
258 vec.push_back(mod.substr(i, j-i));
260 j = mod.find(
',', j);
261 if (j == std::string::npos)
262 vec.push_back(mod.substr(i, mod.length( )));
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const_iterator begin() const
std::vector< ClusterSummary::ModuleSelection * > ModuleSelectionVect
edm::InputTag pixelClustersLabel
edm::InputTag stripClustersLabel
void SetGenericVariable(int variableLocation, int module, double value)
#define DEFINE_FWK_MODULE(type)
std::vector< std::string > v_userContent
void decodeInput(std::vector< std::string > &, std::string)
std::string pixelVariables
std::string stripVariables
data_type const * const_iterator
id_type id(size_t cell) const
ClusterSummaryProducer(const edm::ParameterSet &)
void SetUserContent(std::vector< std::string > Content) const
std::vector< std::string > v_pixelVariables
virtual void produce(edm::Event &, const edm::EventSetup &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< std::string > v_pixelModuleTypes
std::vector< int > GetUserModules() const
double GetGenericVariable(int variableLocation, int module) const
list mod
Load physics model.
const_iterator end() const
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< std::string > v_stripModuleTypes
void PrepairGenericVariable()
void SetUserModules(int value)
std::vector< std::string > v_stripVariables
const unsigned clusterSize() const
std::vector< ClusterSummary::ModuleSelection * > ModuleSelectionVectPixels
void ClearGenericVariable()