-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
7 changed files
with
125 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
14
trunk/DataFormats/Alignment/interface/AliClusterValueMap.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
38
trunk/DataFormats/Alignment/interface/AlignmentClusterFlag.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |