Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74599
b: "refs/heads/CMSSW_7_1_X"
c: cc7dce3
h: "refs/heads/CMSSW_7_1_X"
i:
  74597: efd7bfe
  74595: f74466a
  74591: 12f2af8
v: v3
  • Loading branch information
Alessio Bonato committed Oct 2, 2009
1 parent b9765b8 commit 574c778
Show file tree
Hide file tree
Showing 7 changed files with 125 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
refs/heads/gh-pages: 09c786f70121f131b3715aaf3464996502bbeb7e
"refs/heads/CMSSW_7_1_X": 0a569885a3a7bd4e3669c901a8cd737f6fb532a4
"refs/heads/CMSSW_7_1_X": cc7dce3b11b9ea734dbe3de4e420925026020526
9 changes: 9 additions & 0 deletions trunk/DataFormats/Alignment/BuildFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<use name=DataFormats/Common>
<use name=DataFormats/TrackingRecHit>
<use name=DataFormats/SiStripDetId>
<use name=FWCore/Utilities>
<use name=rootrflx>

<export>
<lib name=DataFormatsAlignment>
</export>
14 changes: 14 additions & 0 deletions trunk/DataFormats/Alignment/interface/AliClusterValueMap.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#ifndef CommonAlignment_AliHitAssoMapV_h
#define CommonAlignment_AliHitAssoMapV_h

#include "DataFormats/Common/interface/AssociationVector.h"
#include "DataFormats/Common/interface/ValueMap.h"
#include <vector>
#include "DataFormats/Alignment/interface/AlignmentClusterFlag.h"



typedef edm::ValueMap<AlignmentClusterFlag > AliClusterValueMap;
typedef edm::ValueMap<int > AliTrackTakenClusterValueMap;

#endif
38 changes: 38 additions & 0 deletions trunk/DataFormats/Alignment/interface/AlignmentClusterFlag.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#ifndef DataFormats_LaserAlignment_AlignmentClusterFlag_h
#define DataFormats_LaserAlignment_AlignmentClusterFlag_h

#include "DataFormats/DetId/interface/DetId.h"

/*
* Class that defines a flag for each cluster used by the alignment
* The flag contains informations used to categorise and (eventually)
* decide whether to use the hit for the final alignment. This informations
* are bit-packed into a 8-bit word.
*
* Original author: A. Bonato
*/

class AlignmentClusterFlag
{

public:
AlignmentClusterFlag();
AlignmentClusterFlag( const DetId & id);
AlignmentClusterFlag(const AlignmentClusterFlag & ahf);


~AlignmentClusterFlag();

bool isTaken() const;
bool isOverlap() const;
void SetTakenFlag();
void SetOverlapFlag();
void SetDetId(const DetId & newdetid);
DetId detId() const {return detId_;}
char hitFlag() const {return hitflag_;}

private:
DetId detId_;
char hitflag_;
};
#endif
39 changes: 39 additions & 0 deletions trunk/DataFormats/Alignment/src/AlignmentClusterFlag.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#include "DataFormats/Alignment/interface/AlignmentClusterFlag.h"


AlignmentClusterFlag::AlignmentClusterFlag(){
detId_=0;
hitflag_=0;
}

AlignmentClusterFlag::AlignmentClusterFlag(const DetId & id){
detId_ = id;
hitflag_ = 0;
}

AlignmentClusterFlag::AlignmentClusterFlag(const AlignmentClusterFlag & acf){detId_ = acf.detId_;hitflag_ = acf.hitflag_;}

AlignmentClusterFlag::~AlignmentClusterFlag(){
//
}

bool AlignmentClusterFlag::isTaken() const{
return ( (hitflag_ & (1<<0)) != 0);
}


bool AlignmentClusterFlag::isOverlap() const{
return ( (hitflag_ & (1<<1)) != 0);
}

void AlignmentClusterFlag::SetTakenFlag(){
hitflag_ |= (1<<0);
}

void AlignmentClusterFlag::SetOverlapFlag(){
hitflag_ |= (1<<1);
}

void AlignmentClusterFlag::SetDetId(const DetId & newdetid){
detId_=newdetid;
}
17 changes: 17 additions & 0 deletions trunk/DataFormats/Alignment/src/classes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "DataFormats/Common/interface/Wrapper.h"
#include "DataFormats/Common/interface/AssociationVector.h"
#include "DataFormats/Alignment/interface/AlignmentClusterFlag.h"
#include "DataFormats/Alignment/interface/AliClusterValueMap.h"
#include <vector>
#include <map>

namespace {
namespace {
AlignmentClusterFlag ahf;
edm::Wrapper<AlignmentClusterFlag> wahf;
AliClusterValueMap ahvm1;
edm::Wrapper<AliClusterValueMap> wahvm1;
// AliTrackTakenClusterValueMap atthvm1;
// edm::Wrapper<AliTrackTakenClusterValueMap> watthvm1;
}
}
7 changes: 7 additions & 0 deletions trunk/DataFormats/Alignment/src/classes_def.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<lcgdict>
<class name="AliClusterValueMap"/>
<class name="edm::ValueMap<AlignmentClusterFlag >"/>
<class name="edm::Wrapper< edm::ValueMap<AlignmentClusterFlag > >"/>
<class name="AlignmentClusterFlag"/>
<class name="std::vector<AlignmentClusterFlag>"/>
</lcgdict>

0 comments on commit 574c778

Please sign in to comment.